diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2001-10-08 20:02:22 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2001-10-08 20:02:22 +0000 |
commit | f61bf0851093ac46c686b667f6c019a255210d82 (patch) | |
tree | e838479eedb6f15e2ef7e7051e4d1324416de4e6 /x11/xloadimage | |
parent | * reconstruct Makefile defaults to make it more package friendly (diff) |
Set PREFIX so that pkg-install works well when the port is not installed in
/usr/local/.
Submitted by: Mike Meyer <mwm@mired.org>
Notes
Notes:
svn path=/head/; revision=48575
Diffstat (limited to 'x11/xloadimage')
-rw-r--r-- | x11/xloadimage/Makefile | 2 | ||||
-rw-r--r-- | x11/xloadimage/pkg-install | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/x11/xloadimage/Makefile b/x11/xloadimage/Makefile index f5603c2fc701..0c05fc1a19ae 100644 --- a/x11/xloadimage/Makefile +++ b/x11/xloadimage/Makefile @@ -54,6 +54,6 @@ do-install: ${PREFIX}/share/examples/xloadimage/xloadimagerc post-install: - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include <bsd.port.mk> diff --git a/x11/xloadimage/pkg-install b/x11/xloadimage/pkg-install index f6ed2ea2a7e4..8f59a7a7528c 100644 --- a/x11/xloadimage/pkg-install +++ b/x11/xloadimage/pkg-install @@ -6,7 +6,7 @@ # set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin -PREFIX=${PKG_PREFIX:-/usr/local} +PREFIX=${PREFIX:-${PKG_PREFIX:-/usr/local}} CONFIG_FILE=${PREFIX}/etc/xloadimagerc SAMPLE_CONFIG_DIR=${PREFIX}/share/examples/xloadimage |