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