Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 2016 14:50:24 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408195 - in head/news/trn4: . files scripts
Message-ID:  <201602051450.u15EoOkb041438@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602051450.u15EoOkb041438>