blob: eee1ebd54eb4e528638eb26a3c90a3e974d2f09e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.53 2020/08/17 20:19:49 leot Exp $
DISTNAME= ns-src-2.35
PKGNAME= ns-2.35
PKGREVISION= 10
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nsnam/}
MAINTAINER= minskim@NetBSD.org
#HOMEPAGE= http://nsnam.isi.edu/nsnam/
COMMENT= The UCB/LBNL Network Simulator Version 2
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c99 c++
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PTHREAD_OPTS+= require
# Perl is only needed if you want to run the validation tests.
#USE_TOOLS+= perl
TOOLS_BROKEN+= perl
CONFIGURE_ARGS+= LIBS="`${CONFIG_SHELL} -c '. ${TCLCONFIG_SH}; ${ECHO} $$TCL_LIBS'`"
CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}
CONFIGURE_ARGS+= --with-tcl-ver=8.6
CONFIGURE_ARGS+= --with-tk=${BUILDLINK_PREFIX.tk}
CONFIGURE_ARGS+= --with-tk-ver=8.6
CONFIGURE_ARGS+= --with-otcl=${BUILDLINK_PREFIX.tcl-otcl}
CONFIGURE_ARGS+= --with-tclcl=${BUILDLINK_PREFIX.tcl-tclcl}
CONFIGURE_ENV+= X11LIBDIR=${X11BASE}/lib${LIBABISUFFIX}
CONFIGURE_ENV+= X11INCDIR=${X11BASE}/include
SUBST_CLASSES+= char
SUBST_STAGE.char= pre-configure
SUBST_MESSAGE.char= unsigned char needed for 8bit values
SUBST_FILES.char= bitmap/*.xbm
SUBST_SED.char= -e 's,char,u_char,'
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/ns
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/cmu-scen-gen/setdest/calcdest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/webtrace-conv/dec/dec-tr-stat ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/webtrace-conv/epa/epa-tr-stat ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/webtrace-conv/nlanr/nlanr-tr-stat ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/cmu-scen-gen/setdest/setdest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/indep-utils/webtrace-conv/ucb/ucb-tr-stat ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/CHANGES.html ${DESTDIR}${PREFIX}/share/doc/ns
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../devel/tcl-tclcl/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../lang/tcl-otcl/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|