2e65d464e8
having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
26 lines
744 B
Makefile
26 lines
744 B
Makefile
# $NetBSD: Makefile,v 1.3 2015/06/12 10:51:39 wiz Exp $
|
|
|
|
PKGREVISION= 1
|
|
.include "../../textproc/highlight/Makefile.common"
|
|
|
|
PKGNAME= p5-highlight-${VERSION}
|
|
COMMENT+= (Perl bindings)
|
|
|
|
BUILD_DEPENDS+= swig-[0-9]*:../../devel/swig
|
|
DEPENDS+= highlight-[0-9]*:../../textproc/highlight
|
|
|
|
BUILD_DIRS= examples/swig
|
|
BUILD_TARGET= perl
|
|
|
|
USE_TOOLS+= perl:run
|
|
CFLAGS+= -fPIC
|
|
|
|
INSTALLATION_DIRS= ${PERL5_SUB_INSTALLVENDORARCH}/auto/highlight
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/examples/swig && \
|
|
${INSTALL_DATA} highlight.pm ${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORARCH}/ && \
|
|
${INSTALL_DATA} highlight.so ${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORARCH}/auto/highlight/
|
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|