summaryrefslogtreecommitdiff
path: root/misc/granulate
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 19:21:10 +0000
committerjlam <jlam>2008-03-04 19:21:10 +0000
commit476429c9f7b93362ea027fafcaa1bb835868c0d1 (patch)
tree49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/granulate
parentdf44780831cf4dadccea821bb560fbdd11bda60b (diff)
downloadpkgsrc-476429c9f7b93362ea027fafcaa1bb835868c0d1.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/granulate')
-rw-r--r--misc/granulate/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/misc/granulate/Makefile b/misc/granulate/Makefile
index 39e6323bf78..1ef6a029d40 100644
--- a/misc/granulate/Makefile
+++ b/misc/granulate/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/06/17 03:50:21 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2008/03/04 19:21:11 jlam Exp $
#
DISTNAME= granulate-0.1
@@ -8,11 +8,13 @@ MASTER_SITES= ftp://134.74.16.12/pub/
MAINTAINER= zuntum@NetBSD.org
COMMENT= Program for splitting files in place
+PKG_DESTDIR_SUPPORT= user-destdir
+
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/granulate ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/granulate
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/granulate
+ ${INSTALL_PROGRAM} ${WRKSRC}/granulate ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/granulate
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/granulate
.include "../../mk/bsd.pkg.mk"