1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/textproc/confetti/Makefile
Pawel Pekala b8fd1bfb65 confetti -- configuration file parser generator
WWW: https://github.com/mailru/confetti

PR:		ports/170336
Submitted by:	Gvozdikov Veniamin <g.veniamin@googlemail.com>
Feature safe:	yes
2012-11-01 10:34:25 +00:00

45 lines
943 B
Makefile

# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$
PORTNAME= confetti
PORTVERSION= 0.0.${DATE}
CATEGORIES= textproc
MASTER_SITES= http://fbsd.zlonet.ru/distfiles/
MAINTAINER= g.veniamin@googlemail.com
COMMENT= Configuration file parser generator
BUILD_DEPENDS= flex:${PORTSDIR}/textproc/flex
USE_BZIP2= yes
USE_GMAKE= yes
USE_BISON= build
USE_PERL5= yes
DATE= 20120801
MAKE_ARGS+= FLEX=${LOCALBASE}/bin/flex
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= EXAMPLES
.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>