1 # $NetBSD: Makefile,v 1.14 2012/01/23 09:39:52 wiz Exp $
6 MASTER_SITES
= http
://samba.org
/ftp
/tridge
/dbench
/
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 HOMEPAGE
= http
://samba.org
/ftp
/tridge
/dbench
/README
10 COMMENT
= Simulation of the Ziff-Davis netbench benchmark
12 PKG_INSTALLATION_TYPES
= overwrite pkgviews
16 .
include "../../mk/bsd.prefs.mk"
18 .if
${OPSYS} == "SunOS"
19 MAKE_ENV
+= DB_LDFLAGS
="-lrt" TB_LDFLAGS
="-lsocket -lnsl"
22 INSTALL_MAKE_FLAGS
+= prefix=${DESTDIR}${PREFIX} \
23 datadir=${DESTDIR}${PREFIX}/share
/dbench \
24 mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
25 CONFIGURE_ARGS
+= --datadir=${PREFIX}/share
/dbench
28 SUBST_STAGE.path
= post-configure
29 SUBST_FILES.path
= dbench
.1
30 SUBST_SED.path
= -e
's|/usr/share/|${PREFIX}/share/|g'
32 INSTALLATION_DIRS
= share
/doc
/dbench
35 ${INSTALL_DATA} ${WRKSRC}/README
${DESTDIR}${PREFIX}/share
/doc
/dbench
37 .
include "../../mk/bsd.pkg.mk"