1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/textproc/flex/Makefile
Baptiste Daroussin 698f728a34 Fix build on system built WITHOUT_INFO
With hat:	portmgr
2014-06-25 08:58:09 +00:00

37 lines
898 B
Makefile

# $FreeBSD$
PORTNAME= flex
PORTVERSION= 2.5.39
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= johans@FreeBSD.org
COMMENT= Fast lexical analyzer generator
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man \
gm4:${PORTSDIR}/devel/m4
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
USES= bison gmake makeinfo tar:bzip2
GNU_CONFIGURE= yes
# install flex header to its own dir to avoid conflict with system flex.
CONFIGURE_ARGS= --includedir=${PREFIX}/include/flex --disable-shared
CONFIGURE_ENV= M4=${LOCALBASE}/bin/gm4 MAKEINFO="makeinfo --no-split"
INSTALL_TARGET= install-strip
INFO= flex
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext iconv
NLS_CONFIGURE_ENABLE= nls
post-patch: .SILENT
${REINPLACE_CMD} -Ee 's/tests//' \
-e '/mode=compile ..CC/s/\\$$/-fPIC -DPIC &/' \
${WRKSRC}/Makefile.in
${RM} -f ${WRKSRC}/doc/*.info*
.include <bsd.port.mk>