pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/wmd PKG_DESTDIR_SUPPORT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dee4a3846406
branches:  trunk
changeset: 568746:dee4a3846406
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Dec 17 19:13:39 2009 +0000

description:
PKG_DESTDIR_SUPPORT

diffstat:

 www/wmd/Makefile |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 1b341fa96553 -r dee4a3846406 www/wmd/Makefile
--- a/www/wmd/Makefile  Thu Dec 17 19:11:39 2009 +0000
+++ b/www/wmd/Makefile  Thu Dec 17 19:13:39 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/05/04 22:48:26 schmonz Exp $
+# $NetBSD: Makefile,v 1.2 2009/12/17 19:13:39 abs Exp $
 #
 
 DISTNAME=              wmd-1.0.1
@@ -15,17 +15,18 @@
 NO_BUILD=              yes
 
 INSTALLATION_DIRS=     share/doc/wmd share/wmd/images
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 do-install:
        cd ${WRKSRC} &&                                                 \
        for f in *.txt *Example.html; do                                \
-               ${INSTALL_DATA} $${f} ${PREFIX}/share/doc/wmd;          \
+               ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/doc/wmd; \
        done;                                                           \
        for f in wmd/*.js; do                                           \
-               ${INSTALL_DATA} $${f} ${PREFIX}/share/wmd;              \
+               ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/wmd;    \
        done;                                                           \
        for f in wmd/images/*.png; do                                   \
-               ${INSTALL_DATA} $${f} ${PREFIX}/share/wmd/images;       \
+               ${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/share/wmd/images; \
        done
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index