diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 01:50:26 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 01:50:26 +0000 |
commit | 2e614fcea0b247bbc54200c2ed35e943cca37125 (patch) | |
tree | 594c159848c0679d80316a52bfc121f8d7c1bf18 /cad/mpac/Makefile | |
parent | f61cf6906a47ea29db5a98128c49cd6db98ee0e9 (diff) | |
download | pkgsrc-2e614fcea0b247bbc54200c2ed35e943cca37125.tar.gz |
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'cad/mpac/Makefile')
-rw-r--r-- | cad/mpac/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cad/mpac/Makefile b/cad/mpac/Makefile index d5653805fbe..95faa9248fd 100644 --- a/cad/mpac/Makefile +++ b/cad/mpac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2006/02/05 23:08:22 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/03 01:50:27 jlam Exp $ # DISTNAME= mpac-0.2.2 @@ -11,14 +11,16 @@ COMMENT= Microstrip Patch Antenna Calculator DEPENDS+= tk>=8.1:../../x11/tk +PKG_DESTDIR_SUPPORT= user-destdir + INSTALLATION_DIRS= bin do-build: ${SED} 's;patch.gif;${PREFIX}/share/mpac/patch.gif;g' ${WRKSRC}/mpac.tcl > ${WRKSRC}/mpac do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/mpac ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/mpac - ${INSTALL_DATA} ${WRKSRC}/patch.gif ${PREFIX}/share/mpac + ${INSTALL_SCRIPT} ${WRKSRC}/mpac ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mpac + ${INSTALL_DATA} ${WRKSRC}/patch.gif ${DESTDIR}${PREFIX}/share/mpac .include "../../mk/bsd.pkg.mk" |