From 8baadb1ad44461591f078c14144cc87de7a74b3c Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Tue, 1 Nov 2005 03:55:38 +0000 Subject: import mex-wcalc-0.9 This is the Matlab frontend for the Wcalc transmission line analysis/synthesis calculator. You will need a working matlab installed on your system. In addition, currently only a native (non-emulation) matlab is supported. --- cad/mex-wcalc/DESCR | 4 ++++ cad/mex-wcalc/MESSAGE | 9 +++++++++ cad/mex-wcalc/Makefile | 36 ++++++++++++++++++++++++++++++++++++ cad/mex-wcalc/PLIST | 27 +++++++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 cad/mex-wcalc/DESCR create mode 100644 cad/mex-wcalc/MESSAGE create mode 100644 cad/mex-wcalc/Makefile create mode 100644 cad/mex-wcalc/PLIST (limited to 'cad') diff --git a/cad/mex-wcalc/DESCR b/cad/mex-wcalc/DESCR new file mode 100644 index 00000000000..f0876ebf0aa --- /dev/null +++ b/cad/mex-wcalc/DESCR @@ -0,0 +1,4 @@ +This is the Matlab frontend for the Wcalc transmission +line analysis/synthesis calculator. You will need a working +matlab installed on your system. In addition, currently +only a native (non-emulation) matlab is supported. diff --git a/cad/mex-wcalc/MESSAGE b/cad/mex-wcalc/MESSAGE new file mode 100644 index 00000000000..b39a1242012 --- /dev/null +++ b/cad/mex-wcalc/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/11/01 03:55:38 dmcmahill Exp $ + +To use, you will need to add something like the following to your +matlab/startup.m file in your home directory: + + addpath('${PREFIX}/libexec/matlab/${WCALC_DIR}'); + +=========================================================================== diff --git a/cad/mex-wcalc/Makefile b/cad/mex-wcalc/Makefile new file mode 100644 index 00000000000..1fc04794750 --- /dev/null +++ b/cad/mex-wcalc/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/01 03:55:38 dmcmahill Exp $ +# + +.include "../../cad/wcalc/Makefile.common" +PKGNAME= mex-${DISTNAME} + +COMMENT= Matlab Based Transmission Line Analysis/Synthesis Calculator + +# Only enable the matlab frontend +CONFIGURE_ARGS+= --disable-cgi +CONFIGURE_ARGS+= --disable-gtk +CONFIGURE_ARGS+= --disable-htdocs +CONFIGURE_ARGS+= --disable-libwcalc +CONFIGURE_ARGS+= --disable-stdio +CONFIGURE_ARGS+= --with-matlab +CONFIGURE_ARGS+= --without-octave +CONFIGURE_ARGS+= --without-scilab + +# This depends on an installation of Matlab which pkgsrc does +# not have. Should find a sane way to deal with this. It is +# not clear if linux/solaris matlab users care to use pkgsrc +# to manage its installation or if it will always be installed +# outside of pkgsrc. + +# 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). To get it to work, you need to set up +# a cross-tool chain, build a libwcalc targeted to the same +# system as the matlab installation, and modify the mexopts.sh +# file in ${WRKSRC}/mex-wcalc to use this cross tool chain. +# Basically what it comes down to is you need to compile shared +# modules for the same os as the matlab binary. +# +ONLY_FOR_PLATFORM= Linux-*-i386 SunOS-*-sparc* + +.include "../../mk/bsd.pkg.mk" diff --git a/cad/mex-wcalc/PLIST b/cad/mex-wcalc/PLIST new file mode 100644 index 00000000000..a1c16bca2f7 --- /dev/null +++ b/cad/mex-wcalc/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/01 03:55:38 dmcmahill Exp $ +libexec/matlab/${WCALC_DIR}/air_coil_calc.la +libexec/matlab/${WCALC_DIR}/air_coil_calc.m +libexec/matlab/${WCALC_DIR}/air_coil_syn.la +libexec/matlab/${WCALC_DIR}/air_coil_syn.m +libexec/matlab/${WCALC_DIR}/coax_calc.la +libexec/matlab/${WCALC_DIR}/coax_calc.m +libexec/matlab/${WCALC_DIR}/coax_syn.la +libexec/matlab/${WCALC_DIR}/coax_syn.m +libexec/matlab/${WCALC_DIR}/coupled_microstrip_calc.la +libexec/matlab/${WCALC_DIR}/coupled_microstrip_calc.m +libexec/matlab/${WCALC_DIR}/coupled_microstrip_syn.la +libexec/matlab/${WCALC_DIR}/coupled_microstrip_syn.m +libexec/matlab/${WCALC_DIR}/ic_microstrip_calc.la +libexec/matlab/${WCALC_DIR}/ic_microstrip_calc.m +libexec/matlab/${WCALC_DIR}/ic_microstrip_syn.la +libexec/matlab/${WCALC_DIR}/ic_microstrip_syn.m +libexec/matlab/${WCALC_DIR}/microstrip_calc.la +libexec/matlab/${WCALC_DIR}/microstrip_calc.m +libexec/matlab/${WCALC_DIR}/microstrip_syn.la +libexec/matlab/${WCALC_DIR}/microstrip_syn.m +libexec/matlab/${WCALC_DIR}/stripline_calc.la +libexec/matlab/${WCALC_DIR}/stripline_calc.m +libexec/matlab/${WCALC_DIR}/stripline_syn.la +libexec/matlab/${WCALC_DIR}/stripline_syn.m +@dirrm libexec/matlab/${WCALC_DIR} +@dirrm libexec/matlab -- cgit v1.2.3