From dbb548171157e578fe40069bf4f1ef4c42a22d37 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 3 Apr 2014 04:17:14 +0000 Subject: [PATCH] - Fix build with clang --- net/xorp/Makefile | 10 ++++++---- 1 file 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 +.include .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 +.include