openbsd-ports/net/xorp/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.18 2011/06/06 13:02:45 sthen Exp $
COMMENT-main= eXtensible Open Router Platform
2009-01-15 05:14:19 -05:00
VERSION= 1.6
DISTNAME= xorp-${VERSION}
2009-01-15 05:14:19 -05:00
PKGNAME-main= ${DISTNAME}
CATEGORIES= net
HOMEPAGE= http://www.xorp.org/
2010-04-21 18:10:21 -04:00
BROKEN-sparc64= ICE in route_table_fanout.cc
BROKEN-arm= xorpsh_print_routes.cc fails
2010-04-21 18:10:21 -04:00
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.xorp.org/releases/${VERSION}/ \
http://www2.xorp.org/releases/${VERSION}/ \
http://www3.xorp.org/releases/${VERSION}/
MULTI_PACKAGES= -main
PREFIX= ${LOCALBASE}/xorp
PREFIX-main= ${LOCALBASE}
2009-01-15 05:14:19 -05:00
WANTLIB= c crypto curses m pcap stdc++
USE_GMAKE= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-shared
MODULES= lang/python
MODPY_BUILDDEP= no
MODPY_RUNDEP= no
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --enable-optimize --disable-debug
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config ${WRKSRC}/cli/libtecla
2010-11-19 17:31:32 -05:00
REGRESS_DEPENDS= shells/bash \
${MODPY_RUN_DEPENDS}
# some regression tests must be run as root
do-regress:
@ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
@cd ${WRKBUILD}; ${SUDO} ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${ALL_REGRESS_FLAGS} ${REGRESS_TARGET}
2009-01-15 05:14:19 -05:00
post-install:
${INSTALL_DATA_DIR} ${WRKINST}/${PREFIX-main}/share/examples/xorp
cd ${WRKSRC}/rtrmgr/config; ${INSTALL_DATA} README *.boot \
${WRKINST}/${PREFIX-main}/share/examples/xorp
.include <bsd.port.mk>