pkgsrc/textproc/p5-highlight/Makefile
schmonz 52c9e5572d Update to 3.53. From the changelog:
- fixed out-of-range exception with repeated `AddKeyword` calls
- added `KeywordFormatHints`, `Priority` and `Constraints` elements to
  syntax definitions
- added Lua function `AddPersistentState`
  (https://gitlab.com/saalen/highlight/issues/112)
- renamed md.lang to markdown.lang
- added Fish syntax definition (thanks to James Lee)
- makefile: added _FILE_OFFSET_BITS=64 flag
- CLI: added optional fallback syntax to `--force`
  (https://gitlab.com/saalen/highlight/issues/126)
- CLI: added option `--max-size`
  (https://gitlab.com/saalen/highlight/issues/127)
- GUI: added multibyte path trace window
- GUI: fixed superflouos creation of the same stylesheet file
2019-08-13 01:48:49 +00:00

39 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2019/08/13 01:48:49 schmonz Exp $
.include "../../textproc/libhighlight/Makefile.common"
PKGNAME= p5-highlight-${VERSION}
COMMENT+= (Perl bindings)
BUILD_DEPENDS+= swig3-[0-9]*:../../devel/swig3
BUILD_DIRS= extras/swig
BUILD_TARGET= perl
USE_TOOLS+= perl:run
CFLAGS+= -fPIC
INSTALLATION_DIRS= ${PERL5_SUB_INSTALLVENDORARCH}/auto/highlight
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
PERL_DLEXT= bundle
SUBST_CLASSES+= load
SUBST_STAGE.load= pre-configure
SUBST_FILES.load= extras/swig/makefile
SUBST_SED.load= -e 's|-shared -s highlight_wrap\.o|-bundle -s highlight_wrap.o|g'
.else
PERL_DLEXT= so
.endif
PLIST_SUBST+= PERL_DLEXT=${PERL_DLEXT}
do-install:
cd ${WRKSRC}/extras/swig && \
${INSTALL_DATA} highlight.pm ${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORARCH}/ && \
${INSTALL_LIB} highlight.so ${DESTDIR}${PREFIX}/${PERL5_SUB_INSTALLVENDORARCH}/auto/highlight/highlight.${PERL_DLEXT}
PERL5_LDFLAGS= -L${PERL5_INSTALLARCHLIB}/CORE
.include "../../lang/perl5/module.mk"
.include "../../textproc/libhighlight/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"