summaryrefslogtreecommitdiff
path: root/math/otter
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/otter
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/otter')
-rw-r--r--math/otter/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/math/otter/Makefile b/math/otter/Makefile
index 88bcf520ffb..239fb9c2bdf 100644
--- a/math/otter/Makefile
+++ b/math/otter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/10/04 21:47:58 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/04 18:12:59 jlam Exp $
DISTNAME= otter-3.0.6
CATEGORIES= math
@@ -8,27 +8,29 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www-unix.mcs.anl.gov/AR/otter/
COMMENT= Automated Deduction System
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILD_TARGET= otter
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}/source
INSTALLATION_DIRS= bin
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/otter ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/otter
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/otter
+ ${INSTALL_PROGRAM} ${WRKSRC}/otter ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/otter
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/otter
cd ${WRKDIR}/${PKGNAME_NOREV} && ${INSTALL_DATA} Announce Changelog \
- Copying README* ${PREFIX}/share/doc/otter
+ Copying README* ${DESTDIR}${PREFIX}/share/doc/otter
for d in auto fringe ivy kalman misc program split wos; do \
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/otter/$$d; \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/otter/$$d;\
${INSTALL_DATA} ${WRKDIR}/${PKGNAME_NOREV}/examples/$$d/* \
- ${PREFIX}/share/examples/otter/$$d; \
+ ${DESTDIR}${PREFIX}/share/examples/otter/$$d; \
done
cd ${WRKDIR}/${PKGNAME_NOREV}/examples && ${INSTALL_SCRIPT} Run_all \
- objects summary ${PREFIX}/share/examples/otter
+ objects summary ${DESTDIR}${PREFIX}/share/examples/otter
${INSTALL_DATA} ${WRKDIR}/${PKGNAME_NOREV}/examples/README \
- ${PREFIX}/share/examples/otter
+ ${DESTDIR}${PREFIX}/share/examples/otter
${INSTALL_DATA} ${WRKDIR}/${PKGNAME_NOREV}/document/* \
- ${PREFIX}/share/doc/otter
+ ${DESTDIR}${PREFIX}/share/doc/otter
.include "../../mk/bsd.pkg.mk"