aboutsummaryrefslogtreecommitdiffstats
path: root/cad/gspiceui
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-08-02 04:22:11 +0800
committeritetcu <itetcu@FreeBSD.org>2006-08-02 04:22:11 +0800
commit8326069b6fdc44983719fba70cc493601a3d410c (patch)
treeb00de8a4f0bd33f0e1677a63e856b7d1739b73a7 /cad/gspiceui
parentccf506d55875440c4818e341516bf0cca20c8433 (diff)
downloadfreebsd-ports-gnome-8326069b6fdc44983719fba70cc493601a3d410c.tar.gz
freebsd-ports-gnome-8326069b6fdc44983719fba70cc493601a3d410c.tar.zst
freebsd-ports-gnome-8326069b6fdc44983719fba70cc493601a3d410c.zip
This port provides a GUI for two freely available SPICE electronic circuit
simulation engines: GNU-Cap and Ng-Spice. Current features: Import gschem schematic files using gentlist. Load and parse circuit description (net list) files. Provides a GUI interface for GNU-Cap OP, DC, AC and Transient analyses and generates appropriate simulator commands based on user input. Provides a GUI interface for Ng-Spice DC, AC and Transient analyses and generates appropriate simulator commands based on user input. The raw output may be viewed for any processes initiated by gspiceui. Formatting of simulator output so that it may be plotted using gwave. WWW: http://www.geda.seul.org/tools/gspiceui/index.html PR: ports/99357 Submitted by: Stanislav Sedov <ssedov at mbsd.msk.ru>
Diffstat (limited to 'cad/gspiceui')
-rw-r--r--cad/gspiceui/Makefile65
-rw-r--r--cad/gspiceui/distinfo3
-rw-r--r--cad/gspiceui/files/patch-src_Makefile24
-rw-r--r--cad/gspiceui/pkg-descr16
-rw-r--r--cad/gspiceui/pkg-plist36
5 files changed, 144 insertions, 0 deletions
diff --git a/cad/gspiceui/Makefile b/cad/gspiceui/Makefile
new file mode 100644
index 000000000000..f2fa31185618
--- /dev/null
+++ b/cad/gspiceui/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: gspiceui
+# Date created: 30 April 2006
+# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gspiceui
+PORTVERSION= 0.8.55
+CATEGORIES= cad
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+DISTNAME= ${PORTNAME}-v${PORTVERSION}
+
+MAINTAINER= ssedov@mbsd.msk.ru
+COMMENT= GUI frontend for gnucap/ng-spice circuit simulators
+
+LIB_DEPENDS= wx_gtk2u_core-2.6:${PORTSDIR}/x11-toolkits/wxgtk26-unicode
+RUN_DEPENDS= gwave:${PORTSDIR}/cad/gwave
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+
+OPTIONS= NGSPICE "Use ng-spice as backend" on \
+ GNUCAP "Use gnucap as backend" off \
+ MODELS "Install example models" on
+
+PORTDOCS= *
+
+# XXX: exists untill it will be committed to bsd.port.mk
+COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
+ 2>&1) && \
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
+ ${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
+ ${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_NGSPICE)
+RUN_DEPENDS+= ngspice:${PORTSDIR}/cad/ngspice_rework
+.endif
+
+.if defined(WITH_GNUCAP)
+RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @(cd ${WRKSRC}/html && ${COPYTREE_SHARE} \* ${DOCSDIR} \
+ "! -name Makefile")
+.endif
+.if !defined(WITHOUT_MODELS)
+ @${MKDIR} ${DATADIR}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} sch ${DATADIR} \
+ "! -name Makefile" && \
+ ${COPYTREE_SHARE} lib ${DATADIR} "! -name Makefile")
+PLIST_SUB+= MODELS=""
+.else
+PLIST_SUB+= MODELS="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/cad/gspiceui/distinfo b/cad/gspiceui/distinfo
new file mode 100644
index 000000000000..94c776ebc850
--- /dev/null
+++ b/cad/gspiceui/distinfo
@@ -0,0 +1,3 @@
+MD5 (gspiceui-v0.8.55.tar.gz) = 7a52d50456d21f259281350d88a926d3
+SHA256 (gspiceui-v0.8.55.tar.gz) = 31d39cfafc9af48139cb29b303eca76a082f1dd25cbb91b04c30a292d3effb48
+SIZE (gspiceui-v0.8.55.tar.gz) = 419458
diff --git a/cad/gspiceui/files/patch-src_Makefile b/cad/gspiceui/files/patch-src_Makefile
new file mode 100644
index 000000000000..178f913ce0d8
--- /dev/null
+++ b/cad/gspiceui/files/patch-src_Makefile
@@ -0,0 +1,24 @@
+--- src/Makefile.orig Wed Jan 11 23:09:15 2006
++++ src/Makefile Sat Apr 29 19:29:09 2006
+@@ -23,7 +23,7 @@
+ PROG = gspiceui
+
+ # wxWidgets configuration utility
+-WXCFG = wx-config
++WXCFG = wxgtk2u-2.6-config
+
+ # Directories
+ #ROOT := $(shell cd .. ; pwd)
+@@ -45,10 +45,10 @@
+
+ # Includes
+ INCLUDES =-I/usr/include -I/usr/X11R6/include -I. -Ibase -Imain -Inetlist \
+--Ignucap -Ingspice -Iprocess -Iutility
++-Ignucap -Ingspice -Iprocess -Iutility $(shell wxgtk2u-2.6-config --cxxflags)
+
+ # Libraries
+-LIB := $(shell wx-config --libs)
++LIB := $(shell wxgtk2u-2.6-config --libs)
+
+ # Sources & headers
+ SRCS = *.cpp
diff --git a/cad/gspiceui/pkg-descr b/cad/gspiceui/pkg-descr
new file mode 100644
index 000000000000..a30f2da897e4
--- /dev/null
+++ b/cad/gspiceui/pkg-descr
@@ -0,0 +1,16 @@
+This port provides a GUI for two freely available SPICE electronic circuit
+simulation engines: GNU-Cap and Ng-Spice.
+
+Current features:
+ Import gschem schematic files using gentlist.
+ Load and parse circuit description (net list) files.
+ Provides a GUI interface for GNU-Cap OP, DC, AC and Transient
+ analyses and generates appropriate simulator commands
+ based on user input.
+ Provides a GUI interface for Ng-Spice DC, AC and Transient
+ analyses and generates appropriate simulator commands
+ based on user input.
+ The raw output may be viewed for any processes initiated by gspiceui.
+ Formatting of simulator output so that it may be plotted using gwave.
+
+WWW: http://www.geda.seul.org/tools/gspiceui/index.html
diff --git a/cad/gspiceui/pkg-plist b/cad/gspiceui/pkg-plist
new file mode 100644
index 000000000000..3383b9eb8d81
--- /dev/null
+++ b/cad/gspiceui/pkg-plist
@@ -0,0 +1,36 @@
+bin/gspiceui
+%%MODELS%%%%DATADIR%%/lib/diode/1n914.mod
+%%MODELS%%%%DATADIR%%/lib/diode/led.mod
+%%MODELS%%%%DATADIR%%/lib/npn/bc548.mod
+%%MODELS%%%%DATADIR%%/lib/npn/bc550.mod
+%%MODELS%%%%DATADIR%%/lib/npn/tip41.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/lm324.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/lm358.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/lm741.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/lmx358.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/tl071.mod
+%%MODELS%%%%DATADIR%%/lib/opamp/ua741.mod
+%%MODELS%%%%DATADIR%%/lib/pnp/2n5401.mod
+%%MODELS%%%%DATADIR%%/lib/pnp/bc558.mod
+%%MODELS%%%%DATADIR%%/lib/pnp/tip42.mod
+%%MODELS%%%%DATADIR%%/lib/reg/lm317.mod
+%%MODELS%%%%DATADIR%%/sch/amp-tce-1.sch
+%%MODELS%%%%DATADIR%%/sch/astable-npn.sch
+%%MODELS%%%%DATADIR%%/sch/astable-pnp.sch
+%%MODELS%%%%DATADIR%%/sch/filter-lp-1.sch
+%%MODELS%%%%DATADIR%%/sch/filter-lp-2.sch
+%%MODELS%%%%DATADIR%%/sch/gyrator.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-lm358-1.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-lm358-2.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-lm741.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-lmx358-1.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-lmx358-2.sch
+%%MODELS%%%%DATADIR%%/sch/opamp-ua741.sch
+%%MODELS%%@dirrm %%DATADIR%%/sch
+%%MODELS%%@dirrm %%DATADIR%%/lib/diode
+%%MODELS%%@dirrm %%DATADIR%%/lib/npn
+%%MODELS%%@dirrm %%DATADIR%%/lib/opamp
+%%MODELS%%@dirrm %%DATADIR%%/lib/pnp
+%%MODELS%%@dirrm %%DATADIR%%/lib/reg
+%%MODELS%%@dirrm %%DATADIR%%/lib
+%%MODELS%%@dirrm %%DATADIR%%