freebsd-ports/devel/bisoncpp/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

69 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= bisoncpp
PORTVERSION= 4.10.01
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/bisonc%2B%2B/${PORTVERSION}
DISTNAME= bisonc++_${PORTVERSION}.orig
MAINTAINER= bofh@FreeBSD.org
COMMENT= LALR(1) parser generator that generates C++ classes
LICENSE= GPLv3
BUILD_DEPENDS= icmake:devel/icmake \
yodl>=3.0:textproc/yodl \
libbobcat>=3.18:devel/libbobcat
DOCSDIR= ${PREFIX}/share/doc/bisonc++
PORTDOCS= *
WRKSRC= ${WRKDIR}/bisonc++-${PORTVERSION}
USE_GCC= yes
USES= shebangfix
SHEBANG_LANG= icmake
icmake_OLD_CMD= /usr/bin/icmake
icmake_CMD= ${LOCALBASE}/bin/icmake
SHEBANG_FILES= build \
documentation/examples/bison++Example.NEW/make \
documentation/man/calculator/build \
documentation/manual/examples/calc/build \
documentation/manual/examples/errorcalc/build \
documentation/manual/examples/mfcalc/build \
documentation/manual/examples/rpn/build \
documentation/manual/grammar/poly/build \
documentation/regression/run \
parser/driver/build \
scanner/driver/build
post-patch:
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/INSTALL.im
@${REINPLACE_CMD} 's|"g++|"${CXX}|' \
${WRKSRC}/INSTALL.im \
${WRKSRC}/scanner/driver/build \
${WRKSRC}/parser/driver/build
@${REINPLACE_CMD} 's|"gcc|"${CC}|' \
${WRKSRC}/icmake/special
@${REINPLACE_CMD} 's|"cp -d |"cp -Pp | ; \
s|"cp -r |"cp -R | ; \
s|-doc|/doc|' \
${WRKSRC}/icmake/install
do-build:
@cd ${WRKSRC} && ./build program strip
@cd ${WRKSRC} && ./build man
@cd ${WRKSRC} && ./build manual
do-install:
cd ${WRKSRC} && ./build install program ${STAGEDIR}
cd ${WRKSRC} && ./build install man ${STAGEDIR}
cd ${WRKSRC} && ./build install manual ${STAGEDIR}
cd ${WRKSRC} && ./build install skel ${STAGEDIR}
.include <bsd.port.mk>