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/mcalc | |
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/mcalc')
-rw-r--r-- | cad/mcalc/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cad/mcalc/Makefile b/cad/mcalc/Makefile index 655de902b85..2fb7304aa02 100644 --- a/cad/mcalc/Makefile +++ b/cad/mcalc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2005/12/05 20:49:52 rillig Exp $ +# $NetBSD: Makefile,v 1.7 2008/03/03 01:50:27 jlam Exp $ # DISTNAME= mcalc-1.5 @@ -10,6 +10,7 @@ HOMEPAGE= http://mcalc.sourceforge.net/ COMMENT= JavaScript based microstrip analysis/synthesis calculator PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir NO_BUILD= yes @@ -19,7 +20,7 @@ PLIST_SUBST+= MCALCBASE=${MCALCBASE:Q} MESSAGE_SUBST+= MCALCBASE=${MCALCBASE} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${MCALCBASE} - ${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/${MCALCBASE}/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${MCALCBASE} + ${INSTALL_DATA} ${WRKSRC}/* ${DESTDIR}${PREFIX}/${MCALCBASE}/ .include "../../mk/bsd.pkg.mk" |