aboutsummaryrefslogtreecommitdiff
path: root/databases/db4
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-10-07 17:04:00 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-10-07 17:04:00 +0000
commitfcdf17994d2fef9e2a1378d164e5fd578e6ef262 (patch)
tree319e9435da77fa68a60981e928f5cf94a9f9baf0 /databases/db4
parent4a73519d34531ef2a3d1af1c1d5ab3e338ed2dbb (diff)
downloadports-fcdf17994d2fef9e2a1378d164e5fd578e6ef262.tar.gz
ports-fcdf17994d2fef9e2a1378d164e5fd578e6ef262.zip
Location independence (by LOCALBASE) of both ltconfig and ltmain.sh
PR: 30920 Submitted by: MAINTAINER Prompted by: Mike Meyer <mwm@mired.org>
Notes
Notes: svn path=/head/; revision=48528
Diffstat (limited to 'databases/db4')
-rw-r--r--databases/db4/Makefile1
-rw-r--r--databases/db4/files/patch-ab4
2 files changed, 3 insertions, 2 deletions
diff --git a/databases/db4/Makefile b/databases/db4/Makefile
index 6f530585878e..e4f17b13794d 100644
--- a/databases/db4/Makefile
+++ b/databases/db4/Makefile
@@ -38,5 +38,6 @@ pre-patch:
post-patch:
@${CHMOD} 755 ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/../dist/configure
.include <bsd.port.mk>
diff --git a/databases/db4/files/patch-ab b/databases/db4/files/patch-ab
index 848114a2bbea..50bab3b542f2 100644
--- a/databases/db4/files/patch-ab
+++ b/databases/db4/files/patch-ab
@@ -7,8 +7,8 @@
- ${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig \
- --no-verify $srcdir/ltmain.sh \
- --output=./libtool $host_os \
-+ ${CONFIG_SHELL-/bin/sh} /usr/local/share/libtool/ltconfig \
-+ --no-verify --disable-ltlibs /usr/local/share/libtool/ltmain.sh $target \
++ ${CONFIG_SHELL-/bin/sh} %%LOCALBASE%%/share/libtool/ltconfig \
++ --no-verify --disable-ltlibs %%LOCALBASE%%/share/libtool/ltmain.sh $target \
+ --output=./libtool \
--disable-static \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }