aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-11-11 17:00:13 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-11-11 17:00:13 +0800
commitd777a5be1f911b74aec179fe26bd1342a7dfd3a1 (patch)
treebd4fa6c218f976b87749236f58410234fa459e5d
parent99e4303fa14aecf70e52ee45f542d6e9141e1d17 (diff)
downloadfreebsd-ports-gnome-d777a5be1f911b74aec179fe26bd1342a7dfd3a1.tar.gz
freebsd-ports-gnome-d777a5be1f911b74aec179fe26bd1342a7dfd3a1.tar.zst
freebsd-ports-gnome-d777a5be1f911b74aec179fe26bd1342a7dfd3a1.zip
- Switch to options helpers
-rw-r--r--net/sixxs-aiccu/Makefile33
1 files changed, 15 insertions, 18 deletions
diff --git a/net/sixxs-aiccu/Makefile b/net/sixxs-aiccu/Makefile
index a06af23d5600..eb05cad5f229 100644
--- a/net/sixxs-aiccu/Makefile
+++ b/net/sixxs-aiccu/Makefile
@@ -15,29 +15,26 @@ COMMENT= SixXS IPv6 TIC+ tunnel broker heartbeat client
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
+WRKSRC= ${WRKDIR}/aiccu
+BUILD_WRKSRC= ${WRKDIR}/aiccu/unix-console
+
USE_RC_SUBR= sixxs-aiccu
USES= gmake
-
+MAKE_ARGS= CC="${CC}" LDFLAGS="${LDFLAGS}"
CFLAGS+= -D_REENTRANT -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
-MAKE_ARGS+= CC="${CC}" LDFLAGS="${LDFLAGS}"
-WRKSRC= ${WRKDIR}/aiccu
-BUILD_WRKSRC= ${WRKDIR}/aiccu/unix-console
+
PORTDOCS= README
OPTIONS_DEFINE= GNUTLS LOG_DAEMON DOCS
+OPTIONS_DEFAULT= GNUTLS
+
GNUTLS_DESC= Use gnutls to secure TIC supporting starttls
LOG_DAEMON_DESC=Log to LOG_DAEMON instead to LOG_LOCAL7
-OPTIONS_DEFAULT+= GNUTLS
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGNUTLS}
-LIB_DEPENDS+= libgnutls.so:security/gnutls
-CFLAGS+= -DAICCU_GNUTLS
-LDFLAGS+= -lgnutls
-.endif
+GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
+GNUTLS_CFLAGS= -DAICCU_GNUTLS
+GNUTLS_LDFLAGS= -lgnutls
post-patch:
@${REINPLACE_CMD} \
@@ -49,17 +46,17 @@ post-patch:
-e 's:ipv6_interface sixxs:ipv6_interface gif0:' \
${WRKSRC}/doc/aiccu.conf
-.if ${PORT_OPTIONS:MLOG_DAEMON}
-do-configure:
+post-patch-LOG_DAEMON-on:
@${REINPLACE_CMD} \
-e 's:LOG_LOCAL7:LOG_DAEMON:' \
${WRKSRC}/common/common.c
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unix-console/aiccu ${STAGEDIR}${PREFIX}/sbin/sixxs-aiccu
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/aiccu.conf ${STAGEDIR}${PREFIX}/etc/aiccu.conf.sample
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR}
+
.include <bsd.port.mk>