Import devel/py-setuptools34 version 2.0.1
[dports.git] / lang / cparser / Makefile
1 # Created by: Christoph Mallon <christoph.mallon@gmx.de>
2 # $FreeBSD$
3
4 PORTNAME=       cparser
5 PORTVERSION=    0.9.14
6 CATEGORIES=     lang devel
7 MASTER_SITES=   SF
8
9 MAINTAINER=     sperber@FreeBSD.org
10 COMMENT=        C99 compiler using libFIRM as backend
11
12 LICENSE=        GPLv2
13
14 LIB_DEPENDS=    libfirm.so:${PORTSDIR}/devel/libfirm
15
16 USES=           pkgconfig gmake tar:bzip2
17
18 PLIST_FILES=    bin/cparser \
19                 man/man1/cparser.1.gz
20
21 BUILDDIR=       optimize
22
23 OPTIONS_DEFINE= DEBUG
24
25 .include <bsd.port.options.mk>
26
27 .if ${PORT_OPTIONS:MDEBUG}
28 BUILDDIR=       debug
29 .else
30 post-patch:
31         @${REINPLACE_CMD} -e 's/^variant  ?= debug/variant  ?= optimize/' \
32                 ${WRKSRC}/Makefile
33 .endif
34
35 do-install:
36         ${INSTALL_PROGRAM} ${WRKSRC}/build/${BUILDDIR}/cparser ${STAGEDIR}${PREFIX}/bin
37         ${INSTALL_MAN} ${WRKSRC}/cparser.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
38
39 .include <bsd.port.mk>