summaryrefslogtreecommitdiff
path: root/security/libgcrypt/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'security/libgcrypt/options.mk')
-rw-r--r--security/libgcrypt/options.mk28
1 files changed, 28 insertions, 0 deletions
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