# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 111938 2013-10-06 18:32:08Z rowue@macports.org $
PortSystem          1.0
name                asco
version             0.4.9
# revision            1
categories          science math
maintainers         rowue openmaintainer
platforms           darwin
distname            ASCO-${version}
description         A SPICE Circuit Optimizer
long_description    ASCO project aims to bring circuit optimization capabilities to existing \
                    SPICE simulators using a high-performance parallel differential evolution (DE)\
                    optimization algorithm. Currently out-of-the-box support for Eldo (TM), \
                    HSPICE (R), LTspice (TM), Spectre (R) and Qucs exist. 
depends_build       port:automake port:autoconf
homepage            http://asco.sourceforge.net
master_sites        sourceforge
checksums           md5     a279c9ba155e66ef8ccaf5f130fa236d \
                    sha1    1025587696f84c6959e672ad890971690c63a0a4 \
                    rmd160  c8e8225415bc34ac64ac833f4ff8d13a134ce3b0

configure.cflags-append -DUNIX -I/usr/include/malloc

pre-configure {
    system "cd ${worksrcpath}; tar xvzf ${worksrcpath}/Autotools.tar.gz"
    system "touch ${worksrcpath}/NEWS"
    system "cd ${worksrcpath}; aclocal"
    system "cd ${worksrcpath}; automake -f -c -a"
}

configure.cmd       ./autogen.sh
