160.8. ngspice-47
SPICE circuit simulation from a prompt — transient, AC, DC, noise, Monte Carlo
47-2 · BSD-3-Clause AND GPL-2.0-or-later · 19.4 SBU · 16.4 MiB, 36 files · 41_system, 437 of 1047 · ports/core/eda/ngspice
Homepage: https://ngspice.sourceforge.io/
Why it is in KDOS. The comment above ngspice and iverilog in script/phases/41_system/packages.d/eda.txt:
SPICE, Verilog simulation and the file formats a bootloader argues about. ngspice is the analogue half of a bench that already synthesises and places.
Depends on: readline, ncurses, bison, flex, fftw, libsndfile, libsamplerate.
Required by (2): kicad, qucs-s.
Sources: ngspice-47.tar.gz (12.5 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install ngspice'
build.sh:
export CFLAGS="$CFLAGS -g0" CXXFLAGS="$CXXFLAGS -g0"
_conf="--prefix=/usr --libdir=/usr/lib --disable-static --without-x
--enable-xspice --enable-cider --enable-openmp --disable-debug
--with-fftw3=yes"
mkdir build-shared build-program
_cm=(-C src/xspice/icm LDFLAGS="-shared $LDFLAGS")
(cd build-shared && ../configure $_conf --with-ngshared && make && rm -f src/xspice/icm/*/*.cm &&
make "${_cm[@]}" && make DESTDIR=$PKG install)
(cd build-program && ../configure $_conf --with-readline=yes && make && rm -f src/xspice/icm/*/*.cm &&
make "${_cm[@]}" && make DESTDIR=$PKG install)
Programs: ngspice.
Libraries: libngspice.so.
Directories: /usr/include/ngspice, /usr/lib/ngspice, /usr/share/licenses/ngspice, /usr/share/ngspice.