summaryrefslogtreecommitdiff
path: root/lang/nhc98/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-14 22:38:30 +0000
committerjlam <jlam@pkgsrc.org>2002-11-14 22:38:30 +0000
commit9f7d95cdcdf5411b04251cc18de4f8e0da594325 (patch)
treec605da235ffc0ab72f227939a84fb7a069d6cf4f /lang/nhc98/patches
parentd7538956f0215a16e615af9e2c2c7ea09592f2ee (diff)
downloadpkgsrc-9f7d95cdcdf5411b04251cc18de4f8e0da594325.tar.gz
buildlink1 -> buildlink2, and use java.mk for proper Java handling.
Diffstat (limited to 'lang/nhc98/patches')
-rw-r--r--lang/nhc98/patches/patch-aa34
1 files changed, 34 insertions, 0 deletions
diff --git a/lang/nhc98/patches/patch-aa b/lang/nhc98/patches/patch-aa
new file mode 100644
index 00000000000..768b76aa12b
--- /dev/null
+++ b/lang/nhc98/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.5 2002/11/14 22:38:30 jlam Exp $
+
+--- configure.orig Tue Aug 13 09:52:51 2002
++++ configure
+@@ -345,13 +345,13 @@ int main (void) { test(); }
+ if $CCC -o curses curses.c >/dev/null 2>/dev/null
+ then CURSES=""
+ else
+- if $CCC -o curses curses.c -lncurses >/dev/null 2>/dev/null
++ if $CCC $LDFLAGS -o curses curses.c -lncurses >/dev/null 2>/dev/null
+ then CURSES="-lncurses"
+ else
+- if $CCC -o curses curses.c -lcurses >/dev/null 2>/dev/null
++ if $CCC $LDFLAGS -o curses curses.c -lcurses >/dev/null 2>/dev/null
+ then CURSES="-lcurses"
+ else
+- if $CCC -o curses curses.c -lcurses -ltermcap >/dev/null 2>/dev/null
++ if $CCC $LDFLAGS -o curses curses.c -lcurses -ltermcap >/dev/null 2>/dev/null
+ then CURSES="-lcurses -ltermcap"
+ else CURSES="-ltermcap -lcurses" # don't know a good default?
+ fi
+@@ -368,10 +368,10 @@ int main (void) { test(); }
+
+ echo -n "Testing for the readline library: "
+ echo 'main(){readline();}' >rd.c
+- if ${CCC} -o rd.out rd.c -lreadline >/dev/null 2>&1
++ if ${CCC} ${LDFLAGS} -o rd.out rd.c -lreadline >/dev/null 2>&1
+ then echo ' -lreadline (detected)'
+ READLINE="-DUSE_READLINE=1 -lreadline"
+- else if ${CCC} -o rd.out rd.c -lreadline $CURSES >/dev/null 2>&1
++ else if ${CCC} ${LDFLAGS} -o rd.out rd.c -lreadline $CURSES >/dev/null 2>&1
+ then echo " -lreadline $CURSES (detected)"
+ READLINE="-DUSE_READLINE=1 -lreadline $CURSES"
+ else echo ' no (detected)'