2012-04-28 14:07:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.40 2012/04/28 18:07:56 stu Exp $
|
2000-01-05 21:46:03 -05:00
|
|
|
# $FreeBSD: ports/net/ns/Makefile,v 1.3 1999/11/28 18:31:26 steve Exp $
|
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= UCB/LBNL Network Simulator Version 2
|
2001-05-06 00:59:54 -04:00
|
|
|
|
2012-04-28 14:07:56 -04:00
|
|
|
V= 2.35
|
2007-10-24 11:01:09 -04:00
|
|
|
DISTNAME= ns-src-$V
|
2010-07-10 10:58:20 -04:00
|
|
|
PKGNAME= ns-$V
|
2000-01-05 21:46:03 -05:00
|
|
|
CATEGORIES= net
|
2012-04-28 14:07:56 -04:00
|
|
|
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
2002-10-27 19:47:05 -05:00
|
|
|
|
2012-04-28 14:07:56 -04:00
|
|
|
HOMEPAGE= http://nsnam.sourceforge.net/
|
2000-04-05 06:13:52 -04:00
|
|
|
|
2007-10-24 11:01:09 -04:00
|
|
|
# BSD
|
2003-11-01 15:05:01 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-04-18 03:13:06 -04:00
|
|
|
|
2011-01-05 14:06:06 -05:00
|
|
|
MODULES += x11/tk
|
2012-04-28 14:07:56 -04:00
|
|
|
WANTLIB += X11 Xext c m pcap stdc++ otcl
|
2011-01-05 14:06:06 -05:00
|
|
|
WANTLIB += ${MODTK_WANTLIB}
|
2007-10-24 11:01:09 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nsnam/}
|
|
|
|
WRKDIST= ${WRKDIR}/ns-$V
|
2000-01-05 21:46:03 -05:00
|
|
|
|
2012-04-28 14:07:56 -04:00
|
|
|
BUILD_DEPENDS= devel/tclcl
|
2011-01-05 14:06:06 -05:00
|
|
|
LIB_DEPENDS= lang/otcl \
|
|
|
|
${MODTK_LIB_DEPENDS}
|
2003-11-01 15:05:01 -05:00
|
|
|
|
2000-10-22 11:41:23 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2011-01-05 14:06:06 -05:00
|
|
|
CONFIGURE_ARGS= --with-tcl-ver=${MODTCL_VERSION} \
|
|
|
|
--with-tk-ver=${MODTK_VERSION} \
|
2012-04-28 14:07:56 -04:00
|
|
|
--with-tcl=${LOCALBASE} \
|
|
|
|
--with-tk=${LOCALBASE} \
|
|
|
|
--with-tclcl=${LOCALBASE} \
|
2006-11-20 18:17:12 -05:00
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib
|
2000-01-05 21:46:03 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ns ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ns.1 ${PREFIX}/man/man1
|
2000-04-05 06:13:52 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ns2
|
2000-01-05 21:46:03 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcl/ex/*.tcl ${PREFIX}/share/examples/ns2
|
2002-10-27 19:47:05 -05:00
|
|
|
|
2003-11-01 15:05:01 -05:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC} && ./validate
|
|
|
|
|
2000-01-05 21:46:03 -05:00
|
|
|
.include <bsd.port.mk>
|