NetBSD pkgsrc (package source) is a package management system for
Unix-like operating systems
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.
# $NetBSD: Makefile,v 1.9 2009/04/09 00:41:53 joerg Exp $
#
META_PACKAGE= # empty
.include "../../cad/wcalc/Makefile.common"
PKGREVISION= 3
COMMENT= Meta-pkg for the Wcalc Transmission Line Analysis/Synthesis Calculator
VER= ${DISTNAME:S/wcalc-//}
DEPENDS+= libwcalc-${VER}{,nb*}:../../cad/libwcalc
DEPENDS+= cgi-wcalc-${VER}{,nb*}:../../cad/cgi-wcalc
DEPENDS+= sci-wcalc-${VER}{,nb*}:../../cad/sci-wcalc
DEPENDS+= stdio-wcalc-${VER}{,nb*}:../../cad/stdio-wcalc
DEPENDS+= wcalc-docs-${VER}{,nb*}:../../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
.include "../../mk/bsd.pkg.mk"
# $NetBSD: Makefile.common,v 1.8 2007/02/22 19:26:10 wiz Exp $
#
DISTNAME= wcalc-1.0
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wcalc/}
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://wcalc.sourceforge.net/
DISTINFO_FILE= ${.CURDIR}/../../cad/wcalc/distinfo
PATCHDIR= ${.CURDIR}/../../cad/wcalc/patches
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_PKGLOCALEDIR= 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:Q}
CONFIGURE_ARGS+= --with-htmlpath=${WCALC_HTMLPATH:Q}
CONFIGURE_ARGS+= --with-cgibin=${PREFIX}/${WCALC_CGIDIR:Q}
CONFIGURE_ARGS+= --with-cgipath=${WCALC_CGIPATH:Q}
# make sure we can refer to these paths in the MESSAGE
MESSAGE_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR:Q}
MESSAGE_SUBST+= WCALC_CGIPATH=${WCALC_CGIPATH:Q}
MESSAGE_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR:Q}
MESSAGE_SUBST+= WCALC_HTMLPATH=${WCALC_HTMLPATH:Q}
MESSAGE_SUBST+= WCALC_DIR=${WCALC_DIR:Q}
# and the PLIST too
PLIST_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR:Q}
PLIST_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR:Q}
PLIST_SUBST+= WCALC_DIR=${WCALC_DIR:Q}
$NetBSD: distinfo,v 1.4 2010/01/28 01:11:28 joerg Exp $
SHA1 (wcalc-1.0.tar.gz) = 733a1786d2549ebb3265170c0d317c4ccf650427
RMD160 (wcalc-1.0.tar.gz) = a6db2fb8ca84cdc6ec2bed8d8dfc77439dcb89bf
Size (wcalc-1.0.tar.gz) = 1363727 bytes
SHA1 (patch-aa) = b604b7161f6f490a6be9324c05ec65d23f1a6d3a