freebsd-ports/devel/spirit/Makefile
Kris Kennaway e2b8201d4a BROKEN on !i386 and !alpha (gcc internal compiler error); mark IGNORE
on amd64 (cc1plus loops forever, presumably another symptom of the same
bug)
2004-04-04 00:27:33 +00:00

44 lines
1.2 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: spirit
# Date created: Nov 4, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= spirit
PORTVERSION= 1.6.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= An object oriented recursive descent parser generator framework
BUILD_DEPENDS= ${LOCALBASE}/lib/libboost_thread.so:${PORTSDIR}/devel/boost
RUN_DEPENDS= ${LOCALBASE}/lib/libboost_thread.so:${PORTSDIR}/devel/boost
USE_REINPLCE= yes
USE_GNOME= gnomehack
GNU_CONFIGURE= yes
CFLAGS= -pipe # -O makes -stable memory exhausted
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-spirit-threadsafe
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
IGNORE= does not build: cc1plus hangs forever (gcc bug)
.elif ${ARCH} != "i386" && ${ARCH} != "alpha"
BROKEN= "Internal compiler error during build on !i386 and !alpha"
.endif
post-patch:
@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} \
${GREP} -lR "^htmldir" | ${XARGS} ${REINPLACE_CMD} \
-e "s@libs/@share/doc/spirit/@"
.include <bsd.port.post.mk>