summaryrefslogtreecommitdiff
path: root/math/mcsim/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /math/mcsim/Makefile
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'math/mcsim/Makefile')
-rw-r--r--math/mcsim/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/math/mcsim/Makefile b/math/mcsim/Makefile
index a5d5f0395e3..0d0f1fceef1 100644
--- a/math/mcsim/Makefile
+++ b/math/mcsim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/04/05 23:01:15 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2008/03/04 18:12:59 jlam Exp $
DISTNAME= mcsim-4.2.0
CATEGORIES= math
@@ -7,6 +7,8 @@ MASTER_SITES= ${MASTER_SITE_GNU:=mcsim/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Monte Carlo Simulation software
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= makeinfo
INFO_FILES= # PLIST
WRKSRC= ${WRKDIR}/mcsim
@@ -17,15 +19,15 @@ post-build:
cd ${WRKSRC}/doc && makeinfo mcsim.texinfo
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mod/mod ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/sim/mcsim ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mod/mod ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/sim/mcsim ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${WRKSRC}/doc/MCSim* \
- ${WRKSRC}/doc/mcsim.dvi ${PREFIX}/share/doc/mcsim/
+ ${WRKSRC}/doc/mcsim.dvi ${DESTDIR}${PREFIX}/share/doc/mcsim/
${INSTALL_DATA} ${WRKSRC}/doc/mcsim.html \
- ${PREFIX}/share/doc/html/mcsim
+ ${DESTDIR}${PREFIX}/share/doc/html/mcsim
cd ${WRKSRC}/doc; for f in mcsim mcsim-[0-9]*; do \
${TEST} ! -f "$$f" || \
- ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
done
.include "../../mk/bsd.pkg.mk"