svn commit: r408195 - in head/news/trn4: . files scripts

John Marino marino at FreeBSD.org
Fri Feb 5 14:50:25 UTC 2016


Author: marino
Date: Fri Feb  5 14:50:23 2016
New Revision: 408195
URL: https://svnweb.freebsd.org/changeset/ports/408195

Log:
  news/trn4: document ncurses requirement (USES+=ncurses)
  
  Also link with libncurses instead of libcurses or libtermlib.
  
  approved by:	infrastructure blanket

Added:
  head/news/trn4/files/patch-Configure   (contents, props changed)
Modified:
  head/news/trn4/Makefile
  head/news/trn4/scripts/preconf

Modified: head/news/trn4/Makefile
==============================================================================
--- head/news/trn4/Makefile	Fri Feb  5 14:18:45 2016	(r408194)
+++ head/news/trn4/Makefile	Fri Feb  5 14:50:23 2016	(r408195)
@@ -13,6 +13,8 @@ COMMENT=	Version 4.0 of the threaded rea
 
 CONFLICTS_INSTALL=trn-3.[0-9]* cnews-* s-news-[0-9]*
 
+USES=		ncurses
+
 .include <bsd.port.pre.mk>
 
 post-patch:

Added: head/news/trn4/files/patch-Configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/trn4/files/patch-Configure	Fri Feb  5 14:50:23 2016	(r408195)
@@ -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
+ 		;;

Modified: head/news/trn4/scripts/preconf
==============================================================================
--- head/news/trn4/scripts/preconf	Fri Feb  5 14:18:45 2016	(r408194)
+++ head/news/trn4/scripts/preconf	Fri Feb  5 14:50:23 2016	(r408195)
@@ -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'


More information about the svn-ports-all mailing list