summaryrefslogtreecommitdiff
path: root/lang/sr-examples
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
commit8216d744ac7ee52a87a0c54540fc68d487f4ad1f (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/sr-examples
parent642995a0c4f1913cc6893865f1f5905084199dc1 (diff)
downloadpkgsrc-8216d744ac7ee52a87a0c54540fc68d487f4ad1f.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/sr-examples')
-rw-r--r--lang/sr-examples/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/sr-examples/Makefile b/lang/sr-examples/Makefile
index 958f404f6f1..1c34b919abb 100644
--- a/lang/sr-examples/Makefile
+++ b/lang/sr-examples/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/02/17 18:40:33 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/04 16:38:13 jlam Exp $
#
DISTNAME= vs233
@@ -12,6 +12,8 @@ MAINTAINER= is@NetBSD.org
HOMEPAGE= http://www.cs.arizona.edu/sr/
COMMENT= The SR language compiler and run time system
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}
NO_EXTRACT= yes
NO_CONFIGURE= yes
@@ -22,9 +24,9 @@ DOMOD=
#DOMOD=-pm
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/sr
- cd ${PREFIX:Q}/share/examples/sr && \
- ${PAX} -zr ${DOMOD} -f ${DISTDIR:Q}/${DISTFILES:Q} \
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/share/examples/sr
+ cd ${DESTDIR}${PREFIX:Q}/share/examples/sr && \
+ ${PAX} -zr ${DOMOD} -f ${DISTDIR:Q}/${DISTFILES:Q} \
-s ,vsuite/examples,., \
vsuite/examples