The Yagi-Uda project is a set of programmes for designing, and optimising

Yagi-Uda antennas, with 2 or more elements, such as shown below.  Additionally,
a very simple program called dipole works with just a dipole, but its
functionality is limited.

PR:		ports/83737
Submitted by:	Diane Bruce <db@db.net>
This commit is contained in:
Pav Lucistnik 2005-07-20 14:58:46 +00:00
parent 594b2797b1
commit 38d2f8ff93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139709
12 changed files with 152 additions and 0 deletions

View file

@ -109,6 +109,7 @@
SUBDIR += xcept
SUBDIR += xdx
SUBDIR += xlog
SUBDIR += yagiuda
SUBDIR += yaps
SUBDIR += yawmppp
SUBDIR += zmtx-zmrx

39
comms/yagiuda/Makefile Normal file
View file

@ -0,0 +1,39 @@
# ports collection makefile for: yagiuda
# Date created: 19 July 2005
# Whom: db
#
# $FreeBSD$
PORTNAME= yagiuda
PORTVERSION= 1.19
CATEGORIES= comms
MASTER_SITES= http://www.g8wrb.org/yagi/
MAINTAINER= db@db.net
COMMENT= Used to calculate yagi-uda antenna patterns useful to ham radio
GNU_CONFIGURE= yes
MAN1= first.1 optimise.1 yagi.1 dipole.1 input.1 output.1
MAN5= first.5 optimise.5 yagi.5 input.5 output.5
do-install:
.for f in first optimise yagi dipole input output
${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/${f}.1 ${PREFIX}/man/man1
.endfor
.for f in first optimise yagi input output
${INSTALL_MAN} ${WRKSRC}/man/man5/${f}.5 ${PREFIX}/man/man5
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in dipole.1.html input.1.html pattern.jpg\
first.1.html optimise.1.html yagi.1.html\
index.html output.1.html yagi.jpg
${INSTALL_DATA} ${WRKSRC}/doc/$f ${DOCSDIR}
.endfor
@${ECHO} ""
@${ECHO} "Additional docs installed in ${DOCSDIR}"
@${ECHO} ""
.endif
.include <bsd.port.mk>

2
comms/yagiuda/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (yagiuda-1.19.tar.gz) = 3d18f215656224fc0e02a783826c35a8
SIZE (yagiuda-1.19.tar.gz) = 227301

View file

@ -0,0 +1,10 @@
--- src/gain.c.orig Tue Jul 19 12:24:45 2005
+++ src/gain.c Tue Jul 19 12:24:50 2005
@@ -3,7 +3,6 @@
#endif
#include <stdio.h>
#include <math.h>
-#include <malloc.h>
#include <errno.h>
#include "yagi.h"
#define TINY 1e-10

View file

@ -0,0 +1,22 @@
--- src/genetic_algorithm_lib.c.orig Tue Jul 19 12:25:24 2005
+++ src/genetic_algorithm_lib.c Tue Jul 19 12:35:51 2005
@@ -3,9 +3,8 @@
#endif
#include <string.h>
-#include <values.h>
-#include <math.h>
#include <sys/types.h>
+#include <math.h>
#include <errno.h>
#include "yagi.h"
@@ -245,7 +244,7 @@
GeneRecord *temp ;
double minfit,maxfit ;
sigma=0.0 ;
- minfit=MAXDOUBLE ;
+ minfit=MAXFLOAT;
maxfit=-minfit ;
/* minfit=1e308; maxfit=-1e308; XXXXXXXXXXXXXXXXXXXXXX */
for(a=0 ; a<population_size ; a++ )

View file

@ -0,0 +1,10 @@
--- src/input.c.orig Tue Jul 19 12:24:11 2005
+++ src/input.c Tue Jul 19 12:24:18 2005
@@ -16,7 +16,6 @@
*/
#include <stdio.h>
-#include <malloc.h>
#include <math.h>
#include "nrutil.h"
#include "yagi.h"

View file

@ -0,0 +1,10 @@
--- src/output.c.orig Tue Jul 19 12:24:27 2005
+++ src/output.c Tue Jul 19 12:24:35 2005
@@ -11,7 +11,6 @@
#ifdef HAVE_STDLIB_H
#endif
-#include <malloc.h>
#include <math.h>
#include <string.h>
#include <sys/types.h>

View file

@ -0,0 +1,10 @@
--- src/random.c.orig Tue Jul 19 12:36:04 2005
+++ src/random.c Tue Jul 19 12:36:13 2005
@@ -42,7 +42,6 @@
#endif
-#include <values.h>
#include "yagi.h"
double randreal(void)

View file

@ -0,0 +1,10 @@
--- src/string.c.orig Tue Jul 19 12:23:46 2005
+++ src/string.c Tue Jul 19 12:23:56 2005
@@ -2,7 +2,6 @@
#include <stdlib.h>
#endif
#include <stdio.h>
-#include <malloc.h>
#include "yagi.h"

View file

@ -0,0 +1,11 @@
--- src/yagi.c.orig Tue Jul 19 12:23:10 2005
+++ src/yagi.c Tue Jul 19 12:23:33 2005
@@ -19,7 +19,7 @@
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <math.h>
#include <errno.h>
#include "yagi.h"

11
comms/yagiuda/pkg-descr Normal file
View file

@ -0,0 +1,11 @@
The Yagi-Uda project is a set of programmes for designing, and optimising
Yagi-Uda antennas, with 2 or more elements, such as shown below. Additionally,
a very simple program called dipole works with just a dipole, but its
functionality is limited.
Written by Dr. David Kirkby, G8WRB. email david.kirkby@onetel.net
WWW: http://www.g8wrb.org/yagi/index.html
- Diane Bruce, VA3DB
db@db.net

16
comms/yagiuda/pkg-plist Normal file
View file

@ -0,0 +1,16 @@
bin/dipole
bin/first
bin/input
bin/optimise
bin/output
bin/yagi
%%PORTDOCS%%%%DOCSDIR%%/dipole.1.html
%%PORTDOCS%%%%DOCSDIR%%/first.1.html
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/input.1.html
%%PORTDOCS%%%%DOCSDIR%%/optimise.1.html
%%PORTDOCS%%%%DOCSDIR%%/output.1.html
%%PORTDOCS%%%%DOCSDIR%%/pattern.jpg
%%PORTDOCS%%%%DOCSDIR%%/yagi.1.html
%%PORTDOCS%%%%DOCSDIR%%/yagi.jpg
%%PORTDOCS%%@dirrm %%DOCSDIR%%