pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc PKG_DESTDIR_SUPPORT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcdae59e3760
branches:  trunk
changeset: 568753:dcdae59e3760
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Dec 17 19:45:27 2009 +0000

description:
PKG_DESTDIR_SUPPORT

diffstat:

 audio/wmsmixer/Makefile |  11 ++++++-----
 chat/centericq/Makefile |   6 ++++--
 wm/wmdrawer/Makefile    |  24 ++++++++++++------------
 3 files changed, 22 insertions(+), 19 deletions(-)

diffs (102 lines):

diff -r 98eae9276feb -r dcdae59e3760 audio/wmsmixer/Makefile
--- a/audio/wmsmixer/Makefile   Thu Dec 17 19:38:14 2009 +0000
+++ b/audio/wmsmixer/Makefile   Thu Dec 17 19:45:27 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/12/27 13:37:35 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2009/12/17 19:45:27 abs Exp $
 #
 
 DISTNAME=      wmsmixer-0.5.1
@@ -16,16 +16,17 @@
 USE_LANGUAGES= c++
 NO_INSTALL_MANPAGES= YES
 
+INSTALLATION_DIRS+= share/doc/wmsmixer share/examples/wmsmixer
+PKG_DESTDIR_SUPPORT= user-destdir
+
 pre-build:
        ${TOUCH} ${WRKSRC}/wmsmixer.man
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wmsmixer
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wmsmixer
        ${INSTALL_DATA} ${WRKSRC}/home.wmsmixer \
-               ${PREFIX}/share/examples/wmsmixer
+               ${DESTDIR}${PREFIX}/share/examples/wmsmixer
        ${INSTALL_DATA} ${WRKSRC}/README.wmmixer \
-               ${PREFIX}/share/doc/wmsmixer/README.wmsmixer
+               ${DESTDIR}${PREFIX}/share/doc/wmsmixer/README.wmsmixer
 
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libXpm/buildlink3.mk"
diff -r 98eae9276feb -r dcdae59e3760 chat/centericq/Makefile
--- a/chat/centericq/Makefile   Thu Dec 17 19:38:14 2009 +0000
+++ b/chat/centericq/Makefile   Thu Dec 17 19:45:27 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2009/09/14 22:18:56 zafer Exp $
+# $NetBSD: Makefile,v 1.72 2009/12/17 19:55:00 abs Exp $
 #
 
 DISTNAME=      centericq-4.21.0
@@ -28,6 +28,8 @@
 INCOMPAT_CURSES+=      NetBSD-2.*-* NetBSD-3.*-*       # see PR 29060
 INCOMPAT_CURSES+=      NetBSD-4.*-*
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 .include "options.mk"
 .include "../../mk/bsd.prefs.mk"
 
@@ -59,7 +61,7 @@
 .endif
 
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/centericq.1 ${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_MAN} ${WRKSRC}/centericq.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
 
 .include "../../mk/bsd.pkg.mk"
 
diff -r 98eae9276feb -r dcdae59e3760 wm/wmdrawer/Makefile
--- a/wm/wmdrawer/Makefile      Thu Dec 17 19:38:14 2009 +0000
+++ b/wm/wmdrawer/Makefile      Thu Dec 17 19:45:27 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/08/26 19:58:25 sno Exp $
+# $NetBSD: Makefile,v 1.13 2009/12/17 19:50:27 abs Exp $
 #
 
 DISTNAME=              wmdrawer-0.10.5
@@ -11,23 +11,23 @@
 COMMENT=               Drawer (retractable button bar) to launch applications
 
 USE_TOOLS+=            gmake gunzip
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    share/doc/wmdrawer share/examples/wmdrawer
+PKG_DESTDIR_SUPPORT=   user-destdir
 DIST_SUBDIR=           ${PKGNAME_NOREV}
 
 post-build:
        gunzip ${WRKSRC}/doc/wmdrawer.1x.gz
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/wmdrawer ${PREFIX}/bin
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wmdrawer
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/wmdrawer
-       ${INSTALL_MAN} ${WRKSRC}/doc/wmdrawer.1x ${PREFIX}/${PKGMANDIR}/man1/wmdrawer.1
-       ${INSTALL_DATA} ${WRKSRC}/wmdrawerrc.example ${PREFIX}/share/examples/wmdrawer
-       ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/wmdrawer
-       ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/wmdrawer
-       ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/wmdrawer
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/wmdrawer
-       ${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/wmdrawer
+       ${INSTALL_PROGRAM} ${WRKSRC}/wmdrawer ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/doc/wmdrawer.1x ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/wmdrawer.1
+       ${INSTALL_DATA} ${WRKSRC}/wmdrawerrc.example ${DESTDIR}${PREFIX}/share/examples/wmdrawer
+       ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/wmdrawer
+       ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DESTDIR}${PREFIX}/share/doc/wmdrawer
+       ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/wmdrawer
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/wmdrawer
+       ${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/wmdrawer
 
 BUILDLINK_DEPMETHOD.libXt?=    build
 



Home | Main Index | Thread Index | Old Index