Lines 1-42
Link Here
|
1 |
# New ports collection makefile for: xorp |
1 |
# Created by: Bruce M Simpson <bms@FreeBSD.org> |
2 |
# Date created: 22nd September 2006 |
2 |
# $FreeBSD: $ |
3 |
# Whom: Bruce M Simpson <bms@FreeBSD.org> |
|
|
4 |
# |
5 |
# $FreeBSD: ports/net/xorp-devel/Makefile,v 1.6 2011/11/01 20:46:06 dougb Exp $ |
6 |
# |
7 |
|
3 |
|
8 |
PORTNAME= xorp-devel |
4 |
PORTNAME= xorp-devel |
9 |
PORTVERSION= 2009120801 |
5 |
PORTVERSION= 2009120801 |
10 |
PORTREVISION= 1 |
6 |
PORTREVISION= 1 |
11 |
CATEGORIES= net |
7 |
CATEGORIES= net |
12 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
8 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
13 |
MASTER_SITE_SUBDIR= bms |
9 |
MASTER_SITE_SUBDIR= bms |
14 |
DISTNAME= xorp-${PORTVERSION} |
10 |
DISTNAME= xorp-${PORTVERSION} |
15 |
|
11 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= Open source network routing platform, development branch |
13 |
COMMENT= Open source network routing platform, development branch |
18 |
|
14 |
|
19 |
# Uses libcurses, libcrypto, librt from base system. |
15 |
# Uses libcurses, libcrypto, librt from base system. |
20 |
BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:${PORTSDIR}/devel/boost-libs |
16 |
BUILD_DEPENDS= ${LOCALBASE}/include/boost/version.hpp:${PORTSDIR}/devel/boost-libs |
21 |
LIB_DEPENDS= boost_regex.4:${PORTSDIR}/devel/boost-libs \ |
17 |
LIB_DEPENDS= boost_regex.4:${PORTSDIR}/devel/boost-libs \ |
22 |
pcap.1:${PORTSDIR}/net/libpcap |
18 |
pcap.1:${PORTSDIR}/net/libpcap |
23 |
|
19 |
|
24 |
CONFLICTS= xorp-1* |
20 |
CONFLICTS= xorp-1* |
25 |
|
21 |
|
26 |
NOMAN= defined |
22 |
NOMAN= defined |
27 |
|
23 |
|
28 |
USE_BZIP2= yes |
24 |
USE_BZIP2= yes |
29 |
USE_GCC= 4.2+ |
25 |
USE_GCC= 4.2+ |
30 |
USE_SCONS= yes |
26 |
USE_SCONS= yes |
31 |
#USE_OPENSSL= yes |
27 |
#USE_OPENSSL= yes |
32 |
MAKE_JOBS_SAFE= defined |
28 |
MAKE_JOBS_SAFE= defined |
33 |
|
29 |
|
34 |
OPTIONS= \ |
30 |
OPTIONS_DEFINE= OPTIMIZE ORIGIN SHARED STRIP TCP_RPC |
35 |
OPTIMIZE "Build with optimization" On \ |
31 |
OPTIONS_DEFAULT= OPTIMIZE ORIGIN SHARED STRIP |
36 |
ORIGIN "Use ORIGIN with shared libraries" On \ |
32 |
OPTIMIZE_DESC= Build with optimization |
37 |
SHARED "Build with shared libraries" On \ |
33 |
ORIGIN_DESC= Use ORIGIN with shared libraries |
38 |
STRIP "Strip binaries before installing" On \ |
34 |
SHARED_DESC= Build with shared libraries |
39 |
TCP_RPC "Use TCP as RPC transport (defaults to AF_LOCAL)" Off |
35 |
STRIP_DESC= Strip binaries before installing |
|
|
36 |
TCP_RPC_DESC= Use TCP as RPC transport (defaults to AF_LOCAL) |
40 |
|
37 |
|
41 |
# |
38 |
# |
42 |
# To roll snapshot: as bms: make BOOTSTRAP=defined fetch |
39 |
# To roll snapshot: as bms: make BOOTSTRAP=defined fetch |
Lines 57-96
Link Here
|
57 |
.endif |
54 |
.endif |
58 |
.endif # defined(BOOTSTRAP) |
55 |
.endif # defined(BOOTSTRAP) |
59 |
|
56 |
|
60 |
.include <bsd.port.pre.mk> |
57 |
.include <bsd.port.options.mk> |
61 |
|
58 |
|
62 |
XORP_GROUP= xorp |
59 |
XORP_GROUP= xorp |
63 |
USE_RC_SUBR= xorp |
60 |
USE_RC_SUBR= xorp |
64 |
|
61 |
|
65 |
SCONS_ARGS+= prefix=${PREFIX} |
62 |
SCONS_ARGS+= prefix=${PREFIX} |
66 |
|
63 |
|
67 |
.if defined(WITHOUT_OPTIMIZE) |
64 |
.if !${PORT_OPTIONS:MOPTIMIZE} |
68 |
SCONS_ARGS+= optimize=no |
65 |
SCONS_ARGS+= optimize=no |
69 |
.else |
66 |
.else |
70 |
SCONS_ARGS+= optimize=yes |
67 |
SCONS_ARGS+= optimize=yes |
71 |
.endif |
68 |
.endif |
72 |
|
69 |
|
73 |
.if defined(WITHOUT_SHARED) |
70 |
.if !${PORT_OPTIONS:MSHARED} |
74 |
SCONS_ARGS+= shared=false |
71 |
SCONS_ARGS+= shared=false |
75 |
PLIST_SUB+= XORP_SHLIB="@comment " |
72 |
PLIST_SUB+= XORP_SHLIB="@comment " |
76 |
.else |
73 |
.else |
77 |
SCONS_ARGS+= shared=true |
74 |
SCONS_ARGS+= shared=true |
78 |
PLIST_SUB+= XORP_SHLIB="" |
75 |
PLIST_SUB+= XORP_SHLIB="" |
79 |
USE_LDCONFIG= ${PREFIX}/lib/xorp/lib |
76 |
USE_LDCONFIG= ${PREFIX}/lib/xorp/lib |
80 |
. if defined (WITHOUT_ORIGIN) |
77 |
.if !${PORT_OPTIONS:MORIGIN} |
81 |
SCONS_ARGS+= origin=false |
78 |
SCONS_ARGS+= origin=false |
82 |
. else |
79 |
. else |
83 |
SCONS_ARGS+= origin=true |
80 |
SCONS_ARGS+= origin=true |
84 |
. endif |
81 |
. endif |
85 |
.endif |
82 |
.endif |
86 |
|
83 |
|
87 |
.if defined(WITHOUT_STRIP) |
84 |
.if !${PORT_OPTIONS:MSTRIP} |
88 |
SCONS_ARGS+= strip=false |
85 |
SCONS_ARGS+= strip=false |
89 |
.else |
86 |
.else |
90 |
SCONS_ARGS+= strip=true |
87 |
SCONS_ARGS+= strip=true |
91 |
.endif |
88 |
.endif |
92 |
|
89 |
|
93 |
.if defined(WITH_TCP_RPC) |
90 |
.if ${PORT_OPTIONS:MTCP_RPC} |
94 |
SCONS_ARGS+= transport=tcp |
91 |
SCONS_ARGS+= transport=tcp |
95 |
.else |
92 |
.else |
96 |
SCONS_ARGS+= transport=local |
93 |
SCONS_ARGS+= transport=local |
Lines 103-106
Link Here
|
103 |
post-install: |
100 |
post-install: |
104 |
${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
101 |
${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
105 |
|
102 |
|
106 |
.include <bsd.port.post.mk> |
103 |
.include <bsd.port.mk> |