diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-04 23:12:57 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-04 23:12:57 +0800 |
commit | c78727d9cdecf0e15ee634abc6daed14492ac621 (patch) | |
tree | cb45fd1a644cc18c8c138010fbcf68f3f16e389e /lang/p2c/scripts | |
parent | 5dd6940f08023612e64f9e143ff1cec3e1e97d60 (diff) | |
download | freebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.tar.gz freebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.tar.zst freebsd-ports-gnome-c78727d9cdecf0e15ee634abc6daed14492ac621.zip |
These are my changes to support the new argument-less configure scripts.
Diffstat (limited to 'lang/p2c/scripts')
-rw-r--r-- | lang/p2c/scripts/configure | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lang/p2c/scripts/configure b/lang/p2c/scripts/configure index 5ff74d5135f5..eab3c4597275 100644 --- a/lang/p2c/scripts/configure +++ b/lang/p2c/scripts/configure @@ -1,16 +1,14 @@ #!/bin/sh -if [ $# != 3 ]; then exit 1; fi - -cat >>$3/Makefile <<END || exit 1; +cat >>${WRKSRC}/Makefile <<END || exit 1; all: cd src; make OPT=-O END -mv $3/src/p2cc.perl $3/src/p2cc.perl.orig || exit 1; -sed -e 1s/--.*// < $3/src/p2cc.perl.orig > $3/src/p2cc.perl || exit 1; +mv ${WRKSRC}/src/p2cc.perl ${WRKSRC}/src/p2cc.perl.orig || exit 1; +sed -e 1s/--.*// < ${WRKSRC}/src/p2cc.perl.orig > ${WRKSRC}/src/p2cc.perl || exit 1; -cat >>$3/src/Makefile <<END || exit 1; +cat >>${WRKSRC}/src/Makefile <<END || exit 1; HOMEDIR=/usr/local/lib/p2c INCDIR=/usr/local/include/p2c BINDIR=/usr/local/bin |