diff options
-rw-r--r-- | net/nam/Makefile | 12 | ||||
-rw-r--r-- | net/nam/files/patch-random.cc | 14 |
2 files changed, 19 insertions, 7 deletions
diff --git a/net/nam/Makefile b/net/nam/Makefile index 6753f2e5fa04..042bae1fa207 100644 --- a/net/nam/Makefile +++ b/net/nam/Makefile @@ -7,26 +7,24 @@ PORTNAME= nam PORTVERSION= 1.12 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MASTER_SITES= http://www.isi.edu/nsnam/dist/ DISTNAME= nam-src-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= masaki@club.kyutech.ac.jp COMMENT= Animation tool for network simulation traces BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl LIB_DEPENDS= otcl.1:${PORTSDIR}/lang/otcl -BROKEN= does not configure - WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_XORG= xmu GNU_CONFIGURE= yes -CXXFLAGS+= -I${LOCALBASE}/include/tclcl -CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4 -MAKE_ARGS= CCOPT="${CXXFLAGS}" +CONFIGURE_ARGS= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER} --x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include +USE_GMAKE= yes +USE_TK= 85+ ALL_TARGET= ${PORTNAME} MAN1= nam.1 diff --git a/net/nam/files/patch-random.cc b/net/nam/files/patch-random.cc new file mode 100644 index 000000000000..c51bd3192e5f --- /dev/null +++ b/net/nam/files/patch-random.cc @@ -0,0 +1,14 @@ +--- random.cc.org 2006-09-27 04:28:19.000000000 +0900 ++++ random.cc 2012-06-04 19:23:10.000000000 +0900 +@@ -50,8 +50,11 @@ + RANDOM_RETURN_TYPE + random() GCC_THROW + { ++ return (long)Random::uniform(); ++ /* + printf("random() called in nam.\nRandom is not portable, please use Random::uniform() instead.\n"); + abort(); ++ */ + } + + #endif /* !WIN32 */
\ No newline at end of file |