diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-08 14:23:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-08 14:23:23 +0000 |
commit | 63ac85ed541d949ad92f6301ae6a326cf8162142 (patch) | |
tree | c0771735dd85fd64d7c1d43988a96b6060446147 | |
parent | 440b91b24476897e51695a188ace07209404f9a2 (diff) | |
download | pkgsrc-63ac85ed541d949ad92f6301ae6a326cf8162142.tar.gz |
user-destdir support
-rw-r--r-- | benchmarks/lmbench/Makefile | 7 | ||||
-rwxr-xr-x | benchmarks/lmbench/files/do-install | 24 |
2 files changed, 16 insertions, 15 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile index 9ebd4388463..45e8b85f6ee 100644 --- a/benchmarks/lmbench/Makefile +++ b/benchmarks/lmbench/Makefile @@ -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 @@ HOMEPAGE= http://www.bitmover.com/lm/lmbench/ 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 @@ post-configure: ${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 --git a/benchmarks/lmbench/files/do-install b/benchmarks/lmbench/files/do-install index dd807e2f042..1e5a69ac99c 100755 --- a/benchmarks/lmbench/files/do-install +++ b/benchmarks/lmbench/files/do-install @@ -10,29 +10,29 @@ MAN3="lmbench.3 reporting.3 results.3 timing.3" 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 |