03e70deddc
pkgsrc changes: - Adding license (GPLv2) - Adding X11 and GMP support (latter via option) - Adding patches to support math/p5-Math-Pari can be build without rebuilding pari again Upstream changes: * Primarily a lot of bug fixes * Plotting API reworked * More targets are supported
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
$NetBSD: patch-ab,v 1.7 2010/02/06 10:37:06 sno 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 !'
|