pkgsrc/devel/flex/Makefile
wiz d67f850115 Updated flex to 2.6.3.
* version 2.6.3 released 2016-12-30

** scanner

*** several bug fixes resolved problems introduced in recent flex
    versions regarding processing of comments, literals and various
    quoting scenarios.

*** If the path to m4 was sufficiently long, a buffer overflow could
    occur. This has been resolved. The fix also removes dependence on
    the constant PATH_MAX.

** build

*** A new configure option --disable-bootstrap changes the behavior of
    the build system when building flex. The default
    "--enable-bootstrap" behavior is to build flex, then to use that
    flex to build flex again. With --disable-bootstrap, the scanner is
    simply built by sedding the scanner source. This is friendlier to
    cross compilation.

*** The compatibility functions in lib/ are no longer built as a
    library. Instead, they are built as $(LIBOBJ) objects. This is
    simpler and friendlier to cross compilation.

*** It is now possible to build flex without building the accompanying
    libfl. This is friendlier to cross compilation. See the
    --disable-libfl option to configure. Resolves #99.

*** the PIC version of libfl was not correctly built. It is no longer
    included in the build/installation targets of flex since it was
    unused.

*** the distributed man page is only rebuilt when the relevant source
    files change or when the binary doesn't exist. In particular, this
    is friendlier to cross compilation. Resolves #108

** test

*** the shell scripts in the test suite are more portable across different shell implementations.
2017-01-01 13:53:16 +00:00

40 lines
989 B
Makefile

# $NetBSD: Makefile,v 1.56 2017/01/01 13:53:16 wiz Exp $
DISTNAME= flex-2.6.3
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_GITHUB:=westes/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/westes/flex
COMMENT= Fast clone of lex(1), the lexical scanner generator
LICENSE= 2-clause-bsd
BUILD_DEPENDS+= help2man-[0-9]*:../../converters/help2man
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gm4:run makeinfo gettext
GNU_CONFIGURE= yes
INFO_FILES= yes
TEST_TARGET= check
LIBS.SunOS+= -lm
.include "../../mk/bsd.prefs.mk"
CFLAGS.AIX+= -D_LINUX_SOURCE_COMPAT
.if ${OS_VARIANT} == "SCOOSR5"
LDFLAGS.SCO_SV+= -lsocket
.endif
#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
USE_LANGUAGES= c c++
USE_TOOLS+= bash:build
REPLACE_BASH= tests/testwrapper.sh tests/options.cn
USE_TOOLS+= gmake # bmake has problems with the test suite
#.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"