aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cparser/Makefile
blob: 04c2f95b06a8156d1f4d6398c68381c86ecaaad1 (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: Christoph Mallon <christoph.mallon@gmx.de>
# $FreeBSD$

PORTNAME=   cparser
PORTVERSION=    0.9.14
CATEGORIES= lang devel
MASTER_SITES=   SF

MAINTAINER= sperber@FreeBSD.org
COMMENT=    A C99 compiler using libFIRM as backend

LICENSE=    GPLv2

LIB_DEPENDS=    firm:${PORTSDIR}/devel/libfirm

USE_BZIP2=  yes
USE_GMAKE=  yes
USES=       pkgconfig

PLIST_FILES=    bin/cparser

MAN1=   cparser.1

BUILDDIR=   optimize
INSTALL_CMD=    ${INSTALL_PROGRAM}

OPTIONS_DEFINE= DEBUG

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDEBUG}
BUILDDIR=   debug
INSTALL_CMD=    ${INSTALL_PROGRAM:S,-s,,}
.else
post-patch:
    @${REINPLACE_CMD} -e 's/^variant  ?= debug/variant  ?= optimize/' \
        ${WRKSRC}/Makefile
.endif

do-install:
    @${INSTALL_CMD} ${WRKSRC}/build/${BUILDDIR}/cparser ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/cparser.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.post.mk>