summaryrefslogtreecommitdiff
path: root/math/pari23/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'math/pari23/patches/patch-ab')
-rw-r--r--math/pari23/patches/patch-ab57
1 files changed, 57 insertions, 0 deletions
diff --git a/math/pari23/patches/patch-ab b/math/pari23/patches/patch-ab
new file mode 100644
index 00000000000..a174ccd2423
--- /dev/null
+++ b/math/pari23/patches/patch-ab
@@ -0,0 +1,57 @@
+$NetBSD: patch-ab,v 1.1 2016/03/03 13:23:22 wiz Exp $
+
+--- Configure.orig 2008-01-16 15:57:54.000000000 +0000
++++ Configure
+@@ -36,7 +36,7 @@ cd $config_dir
+ . ./get_PATH
+ # We might need the following :
+ echo Looking for some tools first ...
+-list='ld zcat gzip ranlib perl emacs'
++list='ld zcat ranlib emacs'
+ pathspace=`echo $PATH | sed -e "s/$dir_sep/ /g" | sed -e 's,\\\\,/,g'`
+
+ for file in $list; do
+@@ -49,6 +49,7 @@ for file in $list; do
+ esac
+ done
+ if test -z "$zcat" -a -n "$gzip"; then zcat="$gzip -dc"; fi
++perl=${PERL5}
+
+ ####################### CONFIGURE - ARCHITECTURE ############################
+ . ./get_archos # arch, osname
+@@ -101,14 +102,14 @@ fi
+ . ./get_static # static
+ # For dynamic linking, before and after installing
+ runpath="$libdir"
+-LDDYN="-L$libdir -lpari"
++LDDYN="-Wl,-R$libdir -L$libdir -lpari"
+ # get_modld needs $includedir from get_install, static, and LDDYN
+ . ./get_modld # $_modld_list
+
+ # Which copy, SHELL ?
+ case "$osname" in
+ os2) ln_s=cp; make_sh=sh;;
+- *) ln_s="ln -s"; make_sh="/bin/sh";;
++ *) ln_s="ln -sf"; make_sh="/bin/sh";;
+ esac
+ ####################### CONFIGURE - CLEANUP #################################
+ rm -f gmon.out # created by Configure -pg
+@@ -172,14 +173,14 @@ if test "$objdir" != "$mkobjdir"; then
+ fi
+
+ case $ans in
+-y) if (cd $objdir; make gp); then
++y) if (cd $objdir; ${MAKE} gp); then
+ echo $n "Shall we install the files where they belong (y/n)? $c"
+ dflt=n; rep='y n'; . $config_dir/myread
+ case $ans in
+- y) make install;;
+- n) echo "Ok. Type \"${cdobjdir}make install\" when you are ready";;
++ y) ${MAKE} install;;
++ n) echo "Ok. Type \"${cdobjdir}${MAKE} install\" when you are ready";;
+ esac
+ fi;;
+-n) echo "Ok. Type \"${cdobjdir}make install\" when you are ready";;
++n) echo "Ok. Type \"${cdobjdir}${MAKE} install\" when you are ready";;
+ esac
+ echo 'Bye !'