freebsd-ports/textproc/flex/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

46 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= flex
PORTVERSION= 2.6.4
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= https://github.com/westes/flex/releases/download/v${PORTVERSION}/
MAINTAINER= johans@FreeBSD.org
COMMENT= Fast lexical analyzer generator
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= help2man:misc/help2man \
gm4:devel/m4
RUN_DEPENDS= gm4:devel/m4
USES= bison gmake libtool makeinfo
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
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES 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} ${WRKSRC}/doc/*.info*
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -r ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/
${RM} ${STAGEDIR}${EXAMPLESDIR}/Makefile.am
.include <bsd.port.mk>