2013-04-21 16:44:53 +02:00
|
|
|
# $NetBSD: options.mk,v 1.8 2013/04/21 14:44:53 wiz Exp $
|
2007-08-30 01:11:37 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.libgcrypt
|
2013-04-21 16:44:53 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS=
|
2007-08-30 01:11:37 +02:00
|
|
|
|
2008-03-26 21:09:43 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"
|
|
|
|
. include "../../mk/compiler.mk"
|
|
|
|
# GCC 3.x (at least 3.3.3 on NetBSD) fails to compile asm() call in
|
|
|
|
# cipher/rijndael.c:do_padlock()
|
|
|
|
. if empty(CC_VERSION:Mgcc-3.*)
|
|
|
|
PKG_SUPPORTED_OPTIONS+= via-padlock
|
2011-02-19 01:55:31 +01:00
|
|
|
# With GCC 4.1.3 on NetBSD, do_padlock() crashes with signal 11
|
|
|
|
. if ${OPSYS} != "NetBSD"
|
2008-03-26 21:09:43 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS+= via-padlock
|
2011-02-19 01:55:31 +01:00
|
|
|
. endif
|
2008-03-26 21:09:43 +01:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2007-08-30 01:11:37 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-03-26 21:09:43 +01:00
|
|
|
.if empty(PKG_OPTIONS:Mvia-padlock)
|
|
|
|
# Disable VIA Padlock support.
|
2009-01-31 09:53:14 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-padlock-support
|
2008-03-26 21:09:43 +01:00
|
|
|
.endif
|