| @@ -1,45 +1,23 @@ | | | @@ -1,45 +1,23 @@ |
1 | # $NetBSD: options.mk,v 1.2 2008/03/26 20:09:43 tron Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2008/08/14 19:24:07 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.libgcrypt | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.libgcrypt |
4 | PKG_SUPPORTED_OPTIONS= idea | | 4 | PKG_SUPPORTED_OPTIONS= |
5 | | | 5 | |
6 | .include "../../mk/bsd.prefs.mk" | | 6 | .include "../../mk/bsd.prefs.mk" |
7 | | | 7 | |
8 | .if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin" | | 8 | .if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin" |
9 | . include "../../mk/compiler.mk" | | 9 | . include "../../mk/compiler.mk" |
10 | # GCC 3.x (at least 3.3.3 on NetBSD) fails to compile asm() call in | | 10 | # GCC 3.x (at least 3.3.3 on NetBSD) fails to compile asm() call in |
11 | # cipher/rijndael.c:do_padlock() | | 11 | # cipher/rijndael.c:do_padlock() |
12 | . if empty(CC_VERSION:Mgcc-3.*) | | 12 | . if empty(CC_VERSION:Mgcc-3.*) |
13 | PKG_SUPPORTED_OPTIONS+= via-padlock | | 13 | PKG_SUPPORTED_OPTIONS+= via-padlock |
14 | PKG_SUGGESTED_OPTIONS+= via-padlock | | 14 | PKG_SUGGESTED_OPTIONS+= via-padlock |
15 | . endif | | 15 | . endif |
16 | .endif | | 16 | .endif |
17 | | | 17 | |
18 | .include "../../mk/bsd.options.mk" | | 18 | .include "../../mk/bsd.options.mk" |
19 | | | 19 | |
20 | .if !empty(PKG_OPTIONS:Midea) | | | |
21 | # Use of IDEA as crypto function. | | | |
22 | LICENSE= idea-license | | | |
23 | RESTRICTED= Commercial distribution is claimed to require a license. | | | |
24 | NO_SRC_ON_CDROM= ${RESTRICTED} | | | |
25 | NO_BIN_ON_CDROM= ${RESTRICTED} | | | |
26 | | | | |
27 | PATCH_SITES= http://www.kfwebs.com/ | | | |
28 | PATCHFILES= libgcrypt-1.2.4-idea.diff.bz2 | | | |
29 | PATCH_DIST_STRIP= -p1 | | | |
30 | | | | |
31 | SUBST_CLASSES+= idea | | | |
32 | SUBST_STAGE.idea= post-patch | | | |
33 | SUBST_FILES.idea= cipher/idea.c | | | |
34 | SUBST_SED.idea= -e 's,^.*SIZEOF_UNSIGNED_LONG.*$$,,' | | | |
35 | | | | |
36 | USE_TOOLS+= autoreconf | | | |
37 | | | | |
38 | pre-configure: | | | |
39 | cd ${WRKSRC} && autoreconf -i -v | | | |
40 | .endif | | | |
41 | | | | |
42 | .if empty(PKG_OPTIONS:Mvia-padlock) | | 20 | .if empty(PKG_OPTIONS:Mvia-padlock) |
43 | # Disable VIA Padlock support. | | 21 | # Disable VIA Padlock support. |
44 | CONFIGURE_ARGS+= --disable-padlock-support | | 22 | CONFIGURE_ARGS+= --disable-padlock-support |
45 | .endif | | 23 | .endif |