pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/benchmarks/lmbench user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5dabd2743bd0
branches:  trunk
changeset: 395521:5dabd2743bd0
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jul 08 14:23:23 2009 +0000

description:
user-destdir support

diffstat:

 benchmarks/lmbench/Makefile         |   7 ++++---
 benchmarks/lmbench/files/do-install |  24 ++++++++++++------------
 2 files changed, 16 insertions(+), 15 deletions(-)

diffs (78 lines):

diff -r 4bc85fa80fe6 -r 5dabd2743bd0 benchmarks/lmbench/Makefile
--- a/benchmarks/lmbench/Makefile       Wed Jul 08 14:23:18 2009 +0000
+++ b/benchmarks/lmbench/Makefile       Wed Jul 08 14:23:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2009/05/16 20:38:39 zafer Exp $
+# $NetBSD: Makefile,v 1.33 2009/07/08 14:23:23 joerg Exp $
 
 DISTNAME=              lmbench-2alpha11
 PKGNAME=               lmbench-2.11a
@@ -12,12 +12,13 @@
 COMMENT=               Complete benchmark that gives a large amount of information
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 USE_TOOLS+=            gmake perl:run
 BUILD_TARGET=          build
 MAKE_ENV+=             MACHINE_ARCH=${MACHINE_ARCH:Q}
 
-INSTALLATION_DIRS=     ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 ${PKGMANDIR}/man8
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 ${PKGMANDIR}/man8
 
 post-extract:
        ${INSTALL_SCRIPT} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts/gnu-os
@@ -40,7 +41,7 @@
        ${CHMOD} 0755 ${WRKSRC}/scripts/lmbench
 
 do-install:
-       ${SETENV} ${MAKE_ENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} \
+       ${SETENV} ${MAKE_ENV} DESTDIR=${DESTDIR} PREFIX=${PREFIX} WRKSRC=${WRKSRC} \
                INSTALL_PROGRAM=${INSTALL:Q} ${FILESDIR}/do-install
 
 .include "../../mk/bsd.prefs.mk"
diff -r 4bc85fa80fe6 -r 5dabd2743bd0 benchmarks/lmbench/files/do-install
--- a/benchmarks/lmbench/files/do-install       Wed Jul 08 14:23:18 2009 +0000
+++ b/benchmarks/lmbench/files/do-install       Wed Jul 08 14:23:23 2009 +0000
@@ -10,29 +10,29 @@
 MAN8="lmbench.8 lat_proc.8 lat_mmap.8 lat_ctx.8 lat_syscall.8 lat_pipe.8 lat_tcp.8 lat_udp.8 lat_rpc.8 lat_connect.8 lat_fs.8 lat_pagefault.8 lat_mem_rd.8 bw_file_rd.8 bw_mem_cp.8 bw_mem_rd.8 
bw_mem_wr.8 bw_mmap_rd.8 bw_pipe.8 bw_tcp.8 mhz.8 lmdd.8"
 MAN1="bargraph.1 graph.1"
 
-mkdir -p $PREFIX/libexec/lmbench
-mkdir -p $PREFIX/share/lmbench
+mkdir -p ${DESTDIR}${PREFIX}/libexec/lmbench
+mkdir -p ${DESTDIR}${PREFIX}/share/lmbench
 for files in $BINS; do
-       $BSD_INSTALL_PROGRAM bin/$OSDIR/$files $PREFIX/libexec/lmbench
+       $BSD_INSTALL_PROGRAM bin/$OSDIR/$files ${DESTDIR}${PREFIX}/libexec/lmbench
 done
 for files in $SCRIPTS; do
-       $BSD_INSTALL_SCRIPT scripts/$files $PREFIX/libexec/lmbench
+       $BSD_INSTALL_SCRIPT scripts/$files ${DESTDIR}${PREFIX}/libexec/lmbench
 done
 for files in $MAN1; do
-       $BSD_INSTALL_MAN doc/$files $PREFIX/$PKGMANDIR/man1
+       $BSD_INSTALL_MAN doc/$files ${DESTDIR}${PREFIX}/$PKGMANDIR/man1
 done
 for files in $MAN8; do
-       $BSD_INSTALL_MAN doc/$files $PREFIX/$PKGMANDIR/man8
+       $BSD_INSTALL_MAN doc/$files ${DESTDIR}${PREFIX}/$PKGMANDIR/man8
 done
 for files in $MAN3; do
-       $BSD_INSTALL_MAN doc/$files $PREFIX/$PKGMANDIR/man3
+       $BSD_INSTALL_MAN doc/$files ${DESTDIR}${PREFIX}/$PKGMANDIR/man3
 done
-cat <<EOF >$PREFIX/bin/run-lmbench
+cat <<EOF >${DESTDIR}${PREFIX}/bin/run-lmbench
 #!/bin/sh
 ${PREFIX}/libexec/lmbench/config-run
 ${PREFIX}/libexec/lmbench/results
 EOF
-chmod 0755 ${PREFIX}/bin/run-lmbench
-cp -R src/webpage-lm $PREFIX/share/lmbench
-mkdir -p ${PREFIX}/share/lmbench/results
-cp results/Makefile ${PREFIX}/share/lmbench/results
+chmod 0755 ${DESTDIR}${PREFIX}/bin/run-lmbench
+cp -R src/webpage-lm ${DESTDIR}${PREFIX}/share/lmbench
+mkdir -p ${DESTDIR}${PREFIX}/share/lmbench/results
+cp results/Makefile ${DESTDIR}${PREFIX}/share/lmbench/results



Home | Main Index | Thread Index | Old Index