summaryrefslogtreecommitdiff
path: root/textproc/wdiff
diff options
context:
space:
mode:
authorreed <reed>2005-10-08 19:06:25 +0000
committerreed <reed>2005-10-08 19:06:25 +0000
commit5b0e6a143615b8353259d3de999486fb252ee51b (patch)
tree425a6548e5f4747d0f34275eaa3db1ab6684c94a /textproc/wdiff
parent390bcc4ddec4a40909383bcec930409d9ef658d7 (diff)
downloadpkgsrc-5b0e6a143615b8353259d3de999486fb252ee51b.tar.gz
Also install man page and README.
Update PKGREVISION. Add INSTALLATION_DIRS and do-install target instead of using its own installer. It was broken for custom INFO_DIR and for new PKGMANDIR. (It is a very old autoconf/automake I assume). Also, this uses -ltermcap. So if /usr/lib/libtermcap.so does not exist, then use BUILDLINK_TRANSFORM to use ncurses instead and include ncurses buildlink3.mk.
Diffstat (limited to 'textproc/wdiff')
-rw-r--r--textproc/wdiff/Makefile18
-rw-r--r--textproc/wdiff/PLIST5
2 files changed, 21 insertions, 2 deletions
diff --git a/textproc/wdiff/Makefile b/textproc/wdiff/Makefile
index 00f8e17589e..114801fcb6b 100644
--- a/textproc/wdiff/Makefile
+++ b/textproc/wdiff/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2005/10/08 18:02:57 reed Exp $
+# $NetBSD: Makefile,v 1.11 2005/10/08 19:06:25 reed Exp $
#
DISTNAME= wdiff-0.5
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=wdiff/}
@@ -15,5 +16,20 @@ CONFIGURE_HAS_MANDIR= no
USE_MAKEINFO= yes
INFO_FILES= wdiff.info
+INSTALLATION_DIRS= bin ${INFO_DIR} ${PKGMANDIR}/man1 share/doc/wdiff
+CPPFLAGS+= -DHAVE_STRERROR
+
+# pkgsrc does not provide libtermcap, but ncurses does provide
+# libtermcap routines.
+.if !exists(/usr/lib/libtermcap.so)
+BUILDLINK_TRANSFORM+= l:termcap:ncurses
+. include "../../devel/ncurses/buildlink3.mk"
+.endif
+
+do-install:
+ ${INSTALL_MAN} ${WRKSRC}/wdiff.1 ${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_MAN} ${WRKSRC}/wdiff.info ${PREFIX}/${INFO_DIR}/
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/wdiff/
+ ${INSTALL_PROGRAM} ${WRKSRC}/wdiff ${PREFIX}/bin/
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/wdiff/PLIST b/textproc/wdiff/PLIST
index 429d3be72c4..985f29f2611 100644
--- a/textproc/wdiff/PLIST
+++ b/textproc/wdiff/PLIST
@@ -1,2 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2004/03/11 14:13:58 seb Exp $
+@comment $NetBSD: PLIST,v 1.5 2005/10/08 19:06:25 reed Exp $
bin/wdiff
+man/man1/wdiff.1
+share/doc/wdiff/README
+@dirrm share/doc/wdiff