1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/devel/bisoncpp/Makefile

84 lines
2.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: bisoncpp
# Date created: March 5, 2009
# Whom: Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bisoncpp
2010-11-15 10:19:38 +00:00
PORTVERSION= 2.9.1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/bisonc%2B%2B/${PORTVERSION}
DISTNAME= bisonc++_${PORTVERSION}
EXTRACT_SUFX= .orig.tar.gz
MAINTAINER= pgj@FreeBSD.org
COMMENT= LALR(1) parser generator that generates C++ classes
BUILD_DEPENDS= icmake:${PORTSDIR}/devel/icmake \
2010-11-15 10:19:38 +00:00
yodl>=3.0:${PORTSDIR}/textproc/yodl \
libbobcat>=2.09:${PORTSDIR}/devel/libbobcat \
2009-11-17 12:40:35 +00:00
g++45:${PORTSDIR}/lang/gcc45
2009-11-17 12:40:35 +00:00
.if !defined(NO_INSTALL_MANPAGES)
MANCOMPRESSED= yes
MAN1= bisonc++.1
2009-11-17 12:40:35 +00:00
.endif
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
WRKSRC= ${WRKDIR}/bisonc++-${PORTVERSION}
post-patch:
2010-06-05 11:04:49 +00:00
@${REINPLACE_CMD} 's|"/usr"|"${PREFIX}"| ; \
s|"/share/bisonc++"|"/share/${PORTNAME}-${PORTVERSION}"| ; \
s|"/share/doc/bisonc++"|"/share/doc/${PORTNAME}-${PORTVERSION}"| ; \
2009-11-17 12:40:35 +00:00
s|"/share/man/man1"|"/man/man1"| ; \
2010-11-15 10:19:38 +00:00
s|"g++-4.5"|"g++45"|' \
${WRKSRC}/INSTALL.im
2010-06-05 11:04:49 +00:00
@${REINPLACE_CMD} 's|#!/usr/bin/icmake|#!${LOCALBASE}/bin/icmake|' \
2009-11-17 12:40:35 +00:00
${WRKSRC}/build \
${WRKSRC}/scanner/driver/build \
${WRKSRC}/parser/driver/build
2010-06-05 11:04:49 +00:00
@${REINPLACE_CMD} 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|g' \
${WRKSRC}/documentation/regression/run \
${WRKSRC}/documentation/examples/bison++Example.NEW/make \
${WRKSRC}/documentation/manual/examples/rpn/build \
${WRKSRC}/documentation/manual/examples/errorcalc/build \
${WRKSRC}/documentation/manual/examples/calc/build \
${WRKSRC}/documentation/manual/examples/mfcalc/build \
${WRKSRC}/documentation/man/calculator/build \
${WRKSRC}/scanner/buildlexer
@${REINPLACE_CMD} 's|"-Wall -O3|"-Wall ${CXXFLAGS} -I${LOCALBASE}/include| ; \
s|""|"${LOCALBASE}/lib"|' \
${WRKSRC}/icmake/library
2010-06-05 11:04:49 +00:00
@${REINPLACE_CMD} 's|"cp -d |"cp -Pp | ; \
2009-11-17 12:40:35 +00:00
s|"cp -r |"cp -R | ; \
s|"-doc"|"/doc"|' \
${WRKSRC}/icmake/install
2010-06-05 11:04:49 +00:00
@${REINPLACE_CMD} 's|libpath|libpath, "-Wl,--allow-shlib-undefined"|' \
2009-11-17 12:40:35 +00:00
${WRKSRC}/icmake/program
do-build:
2009-11-17 12:40:35 +00:00
@cd ${WRKSRC} && ./build program strip
.if !defined(NO_INSTALL_MANPAGES)
@cd ${WRKSRC} && ./build man
.endif
.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ./build manual
.endif
do-install:
2009-11-17 12:40:35 +00:00
cd ${WRKSRC} && ./build install program
.if !defined(NO_INSTALL_MANPAGES)
cd ${WRKSRC} && ./build install man
.endif
.if !defined(NOPORTDOCS)
2009-11-17 12:40:35 +00:00
cd ${WRKSRC} && ./build install manual
.endif
.include <bsd.port.mk>