aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-03-06 02:14:30 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-03-06 02:14:30 +0000
commitaeeae17fd638c343056086d5f23be153722d5b81 (patch)
tree1a2022c3eee8a772ca7cff273623db0bf3a9ae22
parentb16babbf31ae1114cdc18aab8e2d5b91523ba788 (diff)
downloadports-aeeae17fd638c343056086d5f23be153722d5b81.tar.gz
ports-aeeae17fd638c343056086d5f23be153722d5b81.zip
Notes
-rw-r--r--security/cfv/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/cfv/Makefile b/security/cfv/Makefile
index 161a4ae0baf5..9cfc98219361 100644
--- a/security/cfv/Makefile
+++ b/security/cfv/Makefile
@@ -22,14 +22,24 @@ INSTALL_TARGET= install-wrapper
MAN1= cfv.1
-OPTIONS= PSYCO "Enable devel/py-psyco optimization support" off
+OPTIONS= # start blank to enable it through the pre.mk fence
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
.include <bsd.port.pre.mk>
+.if ${ARCH} == "i386"
+OPTIONS+= PSYCO "Enable devel/py-psyco optimization support" off
+.else
+.undef WITH_PSYCO
+
+WITHOUT_PSYCO= yes
+.endif
+
.if defined(WITH_PSYCO)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
+
EXTRA_PATCHES+= ${FILESDIR}/extra-psyco-patch-Makefile
.endif