aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-10-24 05:00:22 +0800
committernaddy <naddy@FreeBSD.org>2002-10-24 05:00:22 +0800
commit688e9f42e5e38f5a809705884a543046bc1cbb23 (patch)
treebcdce94fbe021c3edbf4f237d72c644d5b6114fa /net
parent6be1eb4a25b80253953b95e4e3675e2ab1810cd9 (diff)
downloadfreebsd-ports-gnome-688e9f42e5e38f5a809705884a543046bc1cbb23.tar.gz
freebsd-ports-gnome-688e9f42e5e38f5a809705884a543046bc1cbb23.tar.zst
freebsd-ports-gnome-688e9f42e5e38f5a809705884a543046bc1cbb23.zip
* Update master site and home page.
* Honor CXX/CXXFLAGS. * Fix C++ for GCC3. Partly from discussion with and PR: 44404 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> Approved by: maintainer
Diffstat (limited to 'net')
-rw-r--r--net/ntalk/Makefile10
-rw-r--r--net/ntalk/files/patch-ntalk.cpp23
-rw-r--r--net/ntalk/pkg-descr2
3 files changed, 28 insertions, 7 deletions
diff --git a/net/ntalk/Makefile b/net/ntalk/Makefile
index b315ac6e0d62..8eb0a4ce92e2 100644
--- a/net/ntalk/Makefile
+++ b/net/ntalk/Makefile
@@ -8,15 +8,13 @@
PORTNAME= ntalk
PORTVERSION= 0.6.3
CATEGORIES= net
-MASTER_SITES= http://network.terramail.pl/files/
+MASTER_SITES= http://network.terramail.pl/
MAINTAINER= gslin@ccca.nctu.edu.tw
-USE_REINPLACE= yes
-ALL_TARGET= ${PORTNAME}
-
-post-patch:
- @${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/Makefile
+do-build:
+ cd ${WRKSRC}; \
+ ${CXX} ${CXXFLAGS} -o ntalk ntalk.cpp -lncurses ${PTHREAD_LIBS}
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/net/ntalk/files/patch-ntalk.cpp b/net/ntalk/files/patch-ntalk.cpp
new file mode 100644
index 000000000000..d9d3324687bd
--- /dev/null
+++ b/net/ntalk/files/patch-ntalk.cpp
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- ntalk.cpp.orig Wed Oct 23 17:27:37 2002
++++ ntalk.cpp Wed Oct 23 17:31:54 2002
+@@ -44,6 +44,8 @@
+ #define WHOIS "10"
+ #define SRVMESSAGE "11"
+
++using namespace std;
++
+
+ struct color {
+ int you;
+@@ -341,7 +343,7 @@
+ a = count(msg.begin(), msg.end(), ';');
+ for(x = 0; x < a; x++)
+ {
+- msg.replace(msg.find(';'), 1, '\n');
++ msg.replace(msg.find(';'), 1, "\n");
+ }
+
+ mvwprintw(user_w, 0, 0, "%s", msg.c_str());
diff --git a/net/ntalk/pkg-descr b/net/ntalk/pkg-descr
index ffce709d6788..3cdb1532732c 100644
--- a/net/ntalk/pkg-descr
+++ b/net/ntalk/pkg-descr
@@ -2,4 +2,4 @@ ntalk is a chat console app written with ncurses. It's designed to work in
all kinds of networks (LAN/WAN) and to be much more friendly and functional
than Unix talk.
-WWW: http://kab.w.interia.pl/
+WWW: http://network.terramail.pl/