commit b4586ae5b971ba00f618e67b400c0fe293addb09 Author: Kevin Zheng Date: Wed Feb 1 17:58:40 2017 -0800 cad/ngspice: Add option to build as shared library diff --git a/cad/ngspice_rework/Makefile b/cad/ngspice_rework/Makefile index e084d5ff0d30..1386471aa00a 100644 --- a/cad/ngspice_rework/Makefile +++ b/cad/ngspice_rework/Makefile @@ -3,7 +3,7 @@ PORTNAME= ngspice_rework PORTVERSION= 26 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MASTER_SITES= SF/ngspice/ng-spice-rework/${PORTVERSION} DISTNAME= ngspice-${PORTVERSION} @@ -18,15 +18,20 @@ BROKEN_aarch64= Fails to link: missing sbrk GNU_CONFIGURE= yes USES= gmake libtool readline -CONFIGURE_ARGS= --with-readline=yes \ - --enable-xspice +CONFIGURE_ARGS= --enable-cider --enable-xspice --with-readline=yes -OPTIONS_DEFINE= DEBUG X11 -OPTIONS_DEFAULT= X11 +OPTIONS_DEFINE= DEBUG +OPTIONS_SINGLE= INTERFACE +OPTIONS_SINGLE_INTERFACE= SHLIB X11 +OPTIONS_DEFAULT= X11 +OPTIONS_SUB= yes + +DEBUG_CONFIGURE_ENABLE= debug + +SHLIB_CONFIGURE_WITH= ngshared +SHLIB_DESC= Build as a shared library X11_USE= XORG=ice,sm,x11,xaw,xext,xmu,xt X11_CONFIGURE_WITH= x -DEBUG_CONFIGURE_ENABLE= debug - .include diff --git a/cad/ngspice_rework/pkg-descr b/cad/ngspice_rework/pkg-descr index 514d51691ff7..a04f765d9330 100644 --- a/cad/ngspice_rework/pkg-descr +++ b/cad/ngspice_rework/pkg-descr @@ -1,9 +1,7 @@ -Ngspice is the name of a project and of a program in the project. Spice is -the famous circuit simulator developed by the CAD Group of the University of -California at Berkeley (UCB). The NG prefix has a lot of meanings: Next -Generation, New Good, etc. Choose or invent the one you prefer. The ngspice -project aims to improve the capabilities of the Spice3 circuit simulator. The -heart of the project is the ngspice program, a circuit simulator derived from -spice3f5. +Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based +on three open source software packages: Spice3f5, Cider1b1 and Xspice. It is +the open source successor of these venerable packages. Many, many +modifications, bug fixes and improvements have been added to the code, +yielding a stable and reliable simulator. WWW: http://ngspice.sourceforge.net/ diff --git a/cad/ngspice_rework/pkg-plist b/cad/ngspice_rework/pkg-plist index 130cb5369730..dc5524f5c76b 100644 --- a/cad/ngspice_rework/pkg-plist +++ b/cad/ngspice_rework/pkg-plist @@ -1,10 +1,13 @@ bin/cmpp -bin/ngmakeidx -bin/ngmultidec -bin/ngnutmeg -bin/ngproc2mod -bin/ngsconvert -bin/ngspice +%%X11%%bin/ngmakeidx +%%X11%%bin/ngmultidec +%%X11%%bin/ngnutmeg +%%X11%%bin/ngproc2mod +%%X11%%bin/ngsconvert +%%X11%%bin/ngspice +%%SHLIB%%lib/libngspice.so +%%SHLIB%%lib/libngspice.so.0 +%%SHLIB%%lib/libngspice.so.0.0.0 lib/ngspice/analog.cm lib/ngspice/digital.cm lib/ngspice/spice2poly.cm @@ -15,8 +18,8 @@ man/man1/ngnutmeg.1.gz man/man1/ngsconvert.1.gz man/man1/ngspice.1.gz share/ngspice/dlmain.c -share/ngspice/helpdir/ngspice.idx -share/ngspice/helpdir/ngspice.txt +%%X11%%share/ngspice/helpdir/ngspice.idx +%%X11%%share/ngspice/helpdir/ngspice.txt share/ngspice/include/ngspice/1-f-code.h share/ngspice/include/ngspice/FastNorm3.h share/ngspice/include/ngspice/acdefs.h @@ -136,6 +139,9 @@ share/ngspice/include/ngspice/typedefs.h share/ngspice/include/ngspice/wallace.h share/ngspice/include/ngspice/wordlist.h share/ngspice/include/ngspice/wstdio.h +share/ngspice/scripts/ciderinit +share/ngspice/scripts/devaxis +share/ngspice/scripts/devload share/ngspice/scripts/setplot share/ngspice/scripts/spectrum share/ngspice/scripts/spinit