# $Id: Portfile 84499 2011-09-27 01:34:12Z ryandesign@macports.org $

PortSystem 1.0

name nesc
version             1.3.3
categories lang wsn
maintainers musaloiu.com:razvan
license             GPL-2+

description Compiler for the nesC language.
homepage http://nescc.sourceforge.net/
platforms darwin

long_description nesC is a compiler for a new language (based on C) designed \
        to support the TinyOS project, an operating system for wireless \
        sensor network platforms.

master_sites        sourceforge:project/nescc/nescc/v${version}

checksums           rmd160  6fe7a65ee60fb41e735020f624b546c23e54067a \
                    sha256  72ee11d45930dcf9c219cb6cd1c23bc0d3b9756a25c4df0e597269ad0edcece0

depends_lib port:automake \
  port:autoconf

configure.args --exec-prefix=${prefix}

# gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
universal_variant   no

livecheck.type	regex
livecheck.url	http://sourceforge.net/api/file/index/project-id/56288/mtime/desc/rss
livecheck.regex	"nesc-(\\d+(?:\\.\\d+)*).tar.gz"
