Import textproc/confetti version 0.0.20120801
[dports.git] / textproc / confetti / Makefile
1 # Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
2 # $FreeBSD: textproc/confetti/Makefile 317438 2013-05-05 21:22:26Z bapt $
3
4 PORTNAME=       confetti
5 PORTVERSION=    0.0.${DATE}
6 CATEGORIES=     textproc
7 MASTER_SITES=   http://fbsd.zlonet.ru/distfiles/
8
9 MAINTAINER=     g.veniamin@googlemail.com
10 COMMENT=        Configuration file parser generator
11
12 BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
13
14 USE_BZIP2=      yes
15 USE_GMAKE=      yes
16 USES=           bison
17 USE_PERL5=      yes
18 DATE=           20120801
19 MAKE_ARGS+=     FLEX=${LOCALBASE}/bin/flex
20 MAKE_JOBS_UNSAFE=yes
21
22 OPTIONS_DEFINE= EXAMPLES
23
24 .include <bsd.port.options.mk>
25
26 .if ${PORT_OPTIONS:MEXAMPLES}
27 PLIST_SUB+=     EXAMPLES=""
28 .else
29 PLIST_SUB+=     EXAMPLES="@comment "
30 .endif
31
32 post-patch:
33         @${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
34                 ${WRKSRC}/Makefile
35
36 do-install:
37         ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
38 post-install:
39 .if ${PORT_OPTIONS:MEXAMPLES}
40         ${MKDIR} ${EXAMPLESDIR}
41         cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
42 .endif
43
44 .include <bsd.port.mk>