diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-08-01 20:22:11 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-08-01 20:22:11 +0000 |
commit | 78fa4aaae19fe63772632aa060d4badcd5111a9d (patch) | |
tree | b813c5f32083f9afb50191841508d58c2bbb7bac /cad | |
parent | c74a8d91a1dbe014c2f1fefacfd5cb4b2130f355 (diff) | |
download | ports-78fa4aaae19fe63772632aa060d4badcd5111a9d.tar.gz ports-78fa4aaae19fe63772632aa060d4badcd5111a9d.zip |
Notes
Diffstat (limited to 'cad')
-rw-r--r-- | cad/Makefile | 1 | ||||
-rw-r--r-- | cad/gspiceui/Makefile | 65 | ||||
-rw-r--r-- | cad/gspiceui/distinfo | 3 | ||||
-rw-r--r-- | cad/gspiceui/files/patch-src_Makefile | 24 | ||||
-rw-r--r-- | cad/gspiceui/pkg-descr | 16 | ||||
-rw-r--r-- | cad/gspiceui/pkg-plist | 36 |
6 files changed, 145 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile index 1eda6d72c1f8..6620f28fc91e 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -34,6 +34,7 @@ SUBDIR += gmsh SUBDIR += gnucap SUBDIR += gplcver + SUBDIR += gspiceui SUBDIR += gtkwave SUBDIR += gwave SUBDIR += impact 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%% |