diff options
author | joerg <joerg> | 2009-07-08 14:12:30 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-07-08 14:12:30 +0000 |
commit | 892d9289007782238d5d96b0d96b4b36d2f8b3d8 (patch) | |
tree | 0e23d071b002495d1bb0818a6677830df1b2aef6 /benchmarks | |
parent | 0b432711f3f963e794626d88b2f375d5a15a4c7b (diff) | |
download | pkgsrc-892d9289007782238d5d96b0d96b4b36d2f8b3d8.tar.gz |
user-destdir support
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/dbench/Makefile | 10 |
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" |