openbsd-ports/net/ns/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

2010-10-24 16:58:58 -04:00
# $OpenBSD: Makefile,v 1.36 2010/10/24 21:30:01 ajacoutot Exp $
# $FreeBSD: ports/net/ns/Makefile,v 1.3 1999/11/28 18:31:26 steve Exp $
COMMENT= UCB/LBNL Network Simulator Version 2
2007-10-24 11:01:09 -04:00
V= 2.31
DISTNAME= ns-src-$V
2010-07-10 10:58:20 -04:00
PKGNAME= ns-$V
REVISION= 3
CATEGORIES= net
2002-10-27 19:47:05 -05:00
2007-10-24 11:01:09 -04:00
HOMEPAGE= http://www.isi.edu/nsnam/ns/
2007-10-24 11:01:09 -04:00
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-04-18 03:13:06 -04:00
WANTLIB= X11 c m pcap pthread-stubs stdc++ tcl84 tk84 xcb
2007-10-24 11:01:09 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nsnam/}
WRKDIST= ${WRKDIR}/ns-$V
2010-07-10 10:58:20 -04:00
BUILD_DEPENDS= :tclcl->=1.0b13p0:devel/tclcl
LIB_DEPENDS= otcl::lang/otcl
2010-10-18 14:36:45 -04:00
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
2007-10-24 11:01:09 -04:00
CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4 \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
2007-10-24 11:01:09 -04:00
pre-configure:
@perl -pi -e 's,!!X11BASE!!,${X11BASE},' ${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ns ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ns.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ns2
${INSTALL_DATA} ${WRKSRC}/tcl/ex/*.tcl ${PREFIX}/share/examples/ns2
2002-10-27 19:47:05 -05:00
do-regress:
cd ${WRKSRC} && ./validate
.include <bsd.port.mk>