c36bb94a5a
scanners and is a required dependency to update a number of ports. Following analysis of bulk build and base build logs with this done as an update to /usr/src/usr.bin/lex mostly over p2k9 it's clear this has incompatibilities with existing scanners (including minor SUS breakage) so at this time it's being imported as a port rather than updating base. Port originally from Brad with some changes by myself (executable file now named gflex, and use base m4 not GNU m4 - requires /usr/bin/m4 with -P support; 2009/10/14 or newer). Discussed with and requested by many. ok ajacoutot, jasper, Brad.
35 lines
736 B
Makefile
35 lines
736 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2009/10/28 23:13:56 sthen Exp $
|
|
|
|
COMMENT= fast lexical analyzer generator
|
|
|
|
DISTNAME= flex-2.5.35
|
|
CATEGORIES= devel textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/}
|
|
|
|
HOMEPAGE= http://flex.sourceforge.net/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c m
|
|
|
|
MODULES= devel/gettext
|
|
|
|
BUILD_DEPENDS= ::devel/help2man \
|
|
::devel/bison
|
|
|
|
YACC= bison
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include/flex \
|
|
--libdir=${PREFIX}/lib/flex \
|
|
--program-prefix=g
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
ac_cv_path_M4=/usr/bin/m4
|
|
|
|
.include <bsd.port.mk>
|