diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 17:57:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 17:57:17 +0000 |
commit | a80fd13efc426f96e55870df48a2030daea0f14b (patch) | |
tree | ea772f1017a149bdf8c86107c24d16246695614e /math/mcsim/Makefile | |
parent | 31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff) | |
download | pkgsrc-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/Makefile | 14 |
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" |