pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ec8af0dec38
branches:  trunk
changeset: 395514:1ec8af0dec38
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jul 08 14:12:30 2009 +0000

description:
user-destdir support

diffstat:

 audio/xmradio/Makefile     |   9 ++++++---
 benchmarks/dbench/Makefile |  10 +++++++---
 2 files changed, 13 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r 005faf9114f0 -r 1ec8af0dec38 audio/xmradio/Makefile
--- a/audio/xmradio/Makefile    Wed Jul 08 14:10:39 2009 +0000
+++ b/audio/xmradio/Makefile    Wed Jul 08 14:12:30 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2006/12/15 20:32:53 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2009/07/08 14:15:07 joerg Exp $
 
 DISTNAME=      xmradio-1.2
 PKGREVISION=   3
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://core.de/~coto/xmradio.html
 COMMENT=       Radio application for Brooktree 848 compatible TV cards
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      sox>=12.16:../../audio/sox
 
 ONLY_FOR_PLATFORM=     NetBSD-1.4[Y-Z]-* NetBSD-1.4Z[A-Z]-i386 \
@@ -17,9 +19,10 @@
 
 USE_IMAKE=     YES
 
+INSTALLATION_DIRS=     share/doc/xmradio
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmradio
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xmradio
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xmradio
 
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../mk/motif.buildlink3.mk"
diff -r 005faf9114f0 -r 1ec8af0dec38 benchmarks/dbench/Makefile
--- a/benchmarks/dbench/Makefile        Wed Jul 08 14:10:39 2009 +0000
+++ b/benchmarks/dbench/Makefile        Wed Jul 08 14:12:30 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/05/01 13:17:55 obache Exp $
+# $NetBSD: Makefile,v 1.13 2009/07/08 14:12:30 joerg Exp $
 
 DISTNAME=      dbench-3.04
 CATEGORIES=    benchmarks
@@ -9,6 +9,7 @@
 COMMENT=       Simulation of the Ziff-Davis netbench benchmark
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE=         yes
 
@@ -18,7 +19,9 @@
 MAKE_ENV+=     DB_LDFLAGS="-lrt" TB_LDFLAGS="-lsocket -lnsl"
 .endif
 
-INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX} \
+                       datadir=${DESTDIR}${PREFIX}/share/dbench \
+                       mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/dbench
 
 SUBST_CLASSES+=                path
@@ -26,8 +29,9 @@
 SUBST_FILES.path=      dbench.1
 SUBST_SED.path=                -e 's|/usr/share/|${PREFIX}/share/|g'
 
+INSTALLATION_DIRS=     share/doc/dbench
+
 post-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/dbench
        ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dbench
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index