# $NetBSD: Makefile,v 1.3 2016/06/08 19:24:27 wiz Exp $
PKGNAME= p5-${DISTNAME}
PKGREVISION= 2
COLLECTD_PACKAGE= perl
COMMENT= Statistics collection daemon - perl plugin
.include "../../sysutils/collectd/Makefile.common"
USE_TOOLS+= perl
PERL5_CONFIGURE= no
PERL5_PACKLIST+= auto/Collectd/.packlist
CONFIGURE_ARGS+= --with-libperl=${BUILDLINK_PREFIX.perl}
CONFIGURE_ARGS+= --with-perl-bindings=${MAKE_PARAMS:Q}
post-build:
cd ${WRKSRC}/bindings && ${BUILD_MAKE_CMD} perl
do-install:
cd ${WRKSRC}/src && ${PKGSRC_SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_MAKE_FLAGS} ${INSTALL_TARGET}
cd ${WRKSRC}/bindings && ${PKGSRC_SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_MAKE_FLAGS} install
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>