2e65d464e8
having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
29 lines
842 B
Makefile
29 lines
842 B
Makefile
# $NetBSD: Makefile,v 1.2 2015/06/12 10:51:17 wiz Exp $
|
|
|
|
PKGNAME= p5-${DISTNAME}
|
|
PKGREVISION= 1
|
|
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"
|