summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/