Makefile revision 4901
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# CDDL HEADER START
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# The contents of this file are subject to the terms of the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Common Development and Distribution License (the "License").
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# You may not use this file except in compliance with the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# or http://www.opensolaris.org/os/licensing.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# See the License for the specific language governing permissions
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# and limitations under the License.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# When distributing Covered Code, include this CDDL HEADER in each
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# If applicable, add the following below this CDDL HEADER, with the
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner]
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# CDDL HEADER END
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland#
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlandinclude ../../make-rules/shared-macros.mk
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_NAME= gnutls
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_VERSION= 3.4.1
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_PROJECT_URL= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_ARCHIVE_HASH= \
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland sha256:e9b5f58becf34756464216056cd5abbf04315eda80a374d02699dee83f80b12e
53520bfd0d8e6401efee237b91e682ab66f77eefMoriah WaterlandCOMPONENT_ARCHIVE_URL= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/$(COMPONENT_ARCHIVE)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_BUGDB= library/gnutls
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandTPNO= 22096
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCOMPONENT_BUILD_TARGETS = all info
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. Dikinclude $(WS_MAKE_RULES)/prep.mk
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. Dikinclude $(WS_MAKE_RULES)/configure.mk
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. Dikinclude $(WS_MAKE_RULES)/ips.mk
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. Dik
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. Dik# The GnuTLS API and ABI have incompatible changes between versions 2.8.6
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# and 3.4.1; but the basic symlink name 'libgnutls.so' and pkg-config file
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# name 'gnutls.pc' are unchanged. As a result, it's not possible to have
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# both versions installed at the same time in the default paths in a way
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# that makes it possible to build programs that are only compatible with
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# one version of the API. As a result, GnuTLS version 3 delivered to a folder
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# called gnutls-3 temporarily. The plan is to integrate 3.4.1 and move all
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah Waterland# programs to 3.4.1; after all usage of 2.8.6 excised, move 3.4.1 to the
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah Waterland# default location.
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --sysconfdir=/etc
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS += --mandir=/usr/share/$(COMPONENT_NAME)-3/man
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS += --includedir=/usr/include/$(COMPONENT_NAME)-3/
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS.32 += --libdir=/usr/lib/$(COMPONENT_NAME)-3/
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)/$(COMPONENT_NAME)-3/
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib/pkgconfig/$(COMPONENT_NAME)-3/
62224350e5355e6834f7deb9d8a7d062a50cb7c2Casper H.S. DikCONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)/pkgconfig/$(COMPONENT_NAME)-3/
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --localedir=/usr/share/locale/$(COMPONENT_NAME)-3/
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --localstatedir=/var
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --enable-guile=no
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --with-included-libtasn1
82623ab63a7c17ffa0e306afef3be05316812f6eMoriah WaterlandCONFIGURE_OPTIONS += --without-p11-kit
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS += --disable-ecdhe
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandCONFIGURE_OPTIONS += --disable-openssl-compatibility
CONFIGURE_OPTIONS += --disable-tests
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/gmp -I/usr/include/idn $(CC_BITS)"
CONFIGURE_OPTIONS += CXX="$(CXX) -norunpath $(CC_BITS)"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS) $(CC_BITS)"
ASLR_MODE = $(ASLR_ENABLE)
include ../../make-rules/shared-targets.mk
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
COMPONENT_TEST_TRANSFORMS += \
'-n -e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/TOTAL/p" ' \
'-e "/ERROR/p" '
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += library/gmp
REQUIRED_PACKAGES += library/libidn
REQUIRED_PACKAGES += library/libtasn1
REQUIRED_PACKAGES += library/security/nettle
REQUIRED_PACKAGES += library/security/trousers
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/c++-runtime