From 3f0791092e8cbdb8f959ad1947b4156bd8b402f6 Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Thu, 2 Jul 2009 19:07:20 +0000 Subject: Use LTMAIN and LIBTOOL instead of hardcore. --- editors/nvi-devel/Makefile | 3 ++- editors/nvi-devel/files/patch-configure | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'editors') diff --git a/editors/nvi-devel/Makefile b/editors/nvi-devel/Makefile index 8aa538500f38..5f92239a2fe7 100644 --- a/editors/nvi-devel/Makefile +++ b/editors/nvi-devel/Makefile @@ -30,7 +30,8 @@ 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 + ${REINPLACE_CMD} -e 's,%%LIBTOOL%%,${LIBTOOL},g ; \ + s,%%LTMAIN%%,${LTMAIN},g' ${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 58f5c067b47e..6e5eda529975 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=" %%LOCALBASE%%share/libtool/ltmain.sh" ++LIBTOOL_DEPS=" %%LTMAIN%%" # Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -+LIBTOOL='$(SHELL) %%LOCALBASE%%/bin/libtool' ++LIBTOOL='$(SHELL) %%LIBTOOL%%' # Prevent multiple expansion -- cgit v1.2.3