aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsylvio <sylvio@FreeBSD.org>2012-06-07 08:38:50 +0800
committersylvio <sylvio@FreeBSD.org>2012-06-07 08:38:50 +0800
commit30235e18071be1dbe998570fbec148949c19957d (patch)
tree6de24e6cdee3b08770b9270db36d2016c4d0ae70 /net
parentcdbb30ed513f37b2a27064c01e64b3b50491d158 (diff)
downloadfreebsd-ports-gnome-30235e18071be1dbe998570fbec148949c19957d.tar.gz
freebsd-ports-gnome-30235e18071be1dbe998570fbec148949c19957d.tar.zst
freebsd-ports-gnome-30235e18071be1dbe998570fbec148949c19957d.zip
- Update net/nam to 1.15
- Checked on Redports.org[1] [1] http://redports.org/buildarchive/20120606014524-1994/ PR: ports/168732 Submitted by: Masaki TAGAWA <masaki@club.kyutech.ac.jp> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/nam/Makefile12
-rw-r--r--net/nam/distinfo4
-rw-r--r--net/nam/files/patch-configure48
-rw-r--r--net/nam/files/patch-editview.cc20
-rw-r--r--net/nam/files/patch-group.cc11
-rw-r--r--net/nam/files/patch-netmodel.cc20
-rw-r--r--net/nam/files/patch-random.cc14
7 files changed, 55 insertions, 74 deletions
diff --git a/net/nam/Makefile b/net/nam/Makefile
index 042bae1fa207..91a033f01f87 100644
--- a/net/nam/Makefile
+++ b/net/nam/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= nam
-PORTVERSION= 1.12
-PORTREVISION= 4
+PORTVERSION= 1.15
CATEGORIES= net
-MASTER_SITES= http://www.isi.edu/nsnam/dist/
-DISTNAME= nam-src-${PORTVERSION}
+MASTER_SITES= SF/ns${PORTNAME}/${PORTNAME}-1/${PORTVERSION}
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= Animation tool for network simulation traces
@@ -30,9 +29,8 @@ ALL_TARGET= ${PORTNAME}
MAN1= nam.1
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/src/local/Tcl-1.0|${LOCALBASE}/include/tclcl|g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|const = NULL|const = 0|g' ${WRKSRC}/agent.h
- @${REINPLACE_CMD} -e 's|friend Queue|friend class Queue|g' ${WRKSRC}/queue.h
+ @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin
diff --git a/net/nam/distinfo b/net/nam/distinfo
index 3e86085707ad..45c83fc3bf4a 100644
--- a/net/nam/distinfo
+++ b/net/nam/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nam-src-1.12.tar.gz) = 6c0b099e6b6adc7c5133321d149c8acc27af0b49921d0a88b8dd90d6a24768cf
-SIZE (nam-src-1.12.tar.gz) = 4357479
+SHA256 (nam-src-1.15.tar.gz) = 12ed547b3a5f8903890889d40cfea4d9bd66bb9ba6be99a0c753a9763cad8882
+SIZE (nam-src-1.15.tar.gz) = 4365554
diff --git a/net/nam/files/patch-configure b/net/nam/files/patch-configure
new file mode 100644
index 000000000000..01f7afd074ea
--- /dev/null
+++ b/net/nam/files/patch-configure
@@ -0,0 +1,48 @@
+--- configure.org 2011-11-05 02:18:42.000000000 +0900
++++ configure 2012-06-05 01:43:42.000000000 +0900
+@@ -5771,9 +5771,15 @@
+ /usr/local/lib/tcl$TCL_VERS \
+ /usr/local/lib/tcl$TCL_HI_VERS \
+ /usr/local/lib/tcl$TCL_ALT_VERS \
+- /usr/local/include/tcl$TCL_VERS \
+- /usr/local/include/tcl$TCL_HI_VERS \
+- /usr/local/include/tcl$TCL_ALT_VERS \
++ %%LOCALBASE%%/include/tcl$TCL_VERS \
++ %%LOCALBASE%%/include/tcl$TCL_VERS/generic \
++ %%LOCALBASE%%/include/tcl$TCL_VERS/unix \
++ %%LOCALBASE%%/include/tcl$TCL_HI_VERS \
++ %%LOCALBASE%%/include/tcl$TCL_HI_VERS/generic \
++ %%LOCALBASE%%/include/tcl$TCL_HI_VERS/unix \
++ %%LOCALBASE%%/include/tcl$TCL_ALT_VERS \
++ %%LOCALBASE%%/include/tcl$TCL_ALT_VERS/generic \
++ %%LOCALBASE%%/include/tcl$TCL_ALT_VERS/unix \
+ /usr/local/include \
+ /import/tcl/include/tcl$TCL_VERS \
+ /import/tcl/include/tcl$TCL_HI_VERS \
+@@ -7005,7 +7011,7 @@
+ ../Tcl-$TCLCL_ALT_VERS \
+ ../Tcl \
+ /usr/src/local/Tcl \
+- /usr/src/local/Tcl-1.0 \
++ %%LOCALBASE%%/include/tclcl \
+ /import/Tcl/include \
+ /usr/local/include \
+ /usr/contrib/include \
+@@ -7025,7 +7031,7 @@
+ /usr/local/lib \
+ /usr/lib \
+ /usr/src/local/Tcl \
+- /usr/src/local/Tcl-1.0"
++ %%LOCALBASE%%/include/tclcl"
+ TCLCL_LIB_PLACES_D="\
+ $d \
+ $d/lib \
+@@ -7044,7 +7050,7 @@
+ /usr/local/bin \
+ /usr/bin \
+ /usr/src/local/Tcl \
+- /usr/src/local/Tcl-1.0 \
++ %%LOCALBASE%%/include/tclcl \
+ "
+ TCLCL_PROG_PLACES_D="
+ $d \
diff --git a/net/nam/files/patch-editview.cc b/net/nam/files/patch-editview.cc
deleted file mode 100644
index 5aa0cd81c7fa..000000000000
--- a/net/nam/files/patch-editview.cc
+++ /dev/null
@@ -1,20 +0,0 @@
---- editview.cc.orig 2007-08-02 14:52:33.000000000 +0200
-+++ editview.cc 2007-08-02 14:52:53.000000000 +0200
-@@ -66,7 +66,7 @@
- }
- char str[256];
- model_ = m;
-- sprintf(str, "def%-u", (int)this);
-+ sprintf(str, "def%-u", (intptr_t)this);
- defTag_ = new Tag(str);
- model_->add_tag(defTag_);
- editing_stage_ = NONE;
-@@ -89,7 +89,7 @@
- }
-
- model_ = m;
-- sprintf(str, "def%-u", (int)this);
-+ sprintf(str, "def%-u", (intptr_t)this);
- defTag_ = new Tag(name);
- model_->add_tag(defTag_);
- editing_stage_ = NONE;
diff --git a/net/nam/files/patch-group.cc b/net/nam/files/patch-group.cc
deleted file mode 100644
index f41a0133a89e..000000000000
--- a/net/nam/files/patch-group.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- group.cc.orig 2007-08-02 14:51:34.000000000 +0200
-+++ group.cc 2007-08-02 14:51:56.000000000 +0200
-@@ -81,7 +81,7 @@
- for (he = Tcl_FirstHashEntry(nodeHash_, &hs);
- he != NULL;
- he = Tcl_NextHashEntry(&hs), i++)
-- mbrs[i] = (int) Tcl_GetHashValue(he);
-+ mbrs[i] = (intptr_t) Tcl_GetHashValue(he);
- }
-
- void Group::draw(View * nv, double now) {
diff --git a/net/nam/files/patch-netmodel.cc b/net/nam/files/patch-netmodel.cc
deleted file mode 100644
index af4841967bb9..000000000000
--- a/net/nam/files/patch-netmodel.cc
+++ /dev/null
@@ -1,20 +0,0 @@
---- netmodel.cc.orig 2007-08-02 14:44:09.000000000 +0200
-+++ netmodel.cc 2007-08-02 14:47:11.000000000 +0200
-@@ -308,7 +308,7 @@
- Tcl_HashEntry *he = Tcl_FindHashEntry(addrHash_, (const char *)addr);
- if (he == NULL)
- return -1;
-- return (int)Tcl_GetHashValue(he);
-+ return (intptr_t)Tcl_GetHashValue(he);
- }
-
- //----------------------------------------------------------------------
-@@ -2761,7 +2761,7 @@
- Tcl_HashEntry *he = Tcl_FindHashEntry(objnameHash_, n);
- if (he == NULL)
- return -1;
-- return (int)Tcl_GetHashValue(he);
-+ return (intptr_t)Tcl_GetHashValue(he);
- #undef STATIC_NAMELEN
- }
-
diff --git a/net/nam/files/patch-random.cc b/net/nam/files/patch-random.cc
deleted file mode 100644
index c51bd3192e5f..000000000000
--- a/net/nam/files/patch-random.cc
+++ /dev/null
@@ -1,14 +0,0 @@
---- 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