2006-10-18 19:18:02 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2006/10/18 23:18:02 naddy Exp $
|
2005-01-25 16:19:22 -05:00
|
|
|
|
|
|
|
COMMENT= "eXtensible Open Router Platform"
|
|
|
|
|
2006-10-18 19:18:02 -04:00
|
|
|
VERSION= 1.3
|
2005-04-17 15:25:53 -04:00
|
|
|
DISTNAME= xorp-${VERSION}
|
2005-01-25 16:19:22 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= http://www.xorp.org/
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-04-17 15:25:53 -04:00
|
|
|
MASTER_SITES= http://www.xorp.org/releases/${VERSION}/ \
|
|
|
|
http://www2.xorp.org/releases/${VERSION}/ \
|
|
|
|
http://www3.xorp.org/releases/${VERSION}/
|
2005-01-25 16:19:22 -05:00
|
|
|
|
|
|
|
WANTLIB= c crypto curses m stdc++
|
|
|
|
|
|
|
|
# No BUILD_DEPENDS:
|
|
|
|
# Python only used to rebuild already included file with no changes.
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2006-10-18 19:18:02 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2005-01-25 16:19:22 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2005-02-26 11:57:48 -05:00
|
|
|
.if !defined(PACKAGING)
|
|
|
|
PREFIX=${LOCALBASE}/xorp
|
|
|
|
.endif
|
|
|
|
|
2005-04-17 15:25:53 -04:00
|
|
|
CONFIGURE_ARGS= --enable-optimize
|
2005-01-25 16:19:22 -05:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config ${WRKSRC}/cli/libtecla
|
|
|
|
|
2006-10-18 19:18:02 -04:00
|
|
|
REGRESS_DEPENDS= ::shells/bash \
|
|
|
|
::lang/python/2.4
|
2005-04-17 15:25:53 -04:00
|
|
|
|
|
|
|
# some regression tests must be run as root
|
|
|
|
do-regress:
|
2006-10-18 19:18:02 -04:00
|
|
|
@ln -s ${LOCALBASE}/bin/python2.4 ${WRKDIR}/bin
|
2005-04-17 15:25:53 -04:00
|
|
|
@cd ${WRKBUILD}; ${SUDO} ${MAKE_PROGRAM} ${REGRESS_TARGET}
|
|
|
|
|
2005-01-25 16:19:22 -05:00
|
|
|
.include <bsd.port.mk>
|