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/mapm | |
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/mapm')
-rw-r--r-- | math/mapm/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/math/mapm/Makefile b/math/mapm/Makefile index 154486189ee..da718525f40 100644 --- a/math/mapm/Makefile +++ b/math/mapm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2006/06/02 13:42:52 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2008/03/04 18:12:59 jlam Exp $ # DISTNAME= mapm-4.9.2 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.tc.umn.edu/~ringx004/ COMMENT= Arbitrary Precision Math library +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/mapm_4.9.2 DOCS= README algorithms.used function.ref @@ -18,11 +20,11 @@ USE_LANGUAGES= c c++ INSTALLATION_DIRS= bin include lib share/doc/mapm do-install: - ${INSTALL_DATA} ${WRKSRC}/m_apm.h ${PREFIX}/include - ${INSTALL_DATA} ${WRKSRC}/libmapm.a ${PREFIX}/lib - ${INSTALL_PROGRAM} ${WRKSRC}/calc ${PREFIX}/bin/mapm-calc + ${INSTALL_DATA} ${WRKSRC}/m_apm.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libmapm.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_PROGRAM} ${WRKSRC}/calc ${DESTDIR}${PREFIX}/bin/mapm-calc cd ${WRKSRC}; for f in ${DOCS}; do \ - ${INSTALL_DATA} $$f ${PREFIX}/share/doc/mapm; \ + ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/doc/mapm; \ done .include "../../mk/bsd.pkg.mk" |