# $Id: Portfile,v 1.5 2005/02/12 07:21:42 toby Exp $

PortSystem       1.0
name             gnucap
version          2005-01-27
categories       science
maintainers      toby@opendarwin.org
description      GNU Circuit Analysis Package
long_description \
    Gnucap is the Gnu Circuit Analysis Package. The primary component is a \
    general purpose circuit simulator. It performs nonlinear dc and \
    transient analyses, fourier analysis, and ac analysis. It is fully \
    interactive and command driven. It can also be run in batch mode or as \
    a server. Spice compatible models for the MOSFET (level 1-7), BJT, and \
    diode are included in this release.
homepage         http://www.geda.seul.org/tools/gnucap/
platforms        darwin
master_sites     http://www.geda.seul.org/dist/ \
                 ftp://ftp.geda.seul.org/pub/geda/dist/
checksums        md5 d5b9f00622b85bab90994e25195bba1e

patchfiles       patch-Make2.g++

#configure.env    CCFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"

destroot {
    xinstall -m 555 ${worksrcpath}/src/O/gnucap \
        ${destroot}${prefix}/bin
    xinstall -m 555 ${worksrcpath}/ibis/O/gnucap-ibis \
        ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/doc/gnucap.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 444 ${worksrcpath}/doc/gnucap-ibis.1 \
        ${destroot}${prefix}/share/man/man1
}
