aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2009-06-07 21:09:30 +0800
committeritetcu <itetcu@FreeBSD.org>2009-06-07 21:09:30 +0800
commitb35c87e8e86621e58c6e18880d64a57f1a4a7b31 (patch)
treea570abaa9270c039bef8bde9ab16f1f13157f5e9 /editors
parentaf4f6d35930e2b4e384bdd3a45a8f641822d2ab3 (diff)
downloadfreebsd-ports-gnome-b35c87e8e86621e58c6e18880d64a57f1a4a7b31.tar.gz
freebsd-ports-gnome-b35c87e8e86621e58c6e18880d64a57f1a4a7b31.tar.zst
freebsd-ports-gnome-b35c87e8e86621e58c6e18880d64a57f1a4a7b31.zip
Fix build with custom LOCALBASE.
Reported by: QATty
Diffstat (limited to 'editors')
-rw-r--r--editors/nvi-devel/Makefile1
-rw-r--r--editors/nvi-devel/files/patch-configure4
2 files changed, 3 insertions, 2 deletions
diff --git a/editors/nvi-devel/Makefile b/editors/nvi-devel/Makefile
index 805e89a337f9..8aa538500f38 100644
--- a/editors/nvi-devel/Makefile
+++ b/editors/nvi-devel/Makefile
@@ -30,6 +30,7 @@ MAN1= nex.1 nvi.1 nview.1
# configure is 555, so you can't do a "make configure" as non-root.
post-patch:
+ ${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/../dist/configure
@${CHMOD} 755 ${WRKSRC}/../dist/configure
post-install:
diff --git a/editors/nvi-devel/files/patch-configure b/editors/nvi-devel/files/patch-configure
index b2257f1c7f96..58f5c067b47e 100644
--- a/editors/nvi-devel/files/patch-configure
+++ b/editors/nvi-devel/files/patch-configure
@@ -5,11 +5,11 @@
# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh"
++LIBTOOL_DEPS=" %%LOCALBASE%%share/libtool/ltmain.sh"
# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-+LIBTOOL='$(SHELL) /usr/local/bin/libtool'
++LIBTOOL='$(SHELL) %%LOCALBASE%%/bin/libtool'
# Prevent multiple expansion