openbsd-ports/net/ns/Makefile
2012-08-18 12:41:37 +00:00

49 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.41 2012/08/18 12:41:38 ajacoutot 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>