PortSystem              1.0

name                    nqc
version                 3.1.r6
revision                1
categories              lang
license                 MPL-1
maintainers             nomaintainer
platforms               darwin
universal_variant       no
description             Not-Quite-C Lego RCX Compiler
long_description        ${description}

homepage                http://bricxcc.sourceforge.net/nqc/
master_sites            ${homepage}release/
extract.suffix          .tgz
extract.mkdir           yes
checksums               sha1 1de6543cc5152f6dacf375aea2974c09e5fe0ffa
patchfiles              patch-Makefile.diff patch-rcxlib-RCX_USBTowerPipe_osx.cpp.diff

configure {
    reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Makefile
}

build.env               TARGET=macosx
