summaryrefslogtreecommitdiff
path: root/cad/wcalc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-11-01 03:54:44 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-11-01 03:54:44 +0000
commitfe9c2fe65fc50737b80ff199def102e2a25ab8fa (patch)
tree98a510be6897ce893158eec647a13ee7e54807d3 /cad/wcalc
parenteff60cfd80ea2d4ab4466cfb271f4a0b47bfeea5 (diff)
downloadpkgsrc-fe9c2fe65fc50737b80ff199def102e2a25ab8fa.tar.gz
import wcalc-0.9
Wcalc is a transmission line analysis and synthesis tool. Several structures including air core solenoid inductors, coaxial cable, single and coupled microstrip, stripline, and metal-insulator- semiconductor microstrip are included. Wcalc can analyze the electrical parameters for a given physical description of the structure or synthesize the required dimensions to meet certain desired electrical characteristics. Wcalc provides several different frontends for accessing the numeric engine. Currently, there is a GTK based standalone graphical user interface, a common gateway interface (CGI) for web access, Scilab, Octave, and Matlab interfaces for maximum flexibility within a scientific programming environment, and a standard input/output (stdio) interface which allows a simple interface to other 3rd party tools which can communicate via a pipe. The different frontends are installed as different packages for flexibility in deployment.
Diffstat (limited to 'cad/wcalc')
-rw-r--r--cad/wcalc/DESCR19
-rw-r--r--cad/wcalc/Makefile44
-rw-r--r--cad/wcalc/Makefile.common51
-rw-r--r--cad/wcalc/PLIST1
-rw-r--r--cad/wcalc/distinfo5
5 files changed, 120 insertions, 0 deletions
diff --git a/cad/wcalc/DESCR b/cad/wcalc/DESCR
new file mode 100644
index 00000000000..557f30ac861
--- /dev/null
+++ b/cad/wcalc/DESCR
@@ -0,0 +1,19 @@
+Wcalc is a transmission line analysis and synthesis tool. Several
+structures including air core solenoid inductors, coaxial cable,
+single and coupled microstrip, stripline, and metal-insulator-
+semiconductor microstrip are included.
+
+Wcalc can analyze the electrical parameters for a given physical
+description of the structure or synthesize the required dimensions
+to meet certain desired electrical characteristics.
+
+Wcalc provides several different frontends for accessing the numeric
+engine. Currently, there is a GTK based standalone graphical
+user interface, a common gateway interface (CGI) for web access,
+Scilab, Octave, and Matlab interfaces for maximum flexibility within
+a scientific programming environment, and a standard input/output
+(stdio) interface which allows a simple interface to other 3rd
+party tools which can communicate via a pipe.
+
+The different frontends are installed as different packages for
+flexibility in deployment.
diff --git a/cad/wcalc/Makefile b/cad/wcalc/Makefile
new file mode 100644
index 00000000000..e37db4cbbae
--- /dev/null
+++ b/cad/wcalc/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/01 03:54:45 dmcmahill Exp $
+#
+
+.include "../../cad/wcalc/Makefile.common"
+
+COMMENT= Meta-pkg for the Wcalc Transmission Line Analysis/Synthesis Calculator
+
+VER= ${DISTNAME:S/wcalc-//}
+
+DEPENDS+= libwcalc-${VER}*:../../cad/libwcalc
+DEPENDS+= cgi-wcalc-${VER}*:../../cad/cgi-wcalc
+DEPENDS+= sci-wcalc-${VER}*:../../cad/sci-wcalc
+DEPENDS+= stdio-wcalc-${VER}*:../../cad/stdio-wcalc
+DEPENDS+= wcalc-docs-${VER}*:../../cad/wcalc-docs
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.wcalc
+PKG_SUPPORTED_OPTIONS= mex wcalc-gtk1
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmex-gtk1)
+DEPENDS+= gtk1-wcalc-${VER}*:../../cad/gtk1-wcalc
+.else
+DEPENDS+= gtk2-wcalc-${VER}*:../../cad/gtk2-wcalc
+.endif
+
+.if !empty(PKG_OPTIONS:Mmex)
+# mex-wcalc needs a matlab installation. In addition, mex-wcalc
+# will not currently build correctly if you are using a
+# non-native matlab (i.e. linux or solaris matlab on NetBSD)
+ONLY_FOR_PLATFORM= Linux-*-i386 SunOS-*-sparc*
+DEPENDS+= mex-wcalc-${VER}*:../../cad/mex-wcalc
+.endif
+
+EXTRACT_ONLY= # defined
+NO_CHECKSUM= # defined
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+NO_MTREE= # defined
+
+do-install: # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/wcalc/Makefile.common b/cad/wcalc/Makefile.common
new file mode 100644
index 00000000000..42ce8ebe84c
--- /dev/null
+++ b/cad/wcalc/Makefile.common
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2005/11/01 03:54:44 dmcmahill Exp $
+#
+
+DISTNAME= wcalc-0.9
+CATEGORIES= cad
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wcalc/}
+
+MAINTAINER= dmcmahill@NetBSD.org
+HOMEPAGE= http://wcalc.sourceforge.net/
+
+DISTINFO_FILE= ${.CURDIR}/../../cad/wcalc/distinfo
+
+GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+
+# uses vpath and a GNU make pattern rule
+USE_TOOLS+= gmake pkg-config
+
+# subdirectory used by wcalc for headers, libexec stuff, etc.
+WCALC_DIR= ${DISTNAME}
+
+# where the HTML pages reside:
+WCALC_HTMLDIR?= share/${WCALC_DIR}/htdocs
+
+# URI for the static HTML content
+WCALC_HTMLPATH?= /wcalc/
+
+# where the CGI programs reside
+WCALC_CGIDIR?= libexec/cgi-bin
+
+# URI for the CGI programs
+WCALC_CGIPATH?= /cgi-wcalc/
+
+# setup the directories and URI path
+CONFIGURE_ARGS+= --with-htmldir=${PREFIX}/${WCALC_HTMLDIR}
+CONFIGURE_ARGS+= --with-htmlpath=${WCALC_HTMLPATH}
+CONFIGURE_ARGS+= --with-cgibin=${PREFIX}/${WCALC_CGIDIR}
+CONFIGURE_ARGS+= --with-cgipath=${WCALC_CGIPATH}
+
+# make sure we can refer to these paths in the MESSAGE
+MESSAGE_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR}
+MESSAGE_SUBST+= WCALC_CGIPATH=${WCALC_CGIPATH}
+MESSAGE_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR}
+MESSAGE_SUBST+= WCALC_HTMLPATH=${WCALC_HTMLPATH}
+MESSAGE_SUBST+= WCALC_DIR=${WCALC_DIR}
+
+# and the PLIST too
+PLIST_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR}
+PLIST_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR}
+PLIST_SUBST+= WCALC_DIR=${WCALC_DIR}
+
diff --git a/cad/wcalc/PLIST b/cad/wcalc/PLIST
new file mode 100644
index 00000000000..eee1b55adee
--- /dev/null
+++ b/cad/wcalc/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/01 03:54:45 dmcmahill Exp $
diff --git a/cad/wcalc/distinfo b/cad/wcalc/distinfo
new file mode 100644
index 00000000000..96e7cdd73da
--- /dev/null
+++ b/cad/wcalc/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/01 03:54:45 dmcmahill Exp $
+
+SHA1 (wcalc-0.9.tar.gz) = d59d03a8b1e1eceaae032ab755f0ee9ca30d0b95
+RMD160 (wcalc-0.9.tar.gz) = cccbbac6f4eca55a2a695d73da62cc4535e47edf
+Size (wcalc-0.9.tar.gz) = 1341805 bytes