1 # Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
2 # $FreeBSD: textproc/confetti/Makefile 317438 2013-05-05 21:22:26Z bapt $
5 PORTVERSION= 0.0.${DATE}
7 MASTER_SITES= http://fbsd.zlonet.ru/distfiles/
9 MAINTAINER= g.veniamin@googlemail.com
10 COMMENT= Configuration file parser generator
12 BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
19 MAKE_ARGS+= FLEX=${LOCALBASE}/bin/flex
22 OPTIONS_DEFINE= EXAMPLES
24 .include <bsd.port.options.mk>
26 .if ${PORT_OPTIONS:MEXAMPLES}
27 PLIST_SUB+= EXAMPLES=""
29 PLIST_SUB+= EXAMPLES="@comment "
33 @${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
37 ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
39 .if ${PORT_OPTIONS:MEXAMPLES}
40 ${MKDIR} ${EXAMPLESDIR}
41 cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
44 .include <bsd.port.mk>