summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-02-25 20:16:29 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-02-25 20:16:29 +0000
commit92a4e2f9500f3c9c88b5b7c579e9a6b36c5fc309 (patch)
tree83a092106ff508556864e83269d326b67d5da378 /net-im
parent- Convert to new LIB_DEPENDS format [1] (diff)
Fix configure for default case.
${opt}_CONFIGURE_WITH does not work as I expected...
Notes
Notes: svn path=/head/; revision=346071
Diffstat (limited to 'net-im')
-rw-r--r--net-im/tox/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net-im/tox/Makefile b/net-im/tox/Makefile
index 95da90ce94d4..8ba424425510 100644
--- a/net-im/tox/Makefile
+++ b/net-im/tox/Makefile
@@ -41,10 +41,15 @@ SODIUM_LIB_DEPENDS= libsodium.so:${PORTSDIR}/security/libsodium
NACL_DESC= Prefer NaCl
NACL_CONFIGURE_ENABLE= nacl
-NACL_CONFIGURE_WITH= nacl-libs=${LOCALBASE}/lib
NACL_BUILD_DEPENDS= ${LOCALBASE}/lib/libnacl.a:${PORTSDIR}/security/nacl
NACL_RUN_DEPENDS= ${LOCALBASE}/lib/libnacl.a:${PORTSDIR}/security/nacl
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNACL}
+CONFIGURE_ARGS+= --with-nacl-libs=${LOCALBASE}/lib
+.endif
+
pre-configure:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/configure.ac
cd ${WRKSRC} && ./autogen.sh