summaryrefslogtreecommitdiff
path: root/math/xgap
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/xgap
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/xgap')
-rw-r--r--math/xgap/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/math/xgap/Makefile b/math/xgap/Makefile
index f361a417860..630af0d431c 100644
--- a/math/xgap/Makefile
+++ b/math/xgap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/02/22 19:26:47 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2008/03/04 18:12:59 jlam Exp $
#
DISTNAME= xgap4r16
@@ -12,6 +12,8 @@ MAINTAINER= cjep@NetBSD.org
HOMEPAGE= http://www.gap-system.org/Share/xgap.html
COMMENT= GUI for GAP
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${GAP_PKG_NAME}
GNU_CONFIGURE= YES
BUILD_TARGET= default
@@ -26,15 +28,17 @@ pre-configure:
(cd ${WRKDIR} && ${LN} -s ${GAP_DIRECTORY}/cnf cnf)
do-install:
- ${INSTALL_PROGRAM_DIR} ${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
+ ${INSTALL_PROGRAM_DIR} \
+ ${DESTDIR}${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${GAP_PLATFORM}/xgap \
- ${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
+ ${DESTDIR}${GAP_PKG_DIRECTORY}/bin/${GAP_PLATFORM}
${INSTALL_SCRIPT} ${WRKSRC}/bin/xgap.sh \
- ${PREFIX}/bin/xgap
- ${INSTALL_DATA} ${WRKSRC}/init.g ${GAP_PKG_DIRECTORY}
+ ${DESTDIR}${PREFIX}/bin/xgap
+ ${INSTALL_DATA} ${WRKSRC}/init.g ${DESTDIR}${GAP_PKG_DIRECTORY}
for I in doc examples htm 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 "../../x11/libXaw/buildlink3.mk"