summaryrefslogtreecommitdiff
path: root/devel/cvsgraph
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
commit4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/cvsgraph
parent3a62565eb9471348d02d74145e302b5675905a43 (diff)
downloadpkgsrc-4c8382aec039aefeebaf1aaac5cd7985337ed917.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/cvsgraph')
-rw-r--r--devel/cvsgraph/Makefile26
1 files changed, 15 insertions, 11 deletions
diff --git a/devel/cvsgraph/Makefile b/devel/cvsgraph/Makefile
index b744e113cad..602dc780404 100644
--- a/devel/cvsgraph/Makefile
+++ b/devel/cvsgraph/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2007/04/09 09:34:57 adrianp Exp $
+# $NetBSD: Makefile,v 1.31 2008/03/03 17:45:34 jlam Exp $
#
DISTNAME= cvsgraph-1.6.1
@@ -9,6 +9,8 @@ MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.akhphd.au.dk/~bertho/cvsgraph/
COMMENT= Graphically represents CVS/RCS branches and file revisions
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= bison lex
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
@@ -29,16 +31,18 @@ SUBST_MESSAGE.man= Fixing man page paths.
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cvsgraph ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/cvsgraph.1 ${PREFIX}/${PKGMANDIR}/man1/
- ${INSTALL_MAN} ${WRKSRC}/cvsgraph.conf.5 ${PREFIX}/${PKGMANDIR}/man5
-
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCDIR}
-
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf ${EGDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/cvsgraph ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/cvsgraph.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_MAN} ${WRKSRC}/cvsgraph.conf.5 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
+
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf ${DESTDIR}${EGDIR}
.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"