summaryrefslogtreecommitdiff
path: root/cad/spiceprm
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 01:50:26 +0000
committerjlam <jlam>2008-03-03 01:50:26 +0000
commit02dbeceea629a34bb7b2c5f0842539bed5e4e882 (patch)
tree594c159848c0679d80316a52bfc121f8d7c1bf18 /cad/spiceprm
parentd41792ee5188c43750d96a79f59b13facf21daab (diff)
downloadpkgsrc-02dbeceea629a34bb7b2c5f0842539bed5e4e882.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/spiceprm')
-rw-r--r--cad/spiceprm/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/cad/spiceprm/Makefile b/cad/spiceprm/Makefile
index bcb5840f17a..bd674cd689b 100644
--- a/cad/spiceprm/Makefile
+++ b/cad/spiceprm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/03/04 21:29:02 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2008/03/03 01:50:27 jlam Exp $
#
DISTNAME= spiceprm-0.11
@@ -8,6 +8,8 @@ MASTER_SITES= http://metalab.unc.edu/pub/Linux/apps/circuits/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Spice preprocessor for parameterized subcircuits
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/spiceprm
NO_BUILD= YES
USE_TOOLS+= perl:run
@@ -15,10 +17,10 @@ REPLACE_PERL= spiceprm
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/spiceprm ${PREFIX}/bin/spiceprm
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spiceprm
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/spiceprm
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/spiceprm
- ${INSTALL_DATA} ${WRKSRC}/EXAMPLES ${PREFIX}/share/examples/spiceprm
+ ${INSTALL_SCRIPT} ${WRKSRC}/spiceprm ${DESTDIR}${PREFIX}/bin/spiceprm
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/spiceprm
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/spiceprm
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/spiceprm
+ ${INSTALL_DATA} ${WRKSRC}/EXAMPLES ${DESTDIR}${PREFIX}/share/examples/spiceprm
.include "../../mk/bsd.pkg.mk"