# $Id: Portfile 60527 2009-11-14 19:10:47Z snc@macports.org $

PortSystem 1.0
name             bf2c
version          1.2.3
categories       lang
maintainers      nomaintainer
description      optimizing BrainF*ck to C compiler
long_description \
    BrainF*ck is a minimalistic but Turing complete programming language \
    devised by Urban Mueller. It is oriented around a tape, a read/write \
    head, an input device and an output device. This program converts \
    Brainf*ck source into C, while attempting to optimize.
homepage         http://bf2c.sourceforge.net/
platforms        darwin
master_sites     sourceforge
checksums        md5 72cabfb53dfab3f83de7ea901dfbb411

patch {
    reinplace s|-Werror||g ${worksrcpath}/Makefile
}

use_configure    no

destroot {
    xinstall -m 555 ${worksrcpath}/bf2c ${destroot}${prefix}/bin
}
