summaryrefslogtreecommitdiff
path: root/security/openvpn-auth-ldap
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-08 13:35:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-08 13:35:05 +0000
commit5e6ba339174f0bb212e4d0a69b01826c19e0ff79 (patch)
treec3ca32122c987dc1382c16d5c5c641371b247a57 /security/openvpn-auth-ldap
parentAdd a USES to handle objective C (chosing compiler adding the right dependenc... (diff)
Convert to USES=objc and drop hard coded gcc 4.6 dep
Notes
Notes: svn path=/head/; revision=353297
Diffstat (limited to 'security/openvpn-auth-ldap')
-rw-r--r--security/openvpn-auth-ldap/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/security/openvpn-auth-ldap/Makefile b/security/openvpn-auth-ldap/Makefile
index 3315ddb4a74b..a0035cdc24ea 100644
--- a/security/openvpn-auth-ldap/Makefile
+++ b/security/openvpn-auth-ldap/Makefile
@@ -11,6 +11,8 @@ DISTNAME= auth-ldap-${PORTVERSION}
MAINTAINER= snb@FreeBSD.org
COMMENT= LDAP authentication plugin for OpenVPN
+USES= objc
+
BUILD_DEPENDS= re2c:${PORTSDIR}/devel/re2c \
${NONEXISTENT}:${PORTSDIR}/security/openvpn:extract
@@ -24,17 +26,12 @@ CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} \
PORTDOCS= README
PORTEXAMPLES= auth-ldap.conf
PLIST_FILES= lib/openvpn-auth-ldap.so
+OBJCFLAGS+= -L/usr/local/lib
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
-.if ${OSVERSION} >= 900000
-# Use GCC from ports because Objective-C support is no longer included
-# in base. lang/libobjc2 + clang currently do not work, nor do newer
-# versions of GCC.
-USE_GCC= 4.6
CONFIGURE_ENV+= OBJC="${CC}"
-.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so