aboutsummaryrefslogtreecommitdiffstats
path: root/lang/picoc/Makefile
blob: 9c3076e3682b2bde966444714fd3088d60337c03 (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
# New ports collection makefile for:    picoc
# Date created:     2010-09-03
# Whom:         Bapt <bapt@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   picoc
PORTVERSION=    2.1
CATEGORIES= lang devel
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= bapt@FreeBSD.org
COMMENT=    Very small C interpreter for scripting

LICENSE=    BSD

USE_BZIP2=  yes
USE_GMAKE=  yes

PLIST_FILES=    bin/picoc

WRKSRC=     ${WRKDIR}/${PORTNAME}

post-patch:
    @${REINPLACE_CMD} -e "/-include/d" \
        -e "s/^CFLAGS=.*/CFLAGS=${CFLAGS} -DUNIX_HOST/" \
        -e "s/gcc/${CC}/" \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/picoc ${PREFIX}/bin/picoc

.include <bsd.port.mk>