diff options
Diffstat (limited to 'math/mapm/Makefile')
-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" |