pkgsrc/devel/flex/Makefile

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.60 2017/07/24 14:34:49 maya Exp $
DISTNAME= flex-2.6.4
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
# https://github.com/westes/flex/issues/219
CONFIGURE_ENV.NetBSD+= ac_cv_func_reallocarray=no
#.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"