summaryrefslogtreecommitdiff
path: root/news/trn/patches/patch-ac
diff options
context:
space:
mode:
authorchristos <christos@pkgsrc.org>2013-10-15 16:06:18 +0000
committerchristos <christos@pkgsrc.org>2013-10-15 16:06:18 +0000
commitb7e86cc414caf8c20ca356533ba9a65717c7a3cd (patch)
treeb80b6a45370c674b79019f2432dbc6cbc3325a34 /news/trn/patches/patch-ac
parent3c497f43130c5508b14330ff4d4763cca5a39f08 (diff)
downloadpkgsrc-b7e86cc414caf8c20ca356533ba9a65717c7a3cd.tar.gz
prefer terminfo/termcap before curses
Diffstat (limited to 'news/trn/patches/patch-ac')
-rw-r--r--news/trn/patches/patch-ac119
1 files changed, 92 insertions, 27 deletions
diff --git a/news/trn/patches/patch-ac b/news/trn/patches/patch-ac
index 847f0e7648f..e5e4345206a 100644
--- a/news/trn/patches/patch-ac
+++ b/news/trn/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
+$NetBSD: patch-ac,v 1.8 2013/10/15 16:06:18 christos Exp $
--- Configure.orig 2001-02-22 14:17:39.000000000 -0500
-+++ Configure 2013-02-09 13:06:33.000000000 -0500
++++ Configure 2013-10-15 12:04:56.000000000 -0400
@@ -1507,7 +1507,7 @@
myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
# tr '[A-Z]' '[a-z]' would not work in EBCDIC
@@ -30,14 +30,17 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
esac
;;
esac
-@@ -4882,6 +4885,25 @@
- esac
+@@ -4856,9 +4859,47 @@
+
+ : where do we get termlib routines from
+ echo " "
+-xxx=`./loc libcurses$_a x $libpth`
++xxx=`./loc libtermlib$_a x $libpth`
case "$xxx" in
- x)
-+ xxx=`./loc libcurses$_a x $libpth`
+ /*)
+ case "$xxx" in
+ /usr/lib*|/lib*)
-+ termlib='-lcurses'
++ termlib='-ltermlib'
+ d_havetlib="$define"
+ echo "Termlib library found." >&4
+ ;;
@@ -53,25 +56,17 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
+esac
+case "$xxx" in
+x)
- xxx=`./loc libtermlib$_a x $libpth`
- case "$xxx" in
- /usr/lib*|/lib*)
-@@ -4939,6 +4961,26 @@
- esac
- case "$xxx" in
- x)
-+ xxx=`./loc libcurses.$so'*' x $libpth`
++ xxx=`./loc libtermcap.$so'*' x $libpth`
+ case "$xxx" in
+ /usr/lib*|/lib*)
-+ termlib='-lcurses'
++ termlib='-ltermcap'
+ d_havetlib="$define"
-+ echo "Terminfo library found." >&4
++ echo "Termcap library found." >&4
+ ;;
+ /*)
-+ xxx=`dirname "$xxx"`
+ termlib="$xxx"
+ d_havetlib="$define"
-+ echo "Terminfo library found." >&4
++ echo "Termcap library found." >&4
+ ;;
+ *)
+ xxx=x
@@ -80,10 +75,80 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
+esac
+case "$xxx" in
+x)
- xxx=`./loc libtermlib.$so'*' x $libpth`
++ xxx=`./loc libcurses$_a x $libpth`
+ ar t $xxx >grimble
+ if $contains tputs$_o grimble >/dev/null 2>&1; then
+ termlib='-lcurses'
+@@ -4882,10 +4923,10 @@
+ esac
+ case "$xxx" in
+ x)
+- xxx=`./loc libtermlib$_a x $libpth`
++ xxx=`./loc libcurses$_a x $libpth`
case "$xxx" in
/usr/lib*|/lib*)
-@@ -6223,14 +6265,14 @@
+- termlib='-ltermlib'
++ termlib='-lcurses'
+ d_havetlib="$define"
+ echo "Termlib library found." >&4
+ ;;
+@@ -4901,17 +4942,17 @@
+ esac
+ case "$xxx" in
+ x)
+- xxx=`./loc libtermcap$_a x $libpth`
++ xxx=`./loc libcurses.$so'*' x $libpth`
+ case "$xxx" in
+ /usr/lib*|/lib*)
+- termlib='-ltermcap'
++ termlib='-lcurses'
+ d_havetlib="$define"
+- echo "Termcap library found." >&4
++ echo "Terminfo library found." >&4
+ ;;
+ /*)
+ termlib="$xxx"
+ d_havetlib="$define"
+- echo "Termcap library found." >&4
++ echo "Terminfo library found." >&4
+ ;;
+ *)
+ xxx=x
+@@ -4928,6 +4969,7 @@
+ echo "Terminfo library found." >&4
+ ;;
+ /*)
++ xxx=`dirname "$xxx"`
+ termlib="$xxx"
+ d_havetlib="$define"
+ echo "Terminfo library found." >&4
+@@ -4958,25 +5000,6 @@
+ esac
+ case "$xxx" in
+ x)
+- xxx=`./loc libtermcap.$so'*' x $libpth`
+- case "$xxx" in
+- /usr/lib*|/lib*)
+- termlib='-ltermcap'
+- d_havetlib="$define"
+- echo "Termcap library found." >&4
+- ;;
+- /*)
+- termlib="$xxx"
+- d_havetlib="$define"
+- echo "Termcap library found." >&4
+- ;;
+- *)
+- xxx=x
+- esac
+- ;;
+-esac
+-case "$xxx" in
+-x)
+ dflt=y
+ rp="Your system appears to NOT have termlib-style routines. Is this true?"
+ . ./myread
+@@ -6223,14 +6246,14 @@
acttimes='$acttimes'
aphostcmd='$aphostcmd'
archobjs='$archobjs'
@@ -101,7 +166,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
cc='$cc'
ccflags='$ccflags'
cf_by='$cf_by'
-@@ -6240,7 +6282,7 @@
+@@ -6240,7 +6263,7 @@
comm='$comm'
contains='$contains'
contdist='$contdist'
@@ -110,7 +175,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
cpp='$cpp'
cppflags='$cppflags'
cpplast='$cpplast'
-@@ -6305,21 +6347,21 @@
+@@ -6305,21 +6328,21 @@
d_xthread='$d_xthread'
date='$date'
defeditor='$defeditor'
@@ -137,7 +202,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
groupdesc='$groupdesc'
hint='$hint'
hostbits='$hostbits'
-@@ -6376,10 +6418,10 @@
+@@ -6376,10 +6399,10 @@
mimecap='$mimecap'
mips='$mips'
mips_type='$mips_type'
@@ -150,7 +215,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
myactive='$myactive'
myuname='$myuname'
n='$n'
-@@ -6417,11 +6459,11 @@
+@@ -6417,11 +6440,11 @@
prefshell='$prefshell'
privlib='$privlib'
privlibexp='$privlibexp'
@@ -164,7 +229,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
sendmail='$sendmail'
servername='$servername'
sharpbang='$sharpbang'
-@@ -6442,7 +6484,7 @@
+@@ -6442,7 +6465,7 @@
strn='$strn'
subscriptions='$subscriptions'
sysman='$sysman'
@@ -173,7 +238,7 @@ $NetBSD: patch-ac,v 1.7 2013/02/09 18:30:14 christos Exp $
tee='$tee'
termlib='$termlib'
test='$test'
-@@ -6450,7 +6492,7 @@
+@@ -6450,7 +6473,7 @@
tk='$tk'
tkinc='$tkinc'
tklibs='$tklibs'