aboutsummaryrefslogtreecommitdiffstats
path: root/math/calc/scripts
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-10-06 06:34:48 +0800
committerjkh <jkh@FreeBSD.org>1994-10-06 06:34:48 +0800
commitfa423b686a669f79374ef237759d2c06e082a51c (patch)
treeaa114adf2b28dfd215e39a8d346bf30c335bcba1 /math/calc/scripts
parentcdfa0d442a2b33626471934ac09b7992189b5553 (diff)
downloadfreebsd-ports-gnome-fa423b686a669f79374ef237759d2c06e082a51c.tar.gz
freebsd-ports-gnome-fa423b686a669f79374ef237759d2c06e082a51c.tar.zst
freebsd-ports-gnome-fa423b686a669f79374ef237759d2c06e082a51c.zip
Update from Jean-Marc Zucconi.
Submitted by: jmz
Diffstat (limited to 'math/calc/scripts')
-rw-r--r--math/calc/scripts/configure10
1 files changed, 6 insertions, 4 deletions
diff --git a/math/calc/scripts/configure b/math/calc/scripts/configure
index 1e3605568218..a6483fb5295c 100644
--- a/math/calc/scripts/configure
+++ b/math/calc/scripts/configure
@@ -1,10 +1,12 @@
#!/bin/sh
-F=${WRKSRC}/Makefile
+PREFIX=${PREFIX:-/usr/local}
+
+F=$WRKSRC/Makefile
chmod +w $F || exit 1;
-echo "BINDIR= /usr/local/bin" >> $F || exit 1;
-echo "TOPDIR= /usr/local/lib" >> $F
-echo "MANDIR=/usr/local/man/man1" >> $F
+echo "BINDIR= $PREFIX/bin" >> $F || exit 1;
+echo "TOPDIR= $PREFIX/lib" >> $F
+echo "MANDIR= $PREFIX/man/man1" >> $F
echo "CCOPT= -Wall -Wno-implicit -Wno-comment" >> $F \ No newline at end of file