FreeBSD Bugzilla – Attachment 143552 Details for
Bug 190815
New port: comms/xnec2c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shArchive of xnec2c
xnec2c.shar (text/plain), 7.91 KB, created by
Stephen Hurd
on 2014-06-09 01:30:12 UTC
(
hide
)
Description:
shArchive of xnec2c
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2014-06-09 01:30:12 UTC
Size:
7.91 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># xnec2c ># xnec2c/pkg-descr ># xnec2c/distinfo ># xnec2c/Makefile ># xnec2c/files ># xnec2c/files/clog.c ># xnec2c/files/patch-src_somnec.c ># xnec2c/files/cexp.c ># xnec2c/files/cexp.h ># xnec2c/files/patch-src_common.h ># >echo c - xnec2c >mkdir -p xnec2c > /dev/null 2>&1 >echo x - xnec2c/pkg-descr >sed 's/^X//' >xnec2c/pkg-descr << 'cfca1518f103e45dc510cf2c7f8c8632' >Xxnec2c is a GTK+ graphical interactive version of nec2c. It incorporates the >Xnec2c core which it uses for reading input files and calculating output data, >Xbut it does not need and indeed does not produce an output file by default. >XSince xnec2c incorporates the nec2c core, it has access to all internal >Xbuffers, including structure data, frequency-related data (structure currents, >Xinput impedance, gain etc) and radiation pattern data (for the far field and >Xnear field). It therefore has the ability to graphically display >Xuser-requested data directly, as the frequency loop progresses or after input >Xfrom the user. Graphs of frequency-related data and the current or charge >Xdistribution evolve as the frequency loop progresses, and radiation patterns >X(far and near field) are sequentially drawn for each frequency step. A new >Xfrequency can be entered by the user from spin buttons in the main or >Xradiation pattern windows or by clicking on the graphs of frequency-related >Xdata. New output data are then computed and displayed in text and graphical >Xform. >X >XWWW: http://www.qsl.net/5b4az/ >cfca1518f103e45dc510cf2c7f8c8632 >echo x - xnec2c/distinfo >sed 's/^X//' >xnec2c/distinfo << '728e86f591298e270b227002311d28c8' >XSHA256 (xnec2c-2.8.tar.bz2) = 988d90cea329959d05a203e40110128c3ceee27c30693d0fd585e775db4dfdeb >XSIZE (xnec2c-2.8.tar.bz2) = 919166 >728e86f591298e270b227002311d28c8 >echo x - xnec2c/Makefile >sed 's/^X//' >xnec2c/Makefile << '94897206d0d6c678ba48e11db98920ab' >X# Created by: shurd@sasktel.net >X# $FreeBSD: $ >X >XPORTNAME= xnec2c >XPORTVERSION= 2.8 >XCATEGORIES= comms hamradio >XMASTER_SITES= http://www.qsl.net/5b4az/pkg/nec2/xnec2c/ >X >XMAINTAINER= shurd@sasktel.net >XCOMMENT= Used to calculate antenna patterns useful to ham radio >X >XLICENSE= GPLv2 >X >XLIB_DEPENDS= libccm.so:${PORTSDIR}/math/ccmath >X >XGNU_CONFIGURE= yes >XUSES= tar:bzip2 pkgconfig gmake >XUSE_GNOME= gtk20 >X >XPLIST_FILES= bin/xnec2c >X >X.include <bsd.port.pre.mk> >X >Xpost-extract: >X ${CP} ${PATCHDIR}/clog.c ${WRKSRC}/src >X.if ${OSVERSION} < 900000 >X ${CP} ${PATCHDIR}/cexp.[ch] ${WRKSRC}/src >X.else >X ${TOUCH} ${WRKSRC}/src/cexp.c >X ${TOUCH} ${WRKSRC}/src/cexp.h >X.endif >X >X.include <bsd.port.post.mk> >94897206d0d6c678ba48e11db98920ab >echo c - xnec2c/files >mkdir -p xnec2c/files > /dev/null 2>&1 >echo x - xnec2c/files/clog.c >sed 's/^X//' >xnec2c/files/clog.c << '098c370295d7e18334aadc7819c467ba' >X/* $NetBSD: clog.c,v 1.1 2007/08/20 16:01:35 drochner Exp $ */ >X >X/*- >X * Copyright (c) 2007 The NetBSD Foundation, Inc. >X * All rights reserved. >X * >X * This code is derived from software written by Stephen L. Moshier. >X * It is redistributed by the NetBSD Foundation by permission of the author. >X * >X * Redistribution and use in source and binary forms, with or without >X * modification, are permitted provided that the following conditions >X * are met: >X * 1. Redistributions of source code must retain the above copyright >X * notice, this list of conditions and the following disclaimer. >X * 2. Redistributions in binary form must reproduce the above copyright >X * notice, this list of conditions and the following disclaimer in the >X * documentation and/or other materials provided with the distribution. >X * >X * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS >X * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED >X * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >X * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS >X * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >X * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >X * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >X * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >X * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >X * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE >X * POSSIBILITY OF SUCH DAMAGE. >X */ >X >X#include <complex.h> >X#include <math.h> >X >Xdouble complex >Xclog(double complex z) >X{ >X double complex w; >X double p, rr; >X >X rr = cabs(z); >X p = log(rr); >X rr = atan2(cimag(z), creal(z)); >X w = p + rr * I; >X return w; >X} >098c370295d7e18334aadc7819c467ba >echo x - xnec2c/files/patch-src_somnec.c >sed 's/^X//' >xnec2c/files/patch-src_somnec.c << 'ab30dc693e9a3c922eae8145b40c7373' >X--- src/somnec.c.orig 2013-12-01 23:01:31.000000000 -0800 >X+++ src/somnec.c 2014-06-08 17:51:47.000000000 -0700 >X@@ -38,6 +38,9 @@ >X #include "somnec.h" >X #include "shared.h" >X >X+#include "clog.c" >X+#include "cexp.c" >X+ >X /* common /evlcom/ */ >X static int jh; >X static double ck2, ck2sq, tkmag, tsmag, ck1r, zph, rho; >ab30dc693e9a3c922eae8145b40c7373 >echo x - xnec2c/files/cexp.c >sed 's/^X//' >xnec2c/files/cexp.c << 'af22b7f7d6052b89c4cf9431a64c32b2' >X/* $NetBSD: cexp.c,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ >X >X/*- >X * Copyright (c) 2007 The NetBSD Foundation, Inc. >X * All rights reserved. >X * >X * This code is derived from software written by Stephen L. Moshier. >X * It is redistributed by the NetBSD Foundation by permission of the author. >X * >X * Redistribution and use in source and binary forms, with or without >X * modification, are permitted provided that the following conditions >X * are met: >X * 1. Redistributions of source code must retain the above copyright >X * notice, this list of conditions and the following disclaimer. >X * 2. Redistributions in binary form must reproduce the above copyright >X * notice, this list of conditions and the following disclaimer in the >X * documentation and/or other materials provided with the distribution. >X * >X * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS >X * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED >X * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >X * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS >X * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >X * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >X * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >X * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >X * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >X * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE >X * POSSIBILITY OF SUCH DAMAGE. >X */ >X >X#include <complex.h> >X#include <math.h> >X >Xdouble complex >Xcexp(double complex z) >X{ >X double complex w; >X double r, x, y; >X >X x = creal(z); >X y = cimag(z); >X r = exp(x); >X w = r * cos(y) + r * sin(y) * I; >X return w; >X} >af22b7f7d6052b89c4cf9431a64c32b2 >echo x - xnec2c/files/cexp.h >sed 's/^X//' >xnec2c/files/cexp.h << '1f4705cc90d506570bcef31ec7d845b6' >X#ifndef CEXP_H_ >X#define CEXP_H_ >X >X#include <complex.h> >X#include <math.h> >X >Xdouble complex cexp(double complex z); >X >X#endif >1f4705cc90d506570bcef31ec7d845b6 >echo x - xnec2c/files/patch-src_common.h >sed 's/^X//' >xnec2c/files/patch-src_common.h << '0de4a9c1bb1b9700de11c3a5602f4d29' >X--- src/common.h.orig 2014-06-08 17:50:43.000000000 -0700 >X+++ src/common.h 2014-06-08 17:50:53.000000000 -0700 >X@@ -37,6 +37,7 @@ >X #include <sys/types.h> >X #include <sys/times.h> >X #include <gtk/gtk.h> >X+#include "cexp.h" >X >X /* commonly used complex constants */ >X #define CPLX_00 (0.0+I*0.0) >0de4a9c1bb1b9700de11c3a5602f4d29 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 190815
: 143552