# $Id: Portfile 50816 2009-05-10 12:33:05Z gwright@macports.org $

PortSystem 1.0

name		ng-spice
version		19
revision	1
categories	science cad
maintainers	nomaintainer
platforms       darwin
description	Circuit simulator based on Spice 3f5
long_description \
	Ngspice is a mixed-level/mixed-signal circuit simulator. Its \
	code is based on three open source software packages: Spice3f5, \
	Cider1b1 and Xspice. Ngspice is part of gEDA project, a full \
	GPL'd suite of Electronic Design Automation tools. \
	Note: this port does not compile the Cider and Xspice modules.

homepage	http://ngspice.sourceforge.net/
master_sites	sourceforge:ngspice

patchfiles	patch-inpmkmod.c.diff	\
		patch-pp_lst.c.diff

distname	${name}-rework-${version}
checksums	md5     52d01ef53332b8a0e58bf4f7ac7f2c42 \
		sha1    c0036296df9b878639e8d6e38b6a991b30e7cf79 \
		rmd160  b91659cae67c99f3dde6c63e1ebdd45c29863f0a

worksrcdir	ngspice-${version}

configure.args	--mandir=${prefix}/share/man \
		--infodir=${prefix}/share/info \
		--with-editline=yes \
		--enable-x

