blob: 6a56873b63e4a180b6313164cb90dec5884160ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Created by: Bruce M Simpson <bms@FreeBSD.org>
# $FreeBSD$
PORTNAME= xorp-devel
PORTVERSION= 2009120801
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= bms
DISTNAME= xorp-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Open source network routing platform, development branch
# Uses libcurses, libcrypto, librt from base system.
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost-libs \
pcap:${PORTSDIR}/net/libpcap
CONFLICTS= xorp-1*
NOMAN= defined
USE_BZIP2= yes
USE_GCC= 4.2+
USE_SCONS= yes
#USE_OPENSSL= yes
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)
#
# To roll snapshot: as bms: make BOOTSTRAP=defined fetch
#
.if defined(BOOTSTRAP)
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
SVN_REV= 11685 # svn tip at epoch 2009120801
SVNROOT_URI= http://xorp.svn.sourceforge.net/svnroot/xorp
do-fetch:
${MKDIR} ${WRKDIR}
svn export -r ${SVN_REV} ${SVNROOT_URI}/trunk/xorp ${WRKSRC}
cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
.if ${USER} == bms
${CHMOD} ugo+r ${DISTDIR}/${DISTNAME}.tar.bz2
scp -p ${DISTDIR}/${DISTNAME}.tar.bz2 \
freefall.freebsd.org:public_distfiles/
.endif
.endif # defined(BOOTSTRAP)
.include <bsd.port.options.mk>
XORP_GROUP= xorp
USE_RC_SUBR= xorp
SCONS_ARGS+= prefix=${PREFIX}
.if ${PORT_OPTIONS:MOPTIMIZE}
SCONS_ARGS+= optimize=yes
.else
SCONS_ARGS+= optimize=no
.endif
.if ${PORT_OPTIONS:MSHARED}
SCONS_ARGS+= shared=true
PLIST_SUB+= XORP_SHLIB=""
USE_LDCONFIG= ${PREFIX}/lib/xorp/lib
. if ${PORT_OPTIONS:MORIGIN}
SCONS_ARGS+= origin=true
. else
SCONS_ARGS+= origin=false
. endif
.else
SCONS_ARGS+= shared=false
PLIST_SUB+= XORP_SHLIB="@comment "
.endif
.if ${PORT_OPTIONS:MSTRIP}
SCONS_ARGS+= strip=true
.else
SCONS_ARGS+= strip=false
.endif
.if ${PORT_OPTIONS:MTCP_RPC}
SCONS_ARGS+= transport=tcp
.else
SCONS_ARGS+= transport=local
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-install:
${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|