diff options
author | wiz <wiz@pkgsrc.org> | 2007-08-29 23:11:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2007-08-29 23:11:37 +0000 |
commit | 3dec26722cbd8d76e645e56ff2153b0df4e4a6e2 (patch) | |
tree | 3f810565bbeca2ea1d253533ab350664ac165aea /security/libgcrypt | |
parent | 9fc10b599a9a13a652d520543703b13671c10821 (diff) | |
download | pkgsrc-3dec26722cbd8d76e645e56ff2153b0df4e4a6e2.tar.gz |
Add support for idea option. From Blair Sadewitz in private mail, with
some cleanup.
Diffstat (limited to 'security/libgcrypt')
-rw-r--r-- | security/libgcrypt/Makefile | 4 | ||||
-rw-r--r-- | security/libgcrypt/distinfo | 5 | ||||
-rw-r--r-- | security/libgcrypt/options.mk | 28 |
3 files changed, 35 insertions, 2 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile index 06cdb6e76fa..94aee035441 100644 --- a/security/libgcrypt/Makefile +++ b/security/libgcrypt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2007/04/28 17:46:21 tnn Exp $ +# $NetBSD: Makefile,v 1.39 2007/08/29 23:11:37 wiz Exp $ DISTNAME= libgcrypt-1.2.4 CATEGORIES= security @@ -29,6 +29,8 @@ INFO_FILES= yes # PLIST CONFIGURE_ARGS+= --disable-asm .endif +.include "options.mk" + .include "../../security/libgpg-error/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/security/libgcrypt/distinfo b/security/libgcrypt/distinfo index 4e17f89ac4b..6ee4e0a69eb 100644 --- a/security/libgcrypt/distinfo +++ b/security/libgcrypt/distinfo @@ -1,5 +1,8 @@ -$NetBSD: distinfo,v 1.20 2007/02/03 00:08:51 wiz Exp $ +$NetBSD: distinfo,v 1.21 2007/08/29 23:11:38 wiz Exp $ +SHA1 (libgcrypt-1.2.4-idea.diff.bz2) = 092458ed8ed3e5fd2230c25b384f05ba99db6d1e +RMD160 (libgcrypt-1.2.4-idea.diff.bz2) = 199cfb4224b6cebc940f4cfb876deb700e9dc044 +Size (libgcrypt-1.2.4-idea.diff.bz2) = 2924 bytes SHA1 (libgcrypt-1.2.4.tar.gz) = d279e7a4464cccf0cc4e29c374a1e8325fc65b9a RMD160 (libgcrypt-1.2.4.tar.gz) = 6a5ba284efe48c6963e21d8558a69096aea03d84 Size (libgcrypt-1.2.4.tar.gz) = 1013625 bytes diff --git a/security/libgcrypt/options.mk b/security/libgcrypt/options.mk new file mode 100644 index 00000000000..7273dead55e --- /dev/null +++ b/security/libgcrypt/options.mk @@ -0,0 +1,28 @@ +# $NetBSD: options.mk,v 1.1 2007/08/29 23:11:38 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libgcrypt +PKG_SUPPORTED_OPTIONS= idea + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Midea) +# use of IDEA as crypto function +LICENSE= idea-license +RESTRICTED= Commercial distribution is claimed to require a license. +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} + +PATCH_SITES= http://www.kfwebs.com/ +PATCHFILES= libgcrypt-1.2.4-idea.diff.bz2 +PATCH_DIST_STRIP= -p1 + +SUBST_CLASSES+= idea +SUBST_STAGE.idea= post-patch +SUBST_FILES.idea= cipher/idea.c +SUBST_SED.idea= -e 's,^.*SIZEOF_UNSIGNED_LONG.*$$,,' + +USE_TOOLS+= automake + +pre-configure: + cd ${WRKSRC} && autoreconf -i -v +.endif |