diff options
author | johans <johans@FreeBSD.org> | 2014-02-10 00:36:35 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2014-02-10 00:36:35 +0800 |
commit | 767bd038aace3f019a018fd02469159c3d703b15 (patch) | |
tree | 1e0113f9183f9a867b7320f4d169b013921cec2b /editors | |
parent | 4cff1ddc15eb4ae03585ab5c2c1a7d9becef5d56 (diff) | |
download | freebsd-ports-graphics-767bd038aace3f019a018fd02469159c3d703b15.tar.gz freebsd-ports-graphics-767bd038aace3f019a018fd02469159c3d703b15.tar.zst freebsd-ports-graphics-767bd038aace3f019a018fd02469159c3d703b15.zip |
- Convert USE_AUTOTOOLS=libtool to USES=libtool.
- Fix build on FreeBSD 10 where libiconv isn't used.
- Remove post-install. Not needed with staging.
PR: ports/186592
Submitted by: tijl
Diffstat (limited to 'editors')
-rw-r--r-- | editors/nvi-devel/Makefile | 19 | ||||
-rw-r--r-- | editors/nvi-devel/files/patch-configure | 29 | ||||
-rw-r--r-- | editors/nvi-devel/pkg-plist | 1 |
3 files changed, 12 insertions, 37 deletions
diff --git a/editors/nvi-devel/Makefile b/editors/nvi-devel/Makefile index a00a2c93799..4faaa7f3e28 100644 --- a/editors/nvi-devel/Makefile +++ b/editors/nvi-devel/Makefile @@ -3,7 +3,7 @@ PORTNAME= nvi PORTVERSION= 1.81.6 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= editors MASTER_SITES= http://garage.linux.student.kuleuven.be/~skimo/nvi/devel/ \ http://www.kotnet.org/~skimo/nvi/devel/ @@ -19,9 +19,9 @@ WIDECHAR_DESC= Enable wide-character support (UTF-8) USE_BZIP2= yes WRKSRC= ${WRKDIR}/${DISTNAME}/build.unix -USE_AUTOTOOLS= libtool +GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= iconv pkgconfig +USES= iconv libtool pkgconfig USE_BDB= 42+ CONFIGURE_ARGS+= --with-db-prefix=${LOCALBASE} \ --program-prefix=n @@ -38,15 +38,10 @@ LDFLAGS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib # configure is 555, so you can't do a "make configure" as non-root. post-patch: - ${REINPLACE_CMD} -e 's,%%LIBTOOL%%,${LIBTOOL},g ; \ - s,%%LTMAIN%%,${LTMAIN},g ; \ - s,-ldb,-l${BDB_LIB_NAME},g' ${WRKSRC}/../dist/configure + @${REINPLACE_CMD} -e '/libvi_la_LIBADD =/s,$$, ${ICONV_LIB},' \ + ${WRKSRC}/../dist/Makefile.in + @${REINPLACE_CMD} -e 's,-ldb,-l${BDB_LIB_NAME},g' \ + ${WRKSRC}/../dist/configure @${CHMOD} 755 ${WRKSRC}/../dist/configure -post-install: -.for __p in nex nvi nview -# XXX: Hack the Makefile in the distribution so this isn't necessary. - ${RM} ${STAGEDIR}${PREFIX}/man/cat1/${__p}.0 -.endfor - .include <bsd.port.mk> diff --git a/editors/nvi-devel/files/patch-configure b/editors/nvi-devel/files/patch-configure index ad4cbbca685..ef773dd86eb 100644 --- a/editors/nvi-devel/files/patch-configure +++ b/editors/nvi-devel/files/patch-configure @@ -1,27 +1,6 @@ --- ../dist/configure.orig 2007-11-18 08:43:54.000000000 -0800 +++ ../dist/configure 2008-06-15 11:35:32.000000000 -0700 -@@ -19433,10 +19433,10 @@ fi - - - # This can be used to rebuild libtool when needed --LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+LIBTOOL_DEPS=" %%LTMAIN%%" - - # Always use our own libtool. --LIBTOOL='$(SHELL) $(top_builddir)/libtool' -+LIBTOOL='$(SHELL) %%LIBTOOL%%' - - # Prevent multiple expansion - -@@ -22335,6 +22335,7 @@ - #define USE_ICONV 1 - _ACEOF - -+LIBS="${LIBS} -liconv" - - for ac_func in iswblank - do -@@ -27631,6 +27632,8 @@ +@@ -27631,6 +27631,8 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ @@ -30,7 +9,7 @@ main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);} _ACEOF rm -f conftest$ac_exeext -@@ -28624,7 +28627,7 @@ +@@ -28624,7 +28626,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdio.h> @@ -39,10 +18,10 @@ int main () -@@ -28755,5 +28758,6 @@ +@@ -28755,5 +28757,6 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -+#include <sys/stddef.h> ++#include <stddef.h> #include <db.h> int main () diff --git a/editors/nvi-devel/pkg-plist b/editors/nvi-devel/pkg-plist index 2a2f92c1207..4560986d58c 100644 --- a/editors/nvi-devel/pkg-plist +++ b/editors/nvi-devel/pkg-plist @@ -5,6 +5,7 @@ lib/libvi.a lib/libvi.la lib/libvi.so lib/libvi.so.0 +lib/libvi.so.0.0.0 man/man1/nex.1.gz man/man1/nvi.1.gz man/man1/nview.1.gz |