aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portupgrade-devel
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2010-11-15 17:33:03 +0800
committerbeech <beech@FreeBSD.org>2010-11-15 17:33:03 +0800
commit8cfdbf78026e28176f47ba4ef234b2a481a0d22d (patch)
tree1c6f68a4d31a431afbda991d07540ac6fb6d52a0 /ports-mgmt/portupgrade-devel
parent5a27741527356b7f8a6b4e65861632f2ffdd5d2e (diff)
downloadfreebsd-ports-graphics-8cfdbf78026e28176f47ba4ef234b2a481a0d22d.tar.gz
freebsd-ports-graphics-8cfdbf78026e28176f47ba4ef234b2a481a0d22d.tar.zst
freebsd-ports-graphics-8cfdbf78026e28176f47ba4ef234b2a481a0d22d.zip
Respect base
PR: 146858 Submitted by: Anonymous <swell.k@gmail.com> Approved by: dinoex
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r--ports-mgmt/portupgrade-devel/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile
index 0a29885babd..5af831cca3c 100644
--- a/ports-mgmt/portupgrade-devel/Makefile
+++ b/ports-mgmt/portupgrade-devel/Makefile
@@ -83,6 +83,10 @@ pre-extract:
@exit 1
.endif
+post-patch: .SILENT
+ ${REINPLACE_CMD} '/PREFIX/s:\(=[[:space:]]*\)\(.*/usr/local\):\1ENV["LOCALBASE"] || \2:' \
+ ${WRKSRC}/lib/pkgdb.rb ${WRKSRC}/lib/pkgtools.rb
+
post-install:
if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \
${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \