ports/83175: [NEW PORT] comms/nec2c: Used to calculate antenna patterns useful to ham radio
Diane Bruce
db at db.net
Sat Jul 9 04:40:08 UTC 2005
>Number: 83175
>Category: ports
>Synopsis: [NEW PORT] comms/nec2c: Used to calculate antenna patterns useful to ham radio
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 09 04:40:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Diane Bruce
>Release: FreeBSD 5.4-RELEASE-p3 i386
>Organization:
None
>Environment:
System: FreeBSD night.db.net 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #0: Tue Jul 5 10:31:25 EDT
>Description:
nec2c is a translation of the NEC2 FORTRAN source code to the C language.
The translation was performed mostly "by hand" and a lot of modifications
to the original program were introduced in order to modernize the NEC2
and to remove as many built-in limitations as possible. The attendant
SOMNEC program was also translated to C and incorporated in nec2c as a
function so that Sommerfeld ground solutions are a part of the program.
Originally Written by:
Numerical Electromagnetics Code (NEC2) developed at Lawrence
Livermore lab., Livermore, CA. (contact G. Burke at 415-422-8414
for problems with the NEC code. For problems with the vax implem-
entation, contact J. Breakall at 415-422-8196 or E. Domning at 415
422-5936)
file created 4/11/80.
Translation by:
Neoklis Kyriazis 5B4AZ Limassol, Cyprus, neoklisk at cytanet.com.cy
WWW: http://www.si-list.org/swindex2.html#nec2c
- Diane Bruce, VA3DB
db at db.net
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- nec2c-.9.shar begins here ---
# 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:
#
# nec2c
# nec2c/files
# nec2c/files/carg.c
# nec2c/files/patch-Makefile
# nec2c/pkg-descr
# nec2c/dist
# nec2c/Makefile
# nec2c/distinfo
# nec2c/pkg-plist
#
echo c - nec2c
mkdir -p nec2c > /dev/null 2>&1
echo c - nec2c/files
mkdir -p nec2c/files > /dev/null 2>&1
echo x - nec2c/files/carg.c
sed 's/^X//' >nec2c/files/carg.c << 'END-of-nec2c/files/carg.c'
X/* carg.f -- translated by f2c (version 20000817).
X*/
X#include <math.h>
X#include <complex.h>
X
Xdouble carg(complex z__)
X{
X /* System generated locals */
X double ret_val;
X
X/* april 1977 version. w. fullerton, c3, los alamos scientific lab. */
X
X ret_val = (float)0.;
X if (creal(z__) != (float)0. || cimag(z__) != (float)0.) {
X ret_val = atan2(cimag(z__), creal(z__));
X }
X
X return ret_val;
X} /* carg */
X
END-of-nec2c/files/carg.c
echo x - nec2c/files/patch-Makefile
sed 's/^X//' >nec2c/files/patch-Makefile << 'END-of-nec2c/files/patch-Makefile'
X--- Makefile.orig Tue Jan 27 14:53:38 2004
X+++ Makefile Sat Jul 9 00:19:39 2005
X@@ -1,12 +1,11 @@
X #Makefile for nec2c 21 Aug 2003
X
X-SHELL = /bin/sh
X-CC = gcc -Wall -O3 -g
X+all: nec2c
X
X-objects = nec2c.o misc.o somnec.o
X+objects = nec2c.o misc.o somnec.o carg.o
X
X nec2c : $(objects)
X- $(CC) -lm -lefence -o nec2c $(objects)
X+ $(CC) -lm -o nec2c $(objects) -L${PREFIX}/lib -lccm
X
X $(objects) : nec2c.h
X
END-of-nec2c/files/patch-Makefile
echo x - nec2c/pkg-descr
sed 's/^X//' >nec2c/pkg-descr << 'END-of-nec2c/pkg-descr'
Xnec2c is a translation of the NEC2 FORTRAN source code to the C language.
XThe translation was performed mostly "by hand" and a lot of modifications
Xto the original program were introduced in order to modernize the NEC2
Xand to remove as many built-in limitations as possible. The attendant
XSOMNEC program was also translated to C and incorporated in nec2c as a
Xfunction so that Sommerfeld ground solutions are a part of the program.
X
XOriginally Written by:
X
XNumerical Electromagnetics Code (NEC2) developed at Lawrence
XLivermore lab., Livermore, CA. (contact G. Burke at 415-422-8414
Xfor problems with the NEC code. For problems with the vax implem-
Xentation, contact J. Breakall at 415-422-8196 or E. Domning at 415
X422-5936)
Xfile created 4/11/80.
X
XTranslation by:
X
XNeoklis Kyriazis 5B4AZ Limassol, Cyprus, neoklisk at cytanet.com.cy
X
XWWW: http://www.si-list.org/swindex2.html#nec2c
X
X- Diane Bruce, VA3DB
Xdb at db.net
END-of-nec2c/pkg-descr
echo x - nec2c/dist
sed 's/^X//' >nec2c/dist << 'END-of-nec2c/dist'
Xhttp://www.si-list.org/NEC_Archives/nec2c.tar.gz
END-of-nec2c/dist
echo x - nec2c/Makefile
sed 's/^X//' >nec2c/Makefile << 'END-of-nec2c/Makefile'
X# ports collection makefile for: splat
X# Date created: 8 July 2005
X# Whom: db
X#
X# $FreeBSD$
X
XPORTNAME= nec2c
XPORTVERSION= .9
XCATEGORIES= comms
XMASTER_SITES= http://www.si-list.org/NEC_Archives/
XDISTNAME= nec2c
XDIST_SUBDIR= ${PORTNAME}
X
XMAINTAINER= db at db.net
XCOMMENT= Used to calculate antenna patterns useful to ham radio
X
X#
X# both libccm and files/carg.c can "go away" once libc is filled in
X# with missing posix complex functions.
X#
X# LIB_DEPENDS does not work for libccm.so since ldconfig -r cannot find it
X# because it is not of the form libccm.so.n
X#
XRUN_DEPENDS= ${LOCALBASE}/lib/libccm.so:${PORTSDIR}/math/ccmath
X
Xpost-patch:
X# ${CP} ${FILESDIR}/Makefile ${WRKSRC}
X ${CP} ${FILESDIR}/carg.c ${WRKSRC}
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X ${MKDIR} ${EXAMPLESDIR}
X ${INSTALL_DATA} ${WRKSRC}/Input/*.nec ${EXAMPLESDIR}
X ${INSTALL_DATA} ${WRKSRC}/Input/*.NEC ${EXAMPLESDIR}
X @${ECHO} ""
X @${ECHO} "nec2c docs installed in ${DOCSDIR}"
X @${ECHO} "nec2c sample Input files installed in ${EXAMPLESDIR}"
X @${ECHO} ""
X.endif
X
X.include <bsd.port.mk>
END-of-nec2c/Makefile
echo x - nec2c/distinfo
sed 's/^X//' >nec2c/distinfo << 'END-of-nec2c/distinfo'
XMD5 (nec2c/nec2c.tar.gz) = 70aa63ee006b1a179d0a08c7b0dece0b
XSIZE (nec2c/nec2c.tar.gz) = 180034
END-of-nec2c/distinfo
echo x - nec2c/pkg-plist
sed 's/^X//' >nec2c/pkg-plist << 'END-of-nec2c/pkg-plist'
Xbin/nec2c
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/10RA432.NEC
X%%PORTDOCS%%%%EXAMPLESDIR%%/19el_432_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/20RA432.NEC
X%%PORTDOCS%%%%EXAMPLESDIR%%/20RA_X4.NEC
X%%PORTDOCS%%%%EXAMPLESDIR%%/3E_.NEC
X%%PORTDOCS%%%%EXAMPLESDIR%%/9EL_GRA.NEC
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX2b_gr.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX2b_mast.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX2b_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX2bm_gr.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX_gra.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elX_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elXb_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elXb_tonnaf.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9el_p_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9el_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9el_tonnaf.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/9elv_tonna.nec
X%%PORTDOCS%%%%EXAMPLESDI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p.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_18_t10m.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_18_t10mvp.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_18b24.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_24b18.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_28_0.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_28_1.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_28_1t.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_2el_28_f.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_4el_20.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/dl_4el_20f.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/firstrhombic.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/i5tdjiiif.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/log_periodic.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/logperA9.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/quad17m_1.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/quad17m_2.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/rombica_t.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg2_5el_50.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg2_5el_50t.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_16el_220.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_16el_220M_1.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_16el_220M_2.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_2el_24.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_4el_20.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_4el_20f.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_4el_20g.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_5el_50.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_5el_50_opt.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_5el_50p_opt.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_5el_50t.nec
X%%PORTDOCS%%%%EXAMPLESDIR%%/yg_9el_144.nec
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-nec2c/pkg-plist
exit
--- nec2c-.9.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list