2017-07-24 16:34:49 +02:00
|
|
|
# $NetBSD: Makefile,v 1.60 2017/07/24 14:34:49 maya Exp $
|
1999-07-01 11:23:23 +02:00
|
|
|
|
2017-07-24 16:19:06 +02:00
|
|
|
DISTNAME= flex-2.6.4
|
Updated flex to 2.6.2.
Slightly based on wip/flex by Makoto Fujiwara and Juraj Lutter.
* version 2.6.2 released 2016-10-24
** flex internals
*** a segfalt involving yyrestart(NULL) has been fixed
*** flex should now handle quoting when mixed with m4 processing correctly
*** flex handles `[[' and `]]' correctly
*** flex no longer generates non-ANSI code
*** more compilation warnings were squashed in generated scanners
*** prevented a buffer overflow that could occur when input buffers were the exact wrong size
** test suite
*** input filenames on MSWindows are now calculated correctly
*** general code cleanups in a number of tests now make the test suite compile much more cleanly
** build system
*** the xz archive has been replaced with an lzip archive
*** a new option to configure --enable-warnings to encapsulate passing
of warning-related flags which is useful in testing flex
*** make indent now works for out of source builds
*** Portability warnings when generating Makefile.in files are now suppressed; they were just noise and the use of GNU extensions in Makefile.{am,in,} was intentional and well known.
** bugs
*** resolved gh#67
** new sv translation from the translation project
* version 2.6.1 released 2016-03-01
** flex resources
*** The flex project is now hosted at github. Consider this a "period of transition". In particular, you should start at https://github.com/westes/flex for the flex codebase, issue tracking and pull requests.
*** New releases of flex are to be found at https://github.com/westes/flex/releases.
** flex internals
*** Flex now uses more modern and more standard names for variable types. There's more work to be done on that front yet, though.
*** A number of compiler warnings have been remedied.
*** Line directives should now work as expected and be absent when that is expected.
** test suite
*** When running the test suite, c++ files are compiled with the c++ header inside the flex distribution, rather than relying on the build system's flex header , which might not be installed yet or which might be out of date with respect to what flex tests expect.
*** Some portability fixes in the test suite such as opening files for reading in binary mode
** Building flex
*** The file src/scan.c asdistributed with flex source is now built with the current version of flex. Occasionally this had to be done manually to pick up new flex features. It's now just a part of flex's build system.
*** The pdf version of the manual is no longer distributed with flex, although if you have the texinfo package installed, you can still build it.
*** lots of general build system cleanup
*** the build system tries a bit harder to find libtoolize and texi2dvi.
*** When help2man and texi2dvi are missing, the error messages are now much more helpful.
** bug fixes
*** resolved github issues #53, #54, #55, #61.
*** Resolved sf bugs #128, #129, #155, #160, #184, #187, #195.
2016-11-06 22:31:38 +01:00
|
|
|
CATEGORIES= devel lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=westes/}
|
|
|
|
GITHUB_RELEASE= v${PKGVERSION_NOREV}
|
1999-07-01 11:23:23 +02:00
|
|
|
|
2014-04-17 18:44:30 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2016-07-18 18:18:49 +02:00
|
|
|
HOMEPAGE= https://github.com/westes/flex
|
2014-04-17 18:44:30 +02:00
|
|
|
COMMENT= Fast clone of lex(1), the lexical scanner generator
|
|
|
|
LICENSE= 2-clause-bsd
|
1999-07-01 11:23:23 +02:00
|
|
|
|
Updated flex to 2.6.2.
Slightly based on wip/flex by Makoto Fujiwara and Juraj Lutter.
* version 2.6.2 released 2016-10-24
** flex internals
*** a segfalt involving yyrestart(NULL) has been fixed
*** flex should now handle quoting when mixed with m4 processing correctly
*** flex handles `[[' and `]]' correctly
*** flex no longer generates non-ANSI code
*** more compilation warnings were squashed in generated scanners
*** prevented a buffer overflow that could occur when input buffers were the exact wrong size
** test suite
*** input filenames on MSWindows are now calculated correctly
*** general code cleanups in a number of tests now make the test suite compile much more cleanly
** build system
*** the xz archive has been replaced with an lzip archive
*** a new option to configure --enable-warnings to encapsulate passing
of warning-related flags which is useful in testing flex
*** make indent now works for out of source builds
*** Portability warnings when generating Makefile.in files are now suppressed; they were just noise and the use of GNU extensions in Makefile.{am,in,} was intentional and well known.
** bugs
*** resolved gh#67
** new sv translation from the translation project
* version 2.6.1 released 2016-03-01
** flex resources
*** The flex project is now hosted at github. Consider this a "period of transition". In particular, you should start at https://github.com/westes/flex for the flex codebase, issue tracking and pull requests.
*** New releases of flex are to be found at https://github.com/westes/flex/releases.
** flex internals
*** Flex now uses more modern and more standard names for variable types. There's more work to be done on that front yet, though.
*** A number of compiler warnings have been remedied.
*** Line directives should now work as expected and be absent when that is expected.
** test suite
*** When running the test suite, c++ files are compiled with the c++ header inside the flex distribution, rather than relying on the build system's flex header , which might not be installed yet or which might be out of date with respect to what flex tests expect.
*** Some portability fixes in the test suite such as opening files for reading in binary mode
** Building flex
*** The file src/scan.c asdistributed with flex source is now built with the current version of flex. Occasionally this had to be done manually to pick up new flex features. It's now just a part of flex's build system.
*** The pdf version of the manual is no longer distributed with flex, although if you have the texinfo package installed, you can still build it.
*** lots of general build system cleanup
*** the build system tries a bit harder to find libtoolize and texi2dvi.
*** When help2man and texi2dvi are missing, the error messages are now much more helpful.
** bug fixes
*** resolved github issues #53, #54, #55, #61.
*** Resolved sf bugs #128, #129, #155, #160, #184, #187, #195.
2016-11-06 22:31:38 +01:00
|
|
|
BUILD_DEPENDS+= help2man-[0-9]*:../../converters/help2man
|
|
|
|
|
Update to 2.5.39:
* flex version 2.5.39
** no user visible changes in this release
* version 2.5.38 released 2014-02-14
** internationalization
*** add sr translation from the translation project
*** update da, es, ko, nl, pt_BR, ro, ru, sv, tr, vi, zh_CN translations from the translation project
*** rename zh_tw to its proper zh_TW name
* version 2.5.37 released 2012-08-03
** Import flex into git. See
git://flex.git.sourceforge.net/gitroot/flex/flex.
** Fix make install target to not fail when the flex++ program is
already installed
** New translations from the translation project: de, fi, pl, vi
2014-04-17 14:41:03 +02:00
|
|
|
USE_LIBTOOL= yes
|
2014-04-17 18:44:30 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
Updated flex to 2.6.2.
Slightly based on wip/flex by Makoto Fujiwara and Juraj Lutter.
* version 2.6.2 released 2016-10-24
** flex internals
*** a segfalt involving yyrestart(NULL) has been fixed
*** flex should now handle quoting when mixed with m4 processing correctly
*** flex handles `[[' and `]]' correctly
*** flex no longer generates non-ANSI code
*** more compilation warnings were squashed in generated scanners
*** prevented a buffer overflow that could occur when input buffers were the exact wrong size
** test suite
*** input filenames on MSWindows are now calculated correctly
*** general code cleanups in a number of tests now make the test suite compile much more cleanly
** build system
*** the xz archive has been replaced with an lzip archive
*** a new option to configure --enable-warnings to encapsulate passing
of warning-related flags which is useful in testing flex
*** make indent now works for out of source builds
*** Portability warnings when generating Makefile.in files are now suppressed; they were just noise and the use of GNU extensions in Makefile.{am,in,} was intentional and well known.
** bugs
*** resolved gh#67
** new sv translation from the translation project
* version 2.6.1 released 2016-03-01
** flex resources
*** The flex project is now hosted at github. Consider this a "period of transition". In particular, you should start at https://github.com/westes/flex for the flex codebase, issue tracking and pull requests.
*** New releases of flex are to be found at https://github.com/westes/flex/releases.
** flex internals
*** Flex now uses more modern and more standard names for variable types. There's more work to be done on that front yet, though.
*** A number of compiler warnings have been remedied.
*** Line directives should now work as expected and be absent when that is expected.
** test suite
*** When running the test suite, c++ files are compiled with the c++ header inside the flex distribution, rather than relying on the build system's flex header , which might not be installed yet or which might be out of date with respect to what flex tests expect.
*** Some portability fixes in the test suite such as opening files for reading in binary mode
** Building flex
*** The file src/scan.c asdistributed with flex source is now built with the current version of flex. Occasionally this had to be done manually to pick up new flex features. It's now just a part of flex's build system.
*** The pdf version of the manual is no longer distributed with flex, although if you have the texinfo package installed, you can still build it.
*** lots of general build system cleanup
*** the build system tries a bit harder to find libtoolize and texi2dvi.
*** When help2man and texi2dvi are missing, the error messages are now much more helpful.
** bug fixes
*** resolved github issues #53, #54, #55, #61.
*** Resolved sf bugs #128, #129, #155, #160, #184, #187, #195.
2016-11-06 22:31:38 +01:00
|
|
|
USE_TOOLS+= gm4:run makeinfo gettext
|
2014-04-17 18:44:30 +02:00
|
|
|
GNU_CONFIGURE= yes
|
Update to 2.5.39:
* flex version 2.5.39
** no user visible changes in this release
* version 2.5.38 released 2014-02-14
** internationalization
*** add sr translation from the translation project
*** update da, es, ko, nl, pt_BR, ro, ru, sv, tr, vi, zh_CN translations from the translation project
*** rename zh_tw to its proper zh_TW name
* version 2.5.37 released 2012-08-03
** Import flex into git. See
git://flex.git.sourceforge.net/gitroot/flex/flex.
** Fix make install target to not fail when the flex++ program is
already installed
** New translations from the translation project: de, fi, pl, vi
2014-04-17 14:41:03 +02:00
|
|
|
INFO_FILES= yes
|
|
|
|
|
2003-10-19 03:34:13 +02:00
|
|
|
TEST_TARGET= check
|
2007-01-15 07:23:47 +01:00
|
|
|
LIBS.SunOS+= -lm
|
2007-01-15 07:14:48 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2016-02-25 13:12:47 +01:00
|
|
|
CFLAGS.AIX+= -D_LINUX_SOURCE_COMPAT
|
2009-02-25 22:03:01 +01:00
|
|
|
|
2014-07-17 14:53:49 +02:00
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
|
|
LDFLAGS.SCO_SV+= -lsocket
|
|
|
|
.endif
|
|
|
|
|
2017-07-24 16:34:49 +02:00
|
|
|
# https://github.com/westes/flex/issues/219
|
|
|
|
CONFIGURE_ENV.NetBSD+= ac_cv_func_reallocarray=no
|
|
|
|
|
2008-02-22 23:13:33 +01:00
|
|
|
#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
|
2007-01-15 07:14:48 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2016-01-07 13:05:30 +01:00
|
|
|
USE_TOOLS+= bash:build
|
|
|
|
REPLACE_BASH= tests/testwrapper.sh tests/options.cn
|
2007-01-15 07:14:48 +01:00
|
|
|
USE_TOOLS+= gmake # bmake has problems with the test suite
|
2008-02-22 23:13:33 +01:00
|
|
|
#.endif
|
2007-01-15 07:14:48 +01:00
|
|
|
|
2007-01-31 16:38:33 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
1999-07-01 11:23:23 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|