summaryrefslogtreecommitdiff
path: root/devel/SDL-intro-en
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/SDL-intro-en
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/SDL-intro-en')
-rw-r--r--devel/SDL-intro-en/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/SDL-intro-en/Makefile b/devel/SDL-intro-en/Makefile
index 23aa15a9ab8..a9721c0b7e0 100644
--- a/devel/SDL-intro-en/Makefile
+++ b/devel/SDL-intro-en/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2006/07/21 19:47:32 minskim Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/03 17:45:33 jlam Exp $
#
DISTNAME= SDL-1.0-english-intro
@@ -11,6 +11,8 @@ MAINTAINER= ianzag@mail.ru
HOMEPAGE= http://www.libsdl.org/docs.php
COMMENT= Simple DirectMedia Layer introduction (English)
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/intro.en
DEST= ${PREFIX}/share/doc/SDL-intro.en
@@ -22,8 +24,8 @@ post-patch:
${RM} ${WRKSRC}/index.html
do-install:
- ${INSTALL_DATA_DIR} ${DEST}
- ${INSTALL_DATA} ${WRKSRC}/*.html ${DEST}
- ${LN} -s ${DEST}/toc.html ${DEST}/index.html
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DEST}
+ ${INSTALL_DATA} ${WRKSRC}/*.html ${DESTDIR}${DEST}
+ ${LN} -s toc.html ${DESTDIR}${DEST}/index.html
.include "../../mk/bsd.pkg.mk"