4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
25 include ..
/..
/..
/make-rules
/shared-macros.mk
27 COMPONENT_NAME
= gnutls
28 COMPONENT_VERSION
= 3.4.17
29 COMPONENT_PROJECT_URL
= ftp
://ftp.gnutls.org
/gcrypt
/gnutls
/v3.4
30 COMPONENT_SUMMARY
= GNU transport layer security library
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:d99abb1b320771b58c949bab85e4b654dd1e3e9d92e2572204b7dc479d923927
35 COMPONENT_ARCHIVE_URL
= ftp
://ftp.gnutls.org
/gcrypt
/gnutls
/v3.4
/$(COMPONENT_ARCHIVE
)
36 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).sig
37 COMPONENT_FMRI
= library
/gnutls-3
38 COMPONENT_CLASSIFICATION
= System
/Libraries
39 COMPONENT_LICENSE
= GPLv3
, LGPLv2.1
, FDLv1.3
41 # The GnuTLS API and ABI have incompatible changes between versions 2.x
42 # and 3.x; but the basic symlink name 'libgnutls.so' and pkg-config file
43 # name 'gnutls.pc' are unchanged. As a result, it's not possible to have
44 # both versions installed at the same time in the default paths in a way
45 # that makes it possible to build programs that are only compatible with
46 # one version of the API. As a result, GnuTLS version 3 delivered to a folder
47 # called gnutls-3 temporarily. The plan is to integrate 3.4.1 and move all
48 # programs to 3.4.1; after all usage of 2.8.6 excised, move 3.4.1 to the
51 include $(WS_MAKE_RULES
)/prep.mk
52 include $(WS_MAKE_RULES
)/configure.mk
53 include $(WS_MAKE_RULES
)/ips.mk
55 CFLAGS
+= -I
$(USRINCDIR
)/gmp
56 CFLAGS
+= -I
$(USRINCDIR
)/idn
61 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
62 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
63 CONFIGURE_OPTIONS
+= --mandir=$(USRSHAREDIR
)/$(COMPONENT_NAME
)-3/man
64 CONFIGURE_OPTIONS
+= --includedir=$(USRINCDIR
)/$(COMPONENT_NAME
)-3/
65 CONFIGURE_OPTIONS
.32 += --libdir=$(USRLIBDIR
)/$(COMPONENT_NAME
)-3/
66 CONFIGURE_OPTIONS
.64 += --libdir=$(USRLIBDIR64
)/$(COMPONENT_NAME
)-3/
67 CONFIGURE_OPTIONS
.32 += --libexecdir
=$(USRLIBDIR
)/pkgconfig
/$(COMPONENT_NAME
)-3/
68 CONFIGURE_OPTIONS
.64 += --libexecdir
=$(USRLIBDIR64
)/pkgconfig
/$(COMPONENT_NAME
)-3/
69 CONFIGURE_OPTIONS
+= --localedir
=$(USRSHARELOCALEDIR
)/$(COMPONENT_NAME
)-3/
70 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
71 CONFIGURE_OPTIONS
+= --disable-guile
72 CONFIGURE_OPTIONS
+= --with-included-libtasn1
73 #CONFIGURE_OPTIONS += --without-p11-kit
74 CONFIGURE_OPTIONS
+= --disable-ecdhe
75 CONFIGURE_OPTIONS
+= --disable-openssl-compatibility
76 CONFIGURE_OPTIONS
+= --disable-tests
78 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-all.master
80 COMPONENT_TEST_TRANSFORMS
+= \
87 build
: $(BUILD_32_and_64
)
89 install: $(INSTALL_32_and_64
)
91 test: $(TEST_32_and_64
)
93 REQUIRED_PACKAGES
+= library
/desktop
/p11-kit
94 REQUIRED_PACKAGES
+= library
/gmp
95 REQUIRED_PACKAGES
+= library
/libidn
96 REQUIRED_PACKAGES
+= library
/nettle
97 REQUIRED_PACKAGES
+= library
/zlib
98 REQUIRED_PACKAGES
+= system
/library
99 REQUIRED_PACKAGES
+= system
/library
/g
++-4-runtime
100 REQUIRED_PACKAGES
+= system
/library
/gcc-4-runtime