diff options
-rw-r--r-- | ports-mgmt/portupgrade-devel/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index 0a29885babd9..5af831cca3c2 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; \ |