2011-11-15 19:20:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2011/11/16 00:20:09 sthen Exp $
|
2003-12-11 14:00:59 -05:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= multi-threaded routing daemon
|
2003-12-11 14:00:59 -05:00
|
|
|
|
2011-09-27 05:45:53 -04:00
|
|
|
DISTNAME= quagga-0.99.19
|
2011-11-15 19:20:08 -05:00
|
|
|
REVISION= 1
|
2011-09-27 05:45:53 -04:00
|
|
|
SHARED_LIBS= ospf 0.0 \
|
|
|
|
ospfapiclient 0.0 \
|
|
|
|
zebra 0.0
|
2003-12-11 14:00:59 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.quagga.net/download/
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.quagga.net/
|
|
|
|
|
2009-02-17 19:37:53 -05:00
|
|
|
# GPLv2+
|
2003-12-11 14:00:59 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-07-09 07:46:02 -04:00
|
|
|
|
|
|
|
WANTLIB= c curses m readline termcap
|
2003-12-11 14:00:59 -05:00
|
|
|
|
2007-06-20 14:05:36 -04:00
|
|
|
STATEDIR?= /var/quagga
|
2003-12-11 14:00:59 -05:00
|
|
|
SUBST_VARS= CONFDIR STATEDIR
|
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
BUILD_DEPENDS= lang/gawk
|
2003-12-11 14:00:59 -05:00
|
|
|
USE_GMAKE= Yes
|
2011-09-27 05:45:53 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2007-06-20 14:05:36 -04:00
|
|
|
CONFDIR= ${SYSCONFDIR}/quagga
|
2003-12-11 14:00:59 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
2011-09-27 05:45:53 -04:00
|
|
|
CONFIGURE_STYLE= gnu old
|
|
|
|
CONFIGURE_ARGS+= --includedir=${LOCALBASE}/include/quagga \
|
2007-06-20 14:05:36 -04:00
|
|
|
--sysconfdir=${CONFDIR} \
|
|
|
|
--localstatedir=${STATEDIR} \
|
|
|
|
--enable-user=_quagga \
|
|
|
|
--enable-group=_quagga \
|
2011-03-26 08:00:53 -04:00
|
|
|
--enable-vty-group=_quagga \
|
2007-06-20 14:05:36 -04:00
|
|
|
--enable-vtysh \
|
2007-09-12 16:31:17 -04:00
|
|
|
--mandir=${LOCALBASE}/man \
|
|
|
|
--infodir=${LOCALBASE}/info
|
2011-09-27 05:45:53 -04:00
|
|
|
.if ${MACHINE_ARCH:Mhppa} || ${MACHINE_ARCH:Marm}
|
|
|
|
CONFIGURE_ARGS+= --disable-pie
|
|
|
|
.endif
|
2003-12-11 14:00:59 -05:00
|
|
|
CONFIGURE_ENV= LIBS=-lcurses
|
|
|
|
|
2011-09-27 05:45:53 -04:00
|
|
|
MAKE_FLAGS= MAKEINFO="makeinfo --no-split"
|
|
|
|
FAKE_FLAGS= exampledir='${PREFIX}/share/examples/quagga' \
|
|
|
|
${MAKE_FLAGS}
|
2007-06-20 14:05:36 -04:00
|
|
|
|
2011-09-27 05:45:53 -04:00
|
|
|
FLAVORS= snmp
|
2003-12-11 14:00:59 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msnmp}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= net/net-snmp
|
2011-09-27 05:45:53 -04:00
|
|
|
WANTLIB+= crypto netsnmp
|
2003-12-11 14:00:59 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-snmp
|
2004-10-12 23:10:49 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2003-12-11 14:00:59 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-snmp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2007-06-20 14:05:36 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/quagga
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/SERVICES ${PREFIX}/share/doc/quagga
|
2011-03-26 08:00:53 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/quagga.info* ${PREFIX}/info
|
2003-12-11 14:00:59 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|