aboutsummaryrefslogtreecommitdiffstats
path: root/net/xorp
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-04-03 12:17:14 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-04-03 12:17:14 +0800
commit4971e960bb637d72243a3c122f821a8a640573ac (patch)
tree6f9948766c3ca0794202885c7576b0a6bd73e206 /net/xorp
parent20219d8d5bf419ed38baa054ac560fde3ba0b29e (diff)
downloadfreebsd-ports-gnome-4971e960bb637d72243a3c122f821a8a640573ac.tar.gz
freebsd-ports-gnome-4971e960bb637d72243a3c122f821a8a640573ac.tar.zst
freebsd-ports-gnome-4971e960bb637d72243a3c122f821a8a640573ac.zip
- Fix build with clang
Diffstat (limited to 'net/xorp')
-rw-r--r--net/xorp/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/xorp/Makefile b/net/xorp/Makefile
index d9b7ae48c97e..c4d27ad33afc 100644
--- a/net/xorp/Makefile
+++ b/net/xorp/Makefile
@@ -19,8 +19,7 @@ CONFLICTS_INSTALL= xorp-devel-*
EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions -s /^xorp/${DISTNAME}/
GROUPS= xorp
-USES= ncurses scons shebangfix
-USE_BZIP2= yes
+USES= tar:bzip2 ncurses scons shebangfix compiler:env
USE_OPENSSL= yes
USE_PYTHON_BUILD= 2
USE_RC_SUBR= xorp
@@ -41,7 +40,7 @@ TCP_RPC_DESC= Use TCP as RPC transport (defaults to AF_LOCAL)
MAKE_ARGS= prefix=${PREFIX} enable_boost=1
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MOPTIMIZE}
MAKE_ARGS+= optimize=highest
@@ -77,8 +76,11 @@ MAKE_ARGS+= transport=local
post-patch:
${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/SConstruct
+.if ${COMPILER_TYPE} == "clang"
+ ${REINPLACE_CMD} 's,-Werror,& -Wno-unused-function,' ${WRKSRC}/SConstruct
+.endif
post-install:
${CP} -p ${WRKSRC}/${XORP_SAMPLECONF} ${STAGEDIR}${PREFIX}/etc/xorp.conf.sample
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>