pkgsrc/devel/vtcl/patches/patch-aa
2010-01-08 12:47:44 +00:00

30 lines
498 B
Text

$NetBSD: patch-aa,v 1.2 2010/01/08 12:47:44 joerg Exp $
--- configure.orig 2003-08-12 06:11:14.000000000 +0000
+++ configure
@@ -45,7 +45,6 @@ return 0
}
-findwish
echo
if [ -z "$WISH" ]; then
@@ -58,11 +57,16 @@ echo
cd `dirname $0`
VTCL_HOME=`pwd`
+if [ "$1" = "--libdir" -a -n "$2" ]; then
+ libdir="$2"
+else
+ libdir="$VTCL_HOME"
+fi
cat > $VTCL_HOME/vtcl << EOF
#!/bin/sh
PATH_TO_WISH=$WISH
-VTCL_HOME=$VTCL_HOME
+VTCL_HOME=$libdir
export PATH_TO_WISH
export VTCL_HOME