summaryrefslogtreecommitdiff
path: root/graphics/scigraphica
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-19 16:06:39 +0000
committerdrochner <drochner>2002-01-19 16:06:39 +0000
commit222d5997bd78ebfaf7eba2d889240fc7f3b52cbf (patch)
treefbe5998eac6b1e74432f0d707473e8a3667ee87a /graphics/scigraphica
parent403119b2fa71a2eef9a6fc094b9747a695ec44fc (diff)
downloadpkgsrc-222d5997bd78ebfaf7eba2d889240fc7f3b52cbf.tar.gz
pass python interpreter path to "configure",
make sure configure finds the right python installation
Diffstat (limited to 'graphics/scigraphica')
-rw-r--r--graphics/scigraphica/Makefile3
-rw-r--r--graphics/scigraphica/distinfo3
-rw-r--r--graphics/scigraphica/patches/patch-aa70
3 files changed, 74 insertions, 2 deletions
diff --git a/graphics/scigraphica/Makefile b/graphics/scigraphica/Makefile
index 141d52b43cd..dc497278c3b 100644
--- a/graphics/scigraphica/Makefile
+++ b/graphics/scigraphica/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2002/01/15 18:40:06 drochner Exp $
+# $NetBSD: Makefile,v 1.8 2002/01/19 16:06:39 drochner Exp $
#
DISTNAME= sg-0.7.0
@@ -20,6 +20,7 @@ USE_X11= yes
USE_GMAKE= yes
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --without-gnome
+CONFIGURE_ENV+= PYTHONBIN=${PYTHONBIN}
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
PY_PATCHPLIST= yes
diff --git a/graphics/scigraphica/distinfo b/graphics/scigraphica/distinfo
index 01a8332c882..a6648fecf5c 100644
--- a/graphics/scigraphica/distinfo
+++ b/graphics/scigraphica/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2001/07/11 10:39:09 drochner Exp $
+$NetBSD: distinfo,v 1.5 2002/01/19 16:06:40 drochner Exp $
SHA1 (sg-0.7.0.tar.gz) = 2b5e07f4e6aacfbf6ca51f3f54e96debe8ed1f42
Size (sg-0.7.0.tar.gz) = 677749 bytes
+SHA1 (patch-aa) = f63d16069f94d3c8f9f803edac256410cfe2d677
SHA1 (patch-ab) = a8b55efd65d773785247c1c798fdcd1925ae0385
SHA1 (patch-ac) = 603070a4dbdd2d98f94786408218d056eff9b8f4
diff --git a/graphics/scigraphica/patches/patch-aa b/graphics/scigraphica/patches/patch-aa
new file mode 100644
index 00000000000..03de6a66536
--- /dev/null
+++ b/graphics/scigraphica/patches/patch-aa
@@ -0,0 +1,70 @@
+$NetBSD: patch-aa,v 1.4 2002/01/19 16:06:41 drochner Exp $
+
+--- configure.orig Sat Jan 19 16:52:07 2002
++++ configure Sat Jan 19 16:58:08 2002
+@@ -4035,35 +4035,7 @@
+ EOF
+
+
+-# Extract the first word of "python", so it can be a program name with args.
+-set dummy python; ac_word=$2
+-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+-echo "configure:4042: checking for $ac_word" >&5
+-if eval "test \"`echo '$''{'ac_cv_prog_python_val'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- if test -n "$python_val"; then
+- ac_cv_prog_python_val="$python_val" # Let the user override the test.
+-else
+- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+- ac_dummy="$PATH"
+- for ac_dir in $ac_dummy; do
+- test -z "$ac_dir" && ac_dir=.
+- if test -f $ac_dir/$ac_word; then
+- ac_cv_prog_python_val="true"
+- break
+- fi
+- done
+- IFS="$ac_save_ifs"
+- test -z "$ac_cv_prog_python_val" && ac_cv_prog_python_val="false"
+-fi
+-fi
+-python_val="$ac_cv_prog_python_val"
+-if test -n "$python_val"; then
+- echo "$ac_t""$python_val" 1>&6
+-else
+- echo "$ac_t""no" 1>&6
+-fi
++python_val=true
+
+ numpy=false
+
+@@ -4084,8 +4056,8 @@
+ fi
+
+ if test x$python_prefix = x; then
+- PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
+- PY_EXEC_PREFIX=`python -c 'import sys ; print sys.exec_prefix'`
++ PY_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.prefix'`
++ PY_EXEC_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.exec_prefix'`
+ else
+ echo "Using elternative python installation under $python_prefix"
+ PY_PREFIX=$python_prefix
+@@ -4093,13 +4065,13 @@
+ fi
+
+ echo PY_PREFIX=$PY_PREFIX
+- PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
+- PY_VVERSION=`python -c 'import sys ; print sys.version[0:5]'`
++ PY_VERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:3]'`
++ PY_VVERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:5]'`
+ if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
+ PY_LIBS="python$PY_VERSION"
+ PY_LIB_LOC="$PY_EXEC_PREFIX/lib/python$PY_VERSION/"
+- array_loc=`find $PY_PREFIX/ -name arrayobject.h | sed s/arrayobject\.h//`
+-# array_loc=`find $PY_PREFIX/include/python$PY_VERSION/ -name arrayobject.h | sed s/arrayobject\.h//`
++# array_loc=`find $PY_PREFIX/ -name arrayobject.h | sed s/arrayobject\.h//`
++ array_loc=`find $PY_PREFIX/include/python$PY_VERSION/ -name arrayobject.h | sed s/arrayobject\.h//`
+ echo arrayobject.h location: $array_loc
+ PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
+ if test -n $array_loc; then