summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-05 15:56:19 +0000
committerjlam <jlam>2008-03-05 15:56:19 +0000
commit81003d8d4cb3cb4ad637ec04e364d983d0f3d2dd (patch)
tree8549b8261aefff5fe1dc3199027845e09758f1d5
parent30cd24aa44fa5ad489352eff506aeaa42e139790 (diff)
downloadpkgsrc-81003d8d4cb3cb4ad637ec04e364d983d0f3d2dd.tar.gz
+ Include termcap.buildlink3.mk instead of using a custom (wrong) termcap
detection method in the package Makefile. Bump the PKGREVISION to 3. + Add full DESTDIR support.
-rw-r--r--textproc/wdiff/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/textproc/wdiff/Makefile b/textproc/wdiff/Makefile
index 6d185c76dad..87c06fcb643 100644
--- a/textproc/wdiff/Makefile
+++ b/textproc/wdiff/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2007/12/23 04:50:30 minskim Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/05 15:56:19 jlam Exp $
#
DISTNAME= wdiff-0.5
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=wdiff/}
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/wdiff/wdiff.html
COMMENT= Word-by-word diff
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
CONFIGURE_HAS_INFODIR= no
CONFIGURE_HAS_MANDIR= no
@@ -18,20 +20,15 @@ USE_TOOLS+= makeinfo
INFO_FILES= # PLIST
INSTALLATION_DIRS= bin ${PKGINFODIR} ${PKGMANDIR}/man1 share/doc/wdiff
-# 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.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
cd ${WRKSRC}; for f in wdiff.info wdiff.info-[0-9]*; do \
${TEST} ! -f "$$f" || \
- ${INSTALL_MAN} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ ${INSTALL_MAN} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \
done
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/wdiff
- ${INSTALL_PROGRAM} ${WRKSRC}/wdiff ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/wdiff
+ ${INSTALL_PROGRAM} ${WRKSRC}/wdiff ${DESTDIR}${PREFIX}/bin
+.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"