Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Apr 2014 04:17:14 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349971 - head/net/xorp
Message-ID:  <201404030417.s334HE9f056941@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Apr  3 04:17:14 2014
New Revision: 349971
URL: http://svnweb.freebsd.org/changeset/ports/349971
QAT: https://qat.redports.org/buildarchive/r349971/

Log:
  - Fix build with clang

Modified:
  head/net/xorp/Makefile

Modified: head/net/xorp/Makefile
==============================================================================
--- head/net/xorp/Makefile	Thu Apr  3 03:46:16 2014	(r349970)
+++ head/net/xorp/Makefile	Thu Apr  3 04:17:14 2014	(r349971)
@@ -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 (
 
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404030417.s334HE9f056941>