pkgsrc-wip/fio/Makefile
Leonardo Taccari 9d457ca2c8 Update the EGDIR directory for consistency with other pkgsrc packages (and there
isn't just an example but several exampleS! :))
PKGREVISION++.
2015-08-16 21:18:25 +00:00

37 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2015/08/16 21:18:25 leot1990 Exp $
DISTNAME= fio-2.2.9
PKGREVISION= 2
CATEGORIES= benchmarks
MASTER_SITES= http://brick.kernel.dk/snaps/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://git.kernel.dk/?p=fio.git;a=summary
COMMENT= Flexible IO Tester
LICENSE= gnu-gpl-v2
HAS_CONFIGURE= yes
USE_TOOLS+= bash gmake lex yacc
DOCDIR= ${PREFIX}/share/doc/fio
EGDIR= ${PREFIX}/share/examples/fio
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-build
SUBST_MESSAGE.makefile= Fixing paths in Makefile
SUBST_FILES.makefile= Makefile
SUBST_SED.makefile= -E -e 's,^(prefix =).*,\1 ${PREFIX},'
SUBST_SED.makefile+= -E -e 's,^(mandir =).*,\1 ${PREFIX}/${PKGMANDIR},'
SUBST_SED.makefile+= -E -e 's,^(sharedir =).*,\1 ${PREFIX}/share/fio,'
REPLACE_BASH+= tools/genfio
REPLACE_PYTHON+= tools/plot/fio2gnuplot
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/HOWTO ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.fio ${DESTDIR}${EGDIR}
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"