summaryrefslogtreecommitdiff
path: root/math/aribas
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/aribas
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/aribas')
-rw-r--r--math/aribas/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/math/aribas/Makefile b/math/aribas/Makefile
index f4a7504a3ba..919977fd3db 100644
--- a/math/aribas/Makefile
+++ b/math/aribas/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/02/20 19:04:14 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2008/03/04 18:12:58 jlam Exp $
DISTNAME= aribas-1.53
PKGREVISION= 1
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mathematik.uni-muenchen.de/~forster/sw/aribas.html
COMMENT= Multi-precision floating point and big integer arithmetic calculator
+PKG_DESTDIR_SUPPORT= user-destdir
+
CPPFLAGS+= -DUNiX -DPROTO
BUILD_DIRS= src
@@ -16,13 +18,17 @@ BUILD_DIRS= src
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/aribas ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/doc/aribas.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/aribas
- ${INSTALL_DATA} ${WRKSRC}/doc/aribas.[dmt]* ${PREFIX}/share/doc/aribas/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/aribas
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/aribas/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
- ${INSTALL_DATA} ${WRKSRC}/src/EL/aribas.el ${PREFIX}/share/emacs/site-lisp
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/aribas ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/aribas.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/aribas
+ ${INSTALL_DATA} ${WRKSRC}/doc/aribas.[dmt]* \
+ ${DESTDIR}${PREFIX}/share/doc/aribas/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/aribas
+ ${INSTALL_DATA} ${WRKSRC}/examples/* \
+ ${DESTDIR}${PREFIX}/share/examples/aribas/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/emacs/site-lisp
+ ${INSTALL_DATA} ${WRKSRC}/src/EL/aribas.el \
+ ${DESTDIR}${PREFIX}/share/emacs/site-lisp
.include "../../mk/bsd.pkg.mk"