Makefile revision 5141
4901N/A#
4901N/A# CDDL HEADER START
4901N/A#
4901N/A# The contents of this file are subject to the terms of the
4901N/A# Common Development and Distribution License (the "License").
4901N/A# You may not use this file except in compliance with the License.
4901N/A#
4901N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4901N/A# or http://www.opensolaris.org/os/licensing.
4901N/A# See the License for the specific language governing permissions
4901N/A# and limitations under the License.
4901N/A#
4901N/A# When distributing Covered Code, include this CDDL HEADER in each
4901N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4901N/A# If applicable, add the following below this CDDL HEADER, with the
4901N/A# fields enclosed by brackets "[]" replaced with your own identifying
4901N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4901N/A#
4901N/A# CDDL HEADER END
4901N/A#
4901N/A
4901N/A#
4901N/A# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
4901N/A#
4901N/A
4901N/Ainclude ../../make-rules/shared-macros.mk
4901N/A
4901N/ACOMPONENT_NAME= gnutls
5141N/ACOMPONENT_VERSION= 3.4.6
4901N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4901N/ACOMPONENT_PROJECT_URL= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4
4901N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
4901N/ACOMPONENT_ARCHIVE_HASH= \
5141N/A sha256:feb559ed7fffa24d5aa40527054fae5cb7f7b66e9f2bebc2383a781dfa4d20ec
4901N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/$(COMPONENT_ARCHIVE)
4901N/ACOMPONENT_BUGDB= library/gnutls
4901N/A
5141N/ATPNO= 25396
4901N/A
4901N/ACOMPONENT_BUILD_TARGETS = all info
4901N/A
4901N/Ainclude $(WS_MAKE_RULES)/prep.mk
4901N/Ainclude $(WS_MAKE_RULES)/configure.mk
4901N/Ainclude $(WS_MAKE_RULES)/ips.mk
4901N/A
4901N/A# The GnuTLS API and ABI have incompatible changes between versions 2.8.6
4901N/A# and 3.4.1; but the basic symlink name 'libgnutls.so' and pkg-config file
4901N/A# name 'gnutls.pc' are unchanged. As a result, it's not possible to have
4901N/A# both versions installed at the same time in the default paths in a way
4901N/A# that makes it possible to build programs that are only compatible with
4901N/A# one version of the API. As a result, GnuTLS version 3 delivered to a folder
4901N/A# called gnutls-3 temporarily. The plan is to integrate 3.4.1 and move all
4901N/A# programs to 3.4.1; after all usage of 2.8.6 excised, move 3.4.1 to the
4901N/A# default location.
4901N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
4901N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
4901N/ACONFIGURE_OPTIONS += --mandir=/usr/share/$(COMPONENT_NAME)-3/man
4901N/ACONFIGURE_OPTIONS += --includedir=/usr/include/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS.32 += --libdir=/usr/lib/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib/pkgconfig/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)/pkgconfig/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS += --localedir=/usr/share/locale/$(COMPONENT_NAME)-3/
4901N/ACONFIGURE_OPTIONS += --localstatedir=/var
4901N/ACONFIGURE_OPTIONS += --enable-guile=no
4901N/ACONFIGURE_OPTIONS += --with-included-libtasn1
4901N/ACONFIGURE_OPTIONS += --without-p11-kit
4901N/ACONFIGURE_OPTIONS += --disable-ecdhe
4901N/ACONFIGURE_OPTIONS += --disable-openssl-compatibility
4901N/ACONFIGURE_OPTIONS += --disable-tests
4901N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/gmp -I/usr/include/idn $(CC_BITS)"
4901N/ACONFIGURE_OPTIONS += CXX="$(CXX) -norunpath $(CC_BITS)"
4901N/A
4901N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS) $(CC_BITS)"
4901N/A
4901N/AASLR_MODE = $(ASLR_ENABLE)
4901N/A
4901N/Ainclude ../../make-rules/shared-targets.mk
4901N/A
4901N/Aconfigure: $(CONFIGURE_32_and_64)
4901N/A
4901N/Abuild: $(BUILD_32_and_64)
4901N/A
4901N/Ainstall: $(INSTALL_32_and_64)
4901N/A
4901N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4901N/A
4901N/ACOMPONENT_TEST_TRANSFORMS += \
4901N/A '-n -e "/SKIP/p" ' \
4901N/A '-e "/PASS/p" ' \
4901N/A '-e "/FAIL/p" ' \
4901N/A '-e "/TOTAL/p" ' \
4901N/A '-e "/ERROR/p" '
4901N/A
4901N/Atest: $(TEST_32_and_64)
4901N/A
4901N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4901N/A
4901N/AREQUIRED_PACKAGES += library/gmp
4901N/AREQUIRED_PACKAGES += library/libidn
4901N/AREQUIRED_PACKAGES += library/libtasn1
4901N/AREQUIRED_PACKAGES += library/security/nettle
4901N/AREQUIRED_PACKAGES += library/security/trousers
4901N/AREQUIRED_PACKAGES += library/zlib
4901N/AREQUIRED_PACKAGES += system/library
4901N/AREQUIRED_PACKAGES += system/library/c++-runtime