summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-20 14:58:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-20 14:58:46 +0000
commit38d2f8ff9305428b392755f9744e2457d5e2372a (patch)
tree8b220985964d2d038075f8a12d4b53be5bddb785 /comms
parent- Update to 0.88 (diff)
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>
Notes
Notes: svn path=/head/; revision=139709
Diffstat (limited to 'comms')
-rw-r--r--comms/Makefile1
-rw-r--r--comms/yagiuda/Makefile39
-rw-r--r--comms/yagiuda/distinfo2
-rw-r--r--comms/yagiuda/files/patch-src_gain.c10
-rw-r--r--comms/yagiuda/files/patch-src_genetic_algorithm_lib.c22
-rw-r--r--comms/yagiuda/files/patch-src_input.c10
-rw-r--r--comms/yagiuda/files/patch-src_output.c10
-rw-r--r--comms/yagiuda/files/patch-src_random.c10
-rw-r--r--comms/yagiuda/files/patch-src_string.c10
-rw-r--r--comms/yagiuda/files/patch-src_yagi.c11
-rw-r--r--comms/yagiuda/pkg-descr11
-rw-r--r--comms/yagiuda/pkg-plist16
12 files changed, 152 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index 57dbc70b1a30..151c7a386920 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -109,6 +109,7 @@
SUBDIR += xcept
SUBDIR += xdx
SUBDIR += xlog
+ SUBDIR += yagiuda
SUBDIR += yaps
SUBDIR += yawmppp
SUBDIR += zmtx-zmrx
diff --git a/comms/yagiuda/Makefile b/comms/yagiuda/Makefile
new file mode 100644
index 000000000000..878d76014531
--- /dev/null
+++ b/comms/yagiuda/Makefile
@@ -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>
diff --git a/comms/yagiuda/distinfo b/comms/yagiuda/distinfo
new file mode 100644
index 000000000000..7ab0c9387237
--- /dev/null
+++ b/comms/yagiuda/distinfo
@@ -0,0 +1,2 @@
+MD5 (yagiuda-1.19.tar.gz) = 3d18f215656224fc0e02a783826c35a8
+SIZE (yagiuda-1.19.tar.gz) = 227301
diff --git a/comms/yagiuda/files/patch-src_gain.c b/comms/yagiuda/files/patch-src_gain.c
new file mode 100644
index 000000000000..8ce6ffc8cb5a
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_gain.c
@@ -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
diff --git a/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c b/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c
new file mode 100644
index 000000000000..c198a1e9594f
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c
@@ -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++ )
diff --git a/comms/yagiuda/files/patch-src_input.c b/comms/yagiuda/files/patch-src_input.c
new file mode 100644
index 000000000000..79eac3357586
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_input.c
@@ -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"
diff --git a/comms/yagiuda/files/patch-src_output.c b/comms/yagiuda/files/patch-src_output.c
new file mode 100644
index 000000000000..ac6f02774909
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_output.c
@@ -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>
diff --git a/comms/yagiuda/files/patch-src_random.c b/comms/yagiuda/files/patch-src_random.c
new file mode 100644
index 000000000000..0db1d90323ab
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_random.c
@@ -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)
diff --git a/comms/yagiuda/files/patch-src_string.c b/comms/yagiuda/files/patch-src_string.c
new file mode 100644
index 000000000000..25546ef09703
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_string.c
@@ -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"
+
+
diff --git a/comms/yagiuda/files/patch-src_yagi.c b/comms/yagiuda/files/patch-src_yagi.c
new file mode 100644
index 000000000000..4da8027e797b
--- /dev/null
+++ b/comms/yagiuda/files/patch-src_yagi.c
@@ -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"
diff --git a/comms/yagiuda/pkg-descr b/comms/yagiuda/pkg-descr
new file mode 100644
index 000000000000..47306aeb0e91
--- /dev/null
+++ b/comms/yagiuda/pkg-descr
@@ -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
diff --git a/comms/yagiuda/pkg-plist b/comms/yagiuda/pkg-plist
new file mode 100644
index 000000000000..85691c90b2dc
--- /dev/null
+++ b/comms/yagiuda/pkg-plist
@@ -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%%