# $Id: Portfile 76762 2011-03-08 09:26:12Z jmr@macports.org $

PortSystem          1.0

name                muparser
version             1.32
categories          math devel
platforms           darwin
maintainers         mww
description         extensible high performance math parser library in C++
long_description    muParser is an extensible high performance math parser \
                    library written in C++. It is based on transforming an \
                    expression into a bytecode and precalculating constant \
                    parts of it.

homepage            http://muparser.sourceforge.net/
master_sites        sourceforge
distname            ${name}_v132
checksums           md5     9eda5ba73cae7dce09daa6bef6b7c49b \
                    sha1    ff9e7be4408cafbbd6d9256095eaf8ebb12611b1 \
                    rmd160  a8c03084db33f0a62b9d927799134fc35c7a4d87

livecheck.regex     "<title>muparser Version (.*) released.*</title>"

patchfiles          Makefile.in.diff
post-configure {
    if {[variant_isset universal]} {
        reinplace "s/@ARCHFLAGS@/${configure.universal_cxxflags}/" \
            ${worksrcpath}/Makefile
    } else {
        reinplace "s/@ARCHFLAGS@/${configure.cxx_archflags}/" \
            ${worksrcpath}/Makefile
    }
}

use_parallel_build  no
