freebsd-ports/devel/ragel/Makefile
Emanuel Haupt f78cf042fb Add an additional mirror.
Submitted by:	Shaun Amott <shaun@inerd.com> (maintainer)
2006-04-29 09:14:52 +00:00

46 lines
1.2 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: ragel
# Date created: Mar 6, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= ragel
PORTVERSION= 5.6
CATEGORIES= devel
MASTER_SITES= http://www.cs.queensu.ca/home/thurston/ragel/ \
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
MAINTAINER= shaun@inerd.com
COMMENT= Compile regular languages into executable C/C++ code
BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ENV= GPERF="${LOCALBASE}/bin/gperf"
MAN1= ragel.1 rlcodegen.1
PLIST_FILES= bin/ragel bin/rlcodegen
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(CFLAGS)|$$(CXXFLAGS)|g ; \
s|gperf -L|$$(GPERF) -L|g'
post-build:
@cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \
ragel.1 rlcodegen.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ragel/ragel ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/rlcodegen/rlcodegen ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/ragel.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/rlcodegen.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>