summaryrefslogtreecommitdiff
path: root/math/statist
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/statist
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/statist')
-rw-r--r--math/statist/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/math/statist/Makefile b/math/statist/Makefile
index d0d03a59d03..a90e92d5996 100644
--- a/math/statist/Makefile
+++ b/math/statist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2006/03/04 21:30:08 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2008/03/04 18:12:59 jlam Exp $
#
DISTNAME= statist-1.0.1
@@ -12,6 +12,8 @@ COMMENT= Small and portable statistics program
DEPENDS+= gnuplot-[0-9]*:../../graphics/gnuplot
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_LIBTOOL= YES
@@ -20,10 +22,11 @@ INSTALLATION_DIRS= bin lib
do-install:
cd ${WRKSRC} && \
${LIBTOOL} --mode=install \
- ${INSTALL_DATA} libstatist.la ${PREFIX}/lib && \
+ ${INSTALL_DATA} libstatist.la ${DESTDIR}${PREFIX}/lib &&\
${LIBTOOL} --mode=install \
- ${INSTALL_PROGRAM} statist ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/statist
- ${INSTALL_DATA} ${WRKSRC}/../doc/*.ps ${PREFIX}/share/doc/statist
+ ${INSTALL_PROGRAM} statist ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/statist
+ ${INSTALL_DATA} ${WRKSRC}/../doc/*.ps \
+ ${DESTDIR}${PREFIX}/share/doc/statist
.include "../../mk/bsd.pkg.mk"