aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/confetti/Makefile
blob: 3703e6ab49134f06443ececded072a60c4abf6ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   confetti
PORTVERSION=    0.0.${DATE}
CATEGORIES= textproc
MASTER_SITES=   http://fbsd.zlonet.ru/distfiles/

MAINTAINER= vg@FreeBSD.org
COMMENT=    Configuration file parser generator

BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex

USE_BZIP2=  yes
USE_GMAKE=  yes
USES=       bison perl5
DATE=       20120801
MAKE_ARGS+= FLEX=${LOCALBASE}/bin/flex
MAKE_JOBS_UNSAFE=yes

OPTIONS_DEFINE= EXAMPLES

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXAMPLES}
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    ${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>