diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
commit | 4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/mph | |
parent | 3a62565eb9471348d02d74145e302b5675905a43 (diff) | |
download | pkgsrc-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/mph')
-rw-r--r-- | devel/mph/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/devel/mph/Makefile b/devel/mph/Makefile index 823bba6f48a..c12ec65eafa 100644 --- a/devel/mph/Makefile +++ b/devel/mph/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2006/03/04 21:29:18 jlam Exp $ +# $NetBSD: Makefile,v 1.5 2008/03/03 17:45:36 jlam Exp $ # DISTNAME= mph-1.2 @@ -9,13 +9,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org #HOMEPAGE= none COMMENT= Minimal perfect hashing functionality +PKG_DESTDIR_SUPPORT= user-destdir + INSTALLATION_DIRS= bin share/doc do-install: - for i in emitc mph mphm; do \ - ${INSTALL_PROGRAM} ${WRKSRC}/$$i ${PREFIX}/bin; \ + for i in emitc mph mphm; do \ + ${INSTALL_PROGRAM} ${WRKSRC}/$$i ${DESTDIR]${PREFIX}/bin; \ done - ${INSTALL_SCRIPT} ${WRKSRC}/mphminm ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/mph.doc ${PREFIX}/share/doc + ${INSTALL_SCRIPT} ${WRKSRC}/mphminm ${DESTDIR]${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/mph.doc ${DESTDIR]${PREFIX}/share/doc .include "../../mk/bsd.pkg.mk" |