aboutsummaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-02-05 22:50:23 +0800
committermarino <marino@FreeBSD.org>2016-02-05 22:50:23 +0800
commit685bcb67a57bb9641106e1957cfb73f6c19f55ae (patch)
treeec871e2b3ce60b0fbddbc58f4c23cd6fa5b19e0f /news
parenta16c3105743be40583e3616a73b82f9b97ee6763 (diff)
downloadfreebsd-ports-gnome-685bcb67a57bb9641106e1957cfb73f6c19f55ae.tar.gz
freebsd-ports-gnome-685bcb67a57bb9641106e1957cfb73f6c19f55ae.tar.zst
freebsd-ports-gnome-685bcb67a57bb9641106e1957cfb73f6c19f55ae.zip
news/trn4: document ncurses requirement (USES+=ncurses)
Also link with libncurses instead of libcurses or libtermlib. approved by: infrastructure blanket
Diffstat (limited to 'news')
-rw-r--r--news/trn4/Makefile2
-rw-r--r--news/trn4/files/patch-Configure16
-rw-r--r--news/trn4/scripts/preconf2
3 files changed, 19 insertions, 1 deletions
diff --git a/news/trn4/Makefile b/news/trn4/Makefile
index 056beb58833e..b33e2e4c752d 100644
--- a/news/trn4/Makefile
+++ b/news/trn4/Makefile
@@ -13,6 +13,8 @@ COMMENT= Version 4.0 of the threaded readnews newsreader
CONFLICTS_INSTALL=trn-3.[0-9]* cnews-* s-news-[0-9]*
+USES= ncurses
+
.include <bsd.port.pre.mk>
post-patch:
diff --git a/news/trn4/files/patch-Configure b/news/trn4/files/patch-Configure
new file mode 100644
index 000000000000..a597942bfc61
--- /dev/null
+++ b/news/trn4/files/patch-Configure
@@ -0,0 +1,16 @@
+--- Configure.orig 2010-09-02 06:12:26 UTC
++++ Configure
+@@ -4920,10 +4920,10 @@ x)
+ esac
+ case "$xxx" in
+ x)
+- xxx=`./loc libcurses.$so'*' x $libpth`
++ xxx=`./loc libncurses.$so'*' x $libpth`
+ case "$xxx" in
+- /usr/lib*|/lib*)
+- termlib='-lcurses'
++ /usr/lib*|/lib*|$prefix/lib*)
++ termlib='-lncurses'
+ d_havetlib="$define"
+ echo "Terminfo library found." >&4
+ ;;
diff --git a/news/trn4/scripts/preconf b/news/trn4/scripts/preconf
index 8da7d9d0ab96..5f38ca040f66 100644
--- a/news/trn4/scripts/preconf
+++ b/news/trn4/scripts/preconf
@@ -288,7 +288,7 @@ subscriptions=''
sysman='/usr/share/man/man1'
tail='/usr/bin/tail'
tee=''
-termlib='-lcursus'
+termlib='-lncurses'
test='/bin/test'
threaddir='remote'
tk='undef'