| @@ -1,85 +1,87 @@ | | | @@ -1,85 +1,87 @@ |
1 | # $NetBSD: Makefile,v 1.184 2018/08/16 11:05:47 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.185 2018/08/19 06:28:39 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= gnutls-3.6.3 | | 3 | DISTNAME= gnutls-3.6.3 |
4 | CATEGORIES= security devel | | 4 | CATEGORIES= security devel |
5 | MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/ | | 5 | MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/ |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.gnutls.org/ | | 9 | HOMEPAGE= http://www.gnutls.org/ |
10 | COMMENT= GNU Transport Layer Security library | | 10 | COMMENT= GNU Transport Layer Security library |
11 | LICENSE= gnu-gpl-v3 AND gnu-lgpl-v2.1 | | 11 | LICENSE= gnu-gpl-v3 AND gnu-lgpl-v2.1 |
12 | | | 12 | |
13 | USE_LANGUAGES= c c++ | | 13 | USE_LANGUAGES= c c++ |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
15 | USE_PKGLOCALEDIR= yes | | 15 | USE_PKGLOCALEDIR= yes |
16 | USE_TOOLS+= gmake gsed perl pkg-config | | 16 | USE_TOOLS+= gmake gsed perl pkg-config bash:build |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | # this library duplicates (and conflicts with) openssl | | 18 | # this library duplicates (and conflicts with) openssl |
19 | CONFIGURE_ARGS+= --disable-openssl-compatibility | | 19 | CONFIGURE_ARGS+= --disable-openssl-compatibility |
20 | CONFIGURE_ARGS+= --disable-guile | | 20 | CONFIGURE_ARGS+= --disable-guile |
21 | CONFIGURE_ARGS+= --disable-libdane | | 21 | CONFIGURE_ARGS+= --disable-libdane |
22 | CONFIGURE_ARGS+= --without-tpm | | 22 | CONFIGURE_ARGS+= --without-tpm |
23 | CONFIGURE_ARGS+= --disable-destructive-tests | | 23 | CONFIGURE_ARGS+= --disable-destructive-tests |
24 | CONFIGURE_ARGS+= --disable-valgrind-tests | | 24 | CONFIGURE_ARGS+= --disable-valgrind-tests |
25 | CONFIGURE_ARGS+= --with-libintl-prefix=${BUILDLINK_PREFIX.gettext} | | 25 | CONFIGURE_ARGS+= --with-libintl-prefix=${BUILDLINK_PREFIX.gettext} |
26 | CONFIGURE_ARGS+= --enable-local-libopts | | 26 | CONFIGURE_ARGS+= --enable-local-libopts |
27 | # Assembler support is broken for SunOS in 3.2.9. | | 27 | # Assembler support is broken for SunOS in 3.2.9. |
28 | CONFIGURE_ARGS.SunOS+= --disable-hardware-acceleration | | 28 | CONFIGURE_ARGS.SunOS+= --disable-hardware-acceleration |
29 | CONFIGURE_ARGS.FreeBSD+= ac_cv_type_max_align_t=yes | | 29 | CONFIGURE_ARGS.FreeBSD+= ac_cv_type_max_align_t=yes |
30 | | | 30 | |
31 | # as of 3.5.8, 0 test failures | | 31 | # as of 3.5.8, 0 test failures |
32 | TEST_TARGET= check | | 32 | TEST_TARGET= check |
33 | # without the USE_TOOLS line below, the fastopen.sh test fails | | 33 | # without the USE_TOOLS line below, the fastopen.sh test fails |
34 | # but when this line is added, the tool path for bash is embedded | | 34 | # but when this line is added, the tool path for bash is embedded |
35 | # in to the binaries, so only enable this for testing and | | 35 | # in to the binaries, so only enable this for testing and |
36 | # disable before commit | | 36 | # disable before commit |
37 | #USE_TOOLS+= bash | | 37 | #USE_TOOLS+= bash |
38 | | | 38 | |
39 | INFO_FILES= yes | | 39 | INFO_FILES= yes |
40 | | | 40 | |
| | | 41 | REPLACE_BASH+= tests/cert-tests/certtool |
41 | REPLACE_BASH+= tests/danetool.sh | | 42 | REPLACE_BASH+= tests/danetool.sh |
| | | 43 | REPLACE_BASH+= tests/fastopen.sh |
42 | REPLACE_BASH+= tests/gnutls-cli-debug.sh | | 44 | REPLACE_BASH+= tests/gnutls-cli-debug.sh |
43 | REPLACE_BASH+= tests/ocsp-tests/ocsp-must-staple-connection | | 45 | REPLACE_BASH+= tests/ocsp-tests/ocsp-must-staple-connection |
44 | REPLACE_BASH+= tests/ocsp-tests/ocsp-tls-connection | | 46 | REPLACE_BASH+= tests/ocsp-tests/ocsp-tls-connection |
45 | REPLACE_BASH+= tests/suite/testcompat-main-polarssl | | | |
46 | REPLACE_BASH+= tests/suite/testcompat-main-openssl | | | |
47 | REPLACE_BASH+= tests/fastopen.sh | | | |
48 | REPLACE_BASH+= tests/starttls.sh | | 47 | REPLACE_BASH+= tests/starttls.sh |
| | | 48 | REPLACE_BASH+= tests/suite/cbc-record-check.sh |
| | | 49 | REPLACE_BASH+= tests/suite/testcompat-main-openssl |
| | | 50 | REPLACE_BASH+= tests/suite/testcompat-main-polarssl |
49 | | | 51 | |
50 | REPLACE_PERL+= doc/scripts/gdoc doc/scripts/sort2.pl | | 52 | REPLACE_PERL+= doc/scripts/gdoc doc/scripts/sort2.pl |
51 | | | 53 | |
52 | PKGCONFIG_OVERRIDE= lib/gnutls.pc.in | | 54 | PKGCONFIG_OVERRIDE= lib/gnutls.pc.in |
53 | PKGCONFIG_OVERRIDE+= libdane/gnutls-dane.pc.in | | 55 | PKGCONFIG_OVERRIDE+= libdane/gnutls-dane.pc.in |
54 | | | 56 | |
55 | MAKE_ENV+= RM=${RM:Q} | | 57 | MAKE_ENV+= RM=${RM:Q} |
56 | MAKE_ENV+= TZ=UTC | | 58 | MAKE_ENV+= TZ=UTC |
57 | | | 59 | |
58 | EGDIR= ${PREFIX}/share/examples/gnutls | | 60 | EGDIR= ${PREFIX}/share/examples/gnutls |
59 | | | 61 | |
60 | INSTALLATION_DIRS= ${EGDIR} include/gnutls | | 62 | INSTALLATION_DIRS= ${EGDIR} include/gnutls |
61 | | | 63 | |
62 | post-install: | | 64 | post-install: |
63 | cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} *.c ${DESTDIR}${EGDIR} | | 65 | cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} *.c ${DESTDIR}${EGDIR} |
64 | | | 66 | |
65 | .include "../../archivers/lzo/buildlink3.mk" | | 67 | .include "../../archivers/lzo/buildlink3.mk" |
66 | .include "../../converters/libiconv/buildlink3.mk" | | 68 | .include "../../converters/libiconv/buildlink3.mk" |
67 | .include "../../devel/gettext-lib/buildlink3.mk" | | 69 | .include "../../devel/gettext-lib/buildlink3.mk" |
68 | BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0 | | 70 | BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0 |
69 | .include "../../devel/gmp/buildlink3.mk" | | 71 | .include "../../devel/gmp/buildlink3.mk" |
70 | .include "../../devel/libcfg+/buildlink3.mk" | | 72 | .include "../../devel/libcfg+/buildlink3.mk" |
71 | # Avoid creating a fake zlib.pc, because if it does | | 73 | # Avoid creating a fake zlib.pc, because if it does |
72 | # gnutls will add a Requires.private for it in its .pc file | | 74 | # gnutls will add a Requires.private for it in its .pc file |
73 | CHECK_BUILTIN.zlib:=yes | | 75 | CHECK_BUILTIN.zlib:=yes |
74 | .include "../../devel/zlib/buildlink3.mk" | | 76 | .include "../../devel/zlib/buildlink3.mk" |
75 | # guile is useful for selftests, but bindings should be separate pkgs | | 77 | # guile is useful for selftests, but bindings should be separate pkgs |
76 | #.include "../../lang/guile20/buildlink3.mk" | | 78 | #.include "../../lang/guile20/buildlink3.mk" |
77 | BUILDLINK_API_DEPENDS.libtasn1+= libtasn1>=4.9 | | 79 | BUILDLINK_API_DEPENDS.libtasn1+= libtasn1>=4.9 |
78 | .include "../../security/libtasn1/buildlink3.mk" | | 80 | .include "../../security/libtasn1/buildlink3.mk" |
79 | BUILDLINK_API_DEPENDS.nettle+= nettle>=3.1 | | 81 | BUILDLINK_API_DEPENDS.nettle+= nettle>=3.1 |
80 | .include "../../security/nettle/buildlink3.mk" | | 82 | .include "../../security/nettle/buildlink3.mk" |
81 | BUILDLINK_API_DEPENDS.p11-kit+= p11-kit>=0.23.1 | | 83 | BUILDLINK_API_DEPENDS.p11-kit+= p11-kit>=0.23.1 |
82 | .include "../../security/p11-kit/buildlink3.mk" | | 84 | .include "../../security/p11-kit/buildlink3.mk" |
83 | .include "../../textproc/libunistring/buildlink3.mk" | | 85 | .include "../../textproc/libunistring/buildlink3.mk" |
84 | .include "../../mk/readline.buildlink3.mk" | | 86 | .include "../../mk/readline.buildlink3.mk" |
85 | .include "../../mk/bsd.pkg.mk" | | 87 | .include "../../mk/bsd.pkg.mk" |