summaryrefslogtreecommitdiff
path: root/devel/nsis/Makefile
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/nsis/Makefile
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/nsis/Makefile')
-rw-r--r--devel/nsis/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/devel/nsis/Makefile b/devel/nsis/Makefile
index b460cc297e0..f962fd857ca 100644
--- a/devel/nsis/Makefile
+++ b/devel/nsis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/01/02 14:22:40 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/03 17:45:36 jlam Exp $
#
DISTNAME= nsis-${NSIS_VER}
@@ -15,6 +15,8 @@ COMMENT= Scriptable system to build Windows installers
DEPENDS+= scons>=0.96.91:../../devel/scons-devel
+PKG_DESTDIR_SUPPORT= user-destdir
+
NSIS_SRC= ${DISTNAME:=-src}
NSIS_VER= 2.12
WRKSRC= ${WRKDIR}/${NSIS_SRC}
@@ -44,8 +46,10 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC:Q}/build/release/makensis/makensis \
- ${MAKENSIS_BIN:Q}
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/makensis.sh ${PREFIX:Q}/bin/makensis
- cd ${WRKDIR:Q}/${DISTNAME:Q} && ${PAX} -rw . ${PREFIX:Q}/share/nsis
+ ${DESTDIR}${MAKENSIS_BIN:Q}
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/makensis.sh \
+ ${DESTDIR}${PREFIX:Q}/bin/makensis
+ cd ${WRKDIR:Q}/${DISTNAME:Q} && ${PAX} -rw . \
+ ${DESTDIR}${PREFIX:Q}/share/nsis
.include "../../mk/bsd.pkg.mk"