summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-08 14:12:30 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-08 14:12:30 +0000
commit24589a2e4639c4b0e7d0e6d3838d467b8ca0d961 (patch)
tree0e23d071b002495d1bb0818a6677830df1b2aef6 /benchmarks
parentab8cbc093e1c853dfa49c4cef7eb8f69ccee11ce (diff)
downloadpkgsrc-24589a2e4639c4b0e7d0e6d3838d467b8ca0d961.tar.gz
user-destdir support
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/dbench/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/benchmarks/dbench/Makefile b/benchmarks/dbench/Makefile
index be354e1e113..c6f02f09401 100644
--- a/benchmarks/dbench/Makefile
+++ b/benchmarks/dbench/Makefile
@@ -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 @@ HOMEPAGE= http://samba.org/ftp/tridge/dbench/README
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 @@ GNU_CONFIGURE= yes
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_STAGE.path= post-configure
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"