blob: 847741ec881586dce06e725d08e25f857e85862e (
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
101
102
|
# Created by: Bruce M Simpson <bms@FreeBSD.org>
# $FreeBSD$
PORTNAME= xorp
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.xorp.org/releases/${PORTVERSION}/ \
http://www2.xorp.org/releases/${PORTVERSION}/ \
http://www5.xorp.org/releases/${PORTVERSION}/ \
http://www3.xorp.org/releases/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= The eXtensible Open Router Platform
LICENSE= GPLv2
OPTIONS_DEFINE= ADVMCAST IPV6 SNMP OPTIMIZED_CFLAGS TEST DEBUG PROFILE
OPTIONS_DEFAULT= ADVMCAST IPV6 SNMP OPTIMIZED_CFLAGS TEST PROFILE
ADVMCAST_DESC= Build with Advanced Multicast API
BROKEN= Does not build
DEPRECATED= Broken for more than 6 month
EXPIRATION_DATE= 2014-02-27
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}/${PORTNAME} \
--with-comment='FreeBSD port: ${PKGNAME}' \
--with-openssl=${OPENSSLBASE}
CXXFLAGS+= -Wno-uninitialized
NOMAN= defined
XORP_GROUP= xorp
USE_RC_SUBR= xorp
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MADVMCAST}
CONFIGURE_ARGS+= --enable-advanced-mcast-api
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${PORT_OPTIONS:MSNMP}
BUILD_DEPENDS+= ${LOCALBASE}/sbin/snmpd:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+= --with-snmp \
--with-path-to-snmpd=${LOCALBASE}/sbin \
--with-path-to-net-snmpd-config=${LOCALBASE}/bin/net-snmp-config \
--enable-shared
PLIST_SUB+= XORP_SNMP=""
USE_LDCONFIG= ${PREFIX}/mibs
.else
PLIST_SUB+= XORP_SNMP="@comment "
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CONFIGURE_ARGS+= --enable-optimize --disable-debug
.endif
.if ${PORT_OPTIONS:MTEST}
BUILD_DEPENDS+= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug-msgs --enable-debug-fnames
.endif
.if ${PORT_OPTIONS:MPROFILE}
CONFIGURE_ARGS+= --enable-profile
.endif
NOT_FOR_ARCH= sparc64
.include <bsd.port.pre.mk>
pre-everything::
.if !defined(PREFIX) || ${PREFIX} == "/usr/local"
@${ECHO_MSG} "XORP does not currently follow the hier(7) filesystem layout."
@${ECHO_MSG} "It will therefore install all its directories relative to ${PREFIX}."
@${ECHO_MSG} "If you do not want this, hit ^C now and set PREFIX in the"
@${ECHO_MSG} "build environment to something other than ${PREFIX}."
@${ECHO_MSG}
@${ECHO_MSG} "If you plan to build with SNMP support, please ensure that"
@${ECHO_MSG} "the net-mgmt/net-snmp port is already installed under ${LOCALBASE}"
@${ECHO_MSG} "before doing this."
.endif
post-install:
${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|