Sep 20, 2020: 2.1.5 added matcher method lineno(n) to set or change the line number to n; added yyset_lineno(n,s) to flexlexer.h; updated Mini C compiler example. Oct 12, 2020: 3.0.0 fixed a regression bug since v2.x; redesigned internals to increase IO efficiency and regex pattern search speed. Oct 24, 2020: 3.0.1 improved handling of UTF-16/32 file encodings on Windows to prevent ^Z eof when files are opened in text mode. Mar 16, 2021: 3.0.2 minor improvements and additions; fixed MinGW builds. Apr 29, 2021: 3.0.3 fixed reflex::Input copy constructor; minor improvements. May 27, 2021: 3.0.4 improvements and fixes for minor issues. Jun 1, 2021: 3.0.5 minor usability improvements; changed \d to match Unicode when option unicode is enabled. Jun 4, 2021: 3.0.6 minor improvements. Jun 6, 2021: 3.0.7 updated examples to fix build problems. Jul 15, 2021: 3.0.8 minor improvements. Jul 22, 2021: 3.0.9 SIMD code split into simd_avx2.cpp and simd_avx512bw.cpp to support runtime CPU ID checking when the library is built with ./configure; make, disable AVX with ./configure --disable-avx, disable SSE2 with ./configure --disable-sse2; UTF-16LE BOM detection correction. Aug 14, 2021: 3.0.10 fixed missing simd.h after installation, added REFLEX_BUFFER_SIZE to customize the initial size and growth of the input buffer. Sep 14, 2021: 3.0.11 minor change to apply --prefix to the generated REFLEX_code_[PREFIX]STATE code. Oct 11, 2021: 3.0.12 updated to Unicode 14; fixed a compilation issue with --params when used with --flex.
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2021/11/28 20:22:32 scole Exp $
|
|
|
|
DISTNAME= RE-flex-3.0.12
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=Genivia/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/Genivia/RE-flex/
|
|
COMMENT= Fast lexical analyzer generator for C++ with full Unicode support
|
|
LICENSE= modified-bsd
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "options.mk"
|
|
|
|
INSTALLATION_DIRS+= bin lib share/RE-flex include/reflex ${PKGMANDIR}/man1
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= gmake
|
|
USE_LIBTOOL= yes
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/lib && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
|
|
do-install:
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
|
${WRKSRC}/src/reflex ${DESTDIR}${PREFIX}/bin
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
${WRKSRC}/lib/libreflex.la ${DESTDIR}${PREFIX}/lib
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
${WRKSRC}/lib/libreflexmin.la ${DESTDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/include/reflex/*.h \
|
|
${DESTDIR}${PREFIX}/include/reflex
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/reflex.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
post-install: post-install-doxygen post-install-examples
|
|
.for f in README.md LICENSE.txt CONTRIBUTING.md CODE_OF_CONDUCT.md lex.vim
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/RE-flex
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|