2013-06-01 23:28:05 +00:00
|
|
|
# Created by: Bruce M Simpson <bms@FreeBSD.org>
|
2006-09-22 12:16:47 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xorp
|
2014-02-26 21:54:59 +00:00
|
|
|
PORTVERSION= 1.8.5
|
|
|
|
DISTVERSIONSUFFIX= -src
|
2006-09-22 12:16:47 +00:00
|
|
|
CATEGORIES= net
|
2014-02-26 21:54:59 +00:00
|
|
|
MASTER_SITES= http://www.xorp.org/releases/${PORTVERSION}/
|
2006-09-22 12:16:47 +00:00
|
|
|
|
2013-06-01 23:28:05 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-09-22 12:16:47 +00:00
|
|
|
COMMENT= The eXtensible Open Router Platform
|
|
|
|
|
2013-06-02 13:39:22 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs \
|
|
|
|
libpcap.so:${PORTSDIR}/net/libpcap
|
2013-06-01 23:28:05 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
CONFLICTS_INSTALL= xorp-devel-*
|
2006-09-22 12:16:47 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions -s /^xorp/${DISTNAME}/
|
|
|
|
GROUPS= xorp
|
2014-04-03 04:17:14 +00:00
|
|
|
USES= tar:bzip2 ncurses scons shebangfix compiler:env
|
2010-09-08 21:57:43 +00:00
|
|
|
USE_OPENSSL= yes
|
2014-02-26 21:54:59 +00:00
|
|
|
USE_PYTHON_BUILD= 2
|
|
|
|
USE_RC_SUBR= xorp
|
|
|
|
SHEBANG_FILES= xrl/scripts/clnt-gen xrl/scripts/tgt-gen
|
|
|
|
python_OLD_CMD= .*python
|
|
|
|
python_CMD= ${PYTHON_CMD}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
XORP_SAMPLECONF= rtrmgr/config/multicast4.boot
|
2006-10-05 17:01:12 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
BROKEN_sparc64= Does not compile on sparc64
|
2010-09-08 21:57:43 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
OPTIONS_DEFINE= OPTIMIZE ORIGIN SHARED STRIP TCP_RPC
|
|
|
|
OPTIONS_DEFAULT= OPTIMIZE ORIGIN SHARED STRIP
|
|
|
|
OPTIMIZE_DESC= Build with optimization
|
|
|
|
ORIGIN_DESC= Use ORIGIN with shared libraries
|
|
|
|
SHARED_DESC= Build with shared libraries
|
|
|
|
TCP_RPC_DESC= Use TCP as RPC transport (defaults to AF_LOCAL)
|
2006-09-22 12:16:47 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
MAKE_ARGS= prefix=${PREFIX} enable_boost=1
|
2006-10-05 17:01:12 +00:00
|
|
|
|
2014-04-03 04:17:14 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2010-09-08 21:57:43 +00:00
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZE}
|
|
|
|
MAKE_ARGS+= optimize=highest
|
2006-09-22 12:16:47 +00:00
|
|
|
.else
|
2014-02-26 21:54:59 +00:00
|
|
|
MAKE_ARGS+= optimize=no
|
2006-09-22 12:16:47 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MSHARED}
|
|
|
|
MAKE_ARGS+= shared=true
|
|
|
|
PLIST_SUB+= XORP_SHLIB=""
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/xorp/lib
|
|
|
|
. if ${PORT_OPTIONS:MORIGIN}
|
|
|
|
MAKE_ARGS+= origin=true
|
|
|
|
. else
|
|
|
|
MAKE_ARGS+= origin=false
|
|
|
|
. endif
|
2006-10-05 17:01:12 +00:00
|
|
|
.else
|
2014-02-26 21:54:59 +00:00
|
|
|
MAKE_ARGS+= shared=false
|
|
|
|
PLIST_SUB+= XORP_SHLIB="@comment "
|
2006-09-22 12:16:47 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MSTRIP}
|
|
|
|
MAKE_ARGS+= strip=true
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= strip=false
|
2006-09-22 12:16:47 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
.if ${PORT_OPTIONS:MTCP_RPC}
|
|
|
|
MAKE_ARGS+= transport=tcp
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= transport=local
|
2006-09-22 12:16:47 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-26 21:54:59 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/SConstruct
|
2014-04-03 04:17:14 +00:00
|
|
|
.if ${COMPILER_TYPE} == "clang"
|
|
|
|
${REINPLACE_CMD} 's,-Werror,& -Wno-unused-function,' ${WRKSRC}/SConstruct
|
|
|
|
.endif
|
2010-09-08 21:57:43 +00:00
|
|
|
|
2006-10-05 17:01:12 +00:00
|
|
|
post-install:
|
2014-02-26 21:54:59 +00:00
|
|
|
${CP} -p ${WRKSRC}/${XORP_SAMPLECONF} ${STAGEDIR}${PREFIX}/etc/xorp.conf.sample
|
2006-10-05 17:01:12 +00:00
|
|
|
|
2014-04-03 04:17:14 +00:00
|
|
|
.include <bsd.port.post.mk>
|