[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnupg linking against libbz2



so snapshot packages, at least for i386, have gnupg linked against
libbz2, probably because the configure script found bzip2 and decided
to use it.

this patch disables bzip2 by default, but adds a flavor, if one
wishes to have that linkage.

thanks

-- 
Okan Demirmen <okan_(_at_)_demirmen_(_dot_)_com>
PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB3670934
PGP-Fingerprint: 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934


Index: Makefile
===================================================================
RCS file: /open/cvs/ports/security/gnupg/Makefile,v
retrieving revision 1.47
diff -u -r1.47 Makefile
--- Makefile    29 Jan 2005 19:27:18 -0000      1.47
+++ Makefile    18 Feb 2005 01:44:32 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       "GNU privacy guard - a free PGP replacement"
 
-DISTNAME=      gnupg-1.4.0
+DISTNAME=      gnupg-1.4.0p1
 CATEGORIES=    security
 
 MASTER_SITES=  ftp://ftp.gnupg.org/gcrypt/gnupg/ \
@@ -36,8 +36,14 @@
 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib"
 
-FLAVORS=       idea card
+FLAVORS=       idea card bzip2
 FLAVOR?=
+
+.if ${FLAVOR:L:Mbzip2}
+LIB_DEPENDS+=  bzip2-*::archivers/bzip2
+.else
+CONFIGURE_ARGS+= --disable-bzip2
+.endif
 
 .if ${FLAVOR:L:Midea}
 PERMIT_PACKAGE_CDROM=  "a patented algorithm"



Visit your host, monkey.org