openbsd-ports/net/ns/Makefile
stu 6dde7536de Update to ns 2.35
ok sthen@ sebastia@
2012-04-28 18:07:56 +00:00

50 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.40 2012/04/28 18:07:56 stu Exp $
# $FreeBSD: ports/net/ns/Makefile,v 1.3 1999/11/28 18:31:26 steve Exp $
COMMENT= UCB/LBNL Network Simulator Version 2
V= 2.35
DISTNAME= ns-src-$V
PKGNAME= ns-$V
CATEGORIES= net
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
HOMEPAGE= http://nsnam.sourceforge.net/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES += x11/tk
WANTLIB += X11 Xext c m pcap stdc++ otcl
WANTLIB += ${MODTK_WANTLIB}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nsnam/}
WRKDIST= ${WRKDIR}/ns-$V
BUILD_DEPENDS= devel/tclcl
LIB_DEPENDS= lang/otcl \
${MODTK_LIB_DEPENDS}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-tcl-ver=${MODTCL_VERSION} \
--with-tk-ver=${MODTK_VERSION} \
--with-tcl=${LOCALBASE} \
--with-tk=${LOCALBASE} \
--with-tclcl=${LOCALBASE} \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
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
do-regress:
cd ${WRKSRC} && ./validate
.include <bsd.port.mk>