summaryrefslogtreecommitdiff
path: root/math/ess
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
commit411a468ce44836ba0dce72243b549d700f29037a (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /math/ess
parenta8d05d72830e3030fc1f7f00f4b39671102c05e6 (diff)
downloadpkgsrc-411a468ce44836ba0dce72243b549d700f29037a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'math/ess')
-rw-r--r--math/ess/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/math/ess/Makefile b/math/ess/Makefile
index 739f02dcca2..51f94a08bc2 100644
--- a/math/ess/Makefile
+++ b/math/ess/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2007/10/09 12:24:04 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/04 18:12:59 jlam Exp $
DISTNAME= ess-5.3.4
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
@@ -11,6 +11,8 @@ MAINTAINER= markd@NetBSD.org
HOMEPAGE= http://ess.r-project.org/
COMMENT= Emacs Speaks Statistics
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= makeinfo perl
EMACS_MODULES= base
INFO_FILES= # PLIST
@@ -30,14 +32,18 @@ post-extract:
cd ${WRKSRC} && chmod u+w doc/*/
do-install:
- cd ${WRKSRC}/lisp && ${INSTALL_DATA} *.el* ${EMACS_LISPPREFIX}/ess
+ cd ${WRKSRC}/lisp && ${INSTALL_DATA} *.el* \
+ ${DESTDIR}${EMACS_LISPPREFIX}/ess
cd ${WRKSRC}/doc/info; for f in ess.info ess.info-[0-9]*; do \
${TEST} ! -f "$$f" || \
- ${INSTALL_DATA} "$$f" ${EMACS_INFOPREFIX}; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${EMACS_INFOPREFIX}; \
done
- cd ${WRKSRC}/etc && ${INSTALL_DATA} icons/*.xpm ${EMACS_ETCPREFIX}/ess/icons
- cd ${WRKSRC}/etc && ${INSTALL_DATA} *.S ${EMACS_ETCPREFIX}/ess
- cd ${WRKSRC}/etc && ${INSTALL_SCRIPT} ess-sas-sh-command ${EMACS_ETCPREFIX}/ess
+ cd ${WRKSRC}/etc && ${INSTALL_DATA} icons/*.xpm \
+ ${DESTDIR}${EMACS_ETCPREFIX}/ess/icons
+ cd ${WRKSRC}/etc && ${INSTALL_DATA} *.S \
+ ${DESTDIR}${EMACS_ETCPREFIX}/ess
+ cd ${WRKSRC}/etc && ${INSTALL_SCRIPT} ess-sas-sh-command \
+ ${DESTDIR}${EMACS_ETCPREFIX}/ess
.include "../../mk/emacs.mk"
.include "../../mk/bsd.pkg.mk"