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/gp-fplsa | |
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/gp-fplsa')
-rw-r--r-- | math/gp-fplsa/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/math/gp-fplsa/Makefile b/math/gp-fplsa/Makefile index 5c0dedf7bdd..a8a961d9cb8 100644 --- a/math/gp-fplsa/Makefile +++ b/math/gp-fplsa/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/02/05 23:10:02 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 18:12:59 jlam Exp $ # DISTNAME= fplsa @@ -13,6 +13,8 @@ MAINTAINER= cjep@NetBSD.org HOMEPAGE= http://www.gap-system.org/Share/fplsa.html COMMENT= GAP interface to FPLSA +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/fplsa GAP_PKG_NAME= fplsa BUILD_TARGET= default @@ -21,9 +23,10 @@ do-configure: cd ${WRKSRC} && ${SH} configure ${GAP_DIRECTORY} do-install: - ${INSTALL_PROGRAM_DIR} ${GAP_PKG_DIRECTORY} + ${INSTALL_PROGRAM_DIR} ${DESTDIR}${GAP_PKG_DIRECTORY} @for I in README.fplsa bin doc gap init.g lib; do \ - cd ${WRKSRC} && ${PAX} -rw $$I ${GAP_PKG_DIRECTORY}; done + cd ${WRKSRC} && ${PAX} -rw $$I ${DESTDIR}${GAP_PKG_DIRECTORY};\ + done .include "../../math/gap/gap.package.mk" .include "../../mk/bsd.pkg.mk" |