aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-10-20 09:51:56 +0800
committerjkh <jkh@FreeBSD.org>1994-10-20 09:51:56 +0800
commit76383c2b02637b3da123b34f6cb1f9deff4462b4 (patch)
tree38cb85dd0ece22d328d636f73eb28d382d076cb2
parent473a30c50b3c65125ff2beef36e17eb74990dedf (diff)
downloadfreebsd-ports-gnome-76383c2b02637b3da123b34f6cb1f9deff4462b4.tar.gz
freebsd-ports-gnome-76383c2b02637b3da123b34f6cb1f9deff4462b4.tar.zst
freebsd-ports-gnome-76383c2b02637b3da123b34f6cb1f9deff4462b4.zip
Changes from Jean-Marc Zucconi to obey PREFIX properly.
Submitted by: jmz
-rw-r--r--lang/p2c/Makefile9
-rw-r--r--lang/p2c/scripts/configure20
2 files changed, 16 insertions, 13 deletions
diff --git a/lang/p2c/Makefile b/lang/p2c/Makefile
index 329565bb433c..b2199d1dd917 100644
--- a/lang/p2c/Makefile
+++ b/lang/p2c/Makefile
@@ -3,10 +3,11 @@ DISTFILES= p2c-1.21alpha2.tar.gz
MASTER_SITES= ftp://src.doc.ic.ac.uk/gnu/hurd/
pre-install:
- @mkdir -p /usr/local/lib
- @mkdir -p /usr/local/man/man1
- @mkdir -p /usr/local/include/p2c
- @cp ${WRKSRC}/src/p2cc.man /usr/local/man/man1/p2cc.1
+ @mkdir -p ${PREFIX}/bin
+ @mkdir -p ${PREFIX}/lib
+ @mkdir -p ${PREFIX}/man/man1
+ @mkdir -p ${PREFIX}/include/p2c
+ @cp ${WRKSRC}/src/p2cc.man ${PREFIX}/man/man1/p2cc.1
.include <bsd.port.mk>
diff --git a/lang/p2c/scripts/configure b/lang/p2c/scripts/configure
index eab3c4597275..d1784843c707 100644
--- a/lang/p2c/scripts/configure
+++ b/lang/p2c/scripts/configure
@@ -1,19 +1,21 @@
#!/bin/sh
-cat >>${WRKSRC}/Makefile <<END || exit 1;
+cat >>$WRKSRC/Makefile <<END || exit 1;
+
all:
cd src; make OPT=-O
END
-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;
+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 >>${WRKSRC}/src/Makefile <<END || exit 1;
-HOMEDIR=/usr/local/lib/p2c
-INCDIR=/usr/local/include/p2c
-BINDIR=/usr/local/bin
-LIBDIR=/usr/local/lib
-MANDIR=/usr/local/man/man1
+cat >>$WRKSRC/src/Makefile <<END || exit 1;
+HOMEDIR=$PREFIX/lib/p2c
+INCDIR=$PREFIX/include/p2c
+BINDIR=$PREFIX/bin
+LIBDIR=$PREFIX/lib
+MANDIR=$PREFIX/man/man1
+ABSHOMEDIR=$PREFIX/lib/p2c
END
exit 0;