aboutsummaryrefslogtreecommitdiffstats
path: root/lang/bf2c/Makefile
blob: b34752785ef32ec789ce468960ab0c369a274809 (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
# New ports collection makefile for:    bf2c
# Date created:        4 Sep 2003
# Whom:                r.c.ladan@student.tue.nl
#
# $FreeBSD$
#

PORTNAME=   bf2c
PORTVERSION=    1.2.3
CATEGORIES= lang
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=bf2c

MAINTAINER= r.c.ladan@gmail.com
COMMENT=    Optimizing BrainF*ck to C compiler

USE_GMAKE=yes

post-patch:
    @${REINPLACE_CMD} -e 's,^CC=.*$$,CC=${CXX} ${CXXFLAGS:C/-Werror//g},' \
                      ${WRKSRC}/Makefile

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

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>