| @@ -1,73 +1,52 @@ | | | @@ -1,73 +1,52 @@ |
1 | # $NetBSD: Makefile,v 1.30 2010/08/03 19:14:42 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2010/09/01 16:46:41 drochner Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= gnupg-2.0.14 | | 4 | DISTNAME= gnupg-2.0.16 |
5 | PKGNAME= ${DISTNAME:S/gnupg/gnupg2/} | | 5 | PKGNAME= ${DISTNAME:S/gnupg/gnupg2/} |
6 | PKGREVISION= 3 | | | |
7 | CATEGORIES= security | | 6 | CATEGORIES= security |
8 | MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ | | 7 | MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ |
9 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
10 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | | | |
11 | DISTFILES+= pth-2.0.7.tar.gz | | | |
12 | SITES.pth-2.0.7.tar.gz= ${MASTER_SITE_GNU:=pth/} | | | |
13 | DISTFILES+= libassuan-1.0.5.tar.bz2 | | | |
14 | SITES.libassuan-1.0.5.tar.bz2= ftp://ftp.gnupg.org/gcrypt/libassuan/ | | | |
15 | | | 9 | |
16 | MAINTAINER= shannonjr@NetBSD.org | | 10 | MAINTAINER= shannonjr@NetBSD.org |
17 | HOMEPAGE= http://www.gnupg.org/ | | 11 | HOMEPAGE= http://www.gnupg.org/ |
18 | COMMENT= GNUpg with OpenPGP and S/MIME capabilities | | 12 | COMMENT= GNUpg with OpenPGP and S/MIME capabilities |
19 | LICENSE= gnu-gpl-v3 | | 13 | LICENSE= gnu-gpl-v3 |
20 | | | 14 | |
21 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
22 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
23 | | | 17 | |
24 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
25 | INFO_FILES= yes | | 19 | INFO_FILES= yes |
26 | USE_TOOLS+= gmake | | 20 | USE_TOOLS+= gmake |
27 | USE_TOOLS+= autoconf | | 21 | USE_TOOLS+= autoconf |
28 | USE_TOOLS+= automake | | 22 | USE_TOOLS+= automake |
29 | USE_TOOLS+= gettext | | 23 | USE_TOOLS+= gettext |
30 | USE_LIBTOOL= yes | | 24 | USE_LIBTOOL= yes |
31 | USE_PKGLOCALEDIR= yes | | 25 | USE_PKGLOCALEDIR= yes |
32 | | | 26 | |
33 | CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q} | | 27 | CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q} |
34 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
35 | CONFIGURE_ARGS+= --with-static-rnd=auto | | 29 | CONFIGURE_ARGS+= --with-static-rnd=auto |
36 | CONFIGURE_ARGS+= --without-included-gettext | | 30 | CONFIGURE_ARGS+= --without-included-gettext |
37 | CONFIGURE_ARGS+= --with-pth-prefix=${WRKDIR}/pth | | | |
38 | CONFIGURE_ARGS+= --with-libassuan-prefix=${WRKDIR}/libassuan | | | |
39 | CONFIGURE_ARGS+= --with-pinentry-pgm=${BUILDLINK_PREFIX.pinentry}/bin/pinentry | | 31 | CONFIGURE_ARGS+= --with-pinentry-pgm=${BUILDLINK_PREFIX.pinentry}/bin/pinentry |
40 | #CONFIGURE_ARGS+= --enable-maintainer-mode | | 32 | #CONFIGURE_ARGS+= --enable-maintainer-mode |
41 | CONFIGURE_ENV+= gnupg_cv_pth_is_sane=yes | | | |
42 | | | 33 | |
43 | TEST_TARGET= check | | 34 | TEST_TARGET= check |
44 | | | 35 | |
45 | .include "options.mk" | | 36 | .include "options.mk" |
46 | | | 37 | |
47 | # We are building a static pth library and linking against it | | | |
48 | # While this is not very satisfying, gpgme hangs in its gpgsm tests | | | |
49 | # if we depend on the shared (pkgsrc) pth library | | | |
50 | # We are also building libassuan here to get libassuan-pth. | | | |
51 | pre-configure: | | | |
52 | cd ${WRKDIR}/pth-2.0.7 && \ | | | |
53 | ./configure --prefix=${WRKDIR}/pth --enable-pthread --enable-static --disable-shared && \ | | | |
54 | ${MAKE} install | | | |
55 | cd ${WRKDIR}/libassuan-1.0.5 && \ | | | |
56 | ${SETENV} ${CONFIGURE_ENV} ./autogen.sh && \ | | | |
57 | ${SETENV} ${CONFIGURE_ENV} ./configure --prefix=${WRKDIR}/libassuan --with-pth-prefix=${WRKDIR}/pth && \ | | | |
58 | ${SETENV} ${PKGSRC_MAKE_ENV} ${MAKE} install | | | |
59 | cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh | | | |
60 | | | | |
61 | BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.4 | | 38 | BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.4 |
62 | BUILDLINK_API_DEPENDS.libksba+= libksba>=1.0.2 | | 39 | BUILDLINK_API_DEPENDS.libksba+= libksba>=1.0.2 |
63 | | | 40 | |
| | | 41 | .include "../../devel/pth/buildlink3.mk" |
64 | .include "../../databases/openldap-client/buildlink3.mk" | | 42 | .include "../../databases/openldap-client/buildlink3.mk" |
65 | .include "../../converters/libiconv/buildlink3.mk" | | 43 | .include "../../converters/libiconv/buildlink3.mk" |
66 | .include "../../devel/gettext-lib/buildlink3.mk" | | 44 | .include "../../devel/gettext-lib/buildlink3.mk" |
67 | .include "../../devel/zlib/buildlink3.mk" | | 45 | .include "../../devel/zlib/buildlink3.mk" |
68 | .include "../../security/libgcrypt/buildlink3.mk" | | 46 | .include "../../security/libgcrypt/buildlink3.mk" |
69 | .include "../../security/libgpg-error/buildlink3.mk" | | 47 | .include "../../security/libgpg-error/buildlink3.mk" |
70 | .include "../../security/libksba/buildlink3.mk" | | 48 | .include "../../security/libksba/buildlink3.mk" |
| | | 49 | .include "../../security/libassuan2/buildlink3.mk" |
71 | .include "../../www/curl/buildlink3.mk" | | 50 | .include "../../www/curl/buildlink3.mk" |
72 | .include "../../security/pinentry/buildlink3.mk" | | 51 | .include "../../security/pinentry/buildlink3.mk" |
73 | .include "../../mk/bsd.pkg.mk" | | 52 | .include "../../mk/bsd.pkg.mk" |