1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

This is a program for translating mainhead grid squares to and from lat/long.

This is of most use to Amateur Radio operators but may be useful to GPS users.

PR:		ports/82862
Submitted by:	Diane Bruce <db@db.net>
This commit is contained in:
Pav Lucistnik 2005-07-03 11:31:29 +00:00
parent 1303ec8cc2
commit e65e8bc6cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138393
6 changed files with 71 additions and 0 deletions

View File

@ -50,6 +50,7 @@
SUBDIR += linpsk
SUBDIR += linrad
SUBDIR += lirc
SUBDIR += locator
SUBDIR += lrzsz
SUBDIR += ltmdm
SUBDIR += mgetty+sendfax

29
comms/locator/Makefile Normal file
View File

@ -0,0 +1,29 @@
# ports collection makefile for: locator
# Date created: 30 June 2005
# Whom: db
#
# $FreeBSD$
#
PORTNAME= locator
PORTVERSION= 0.1
CATEGORIES= comms astro
MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/ham/}
MAINTAINER= db@db.net
COMMENT= Grid square calculator program used in Amateur Radio and GPS work
PORTDOCS= README
PLIST_FILES= bin/locator
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/locator ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${ECHO} ""
@${ECHO} "locator README installed in ${DOCSDIR}"
@${ECHO} ""
.endif
.include <bsd.port.mk>

2
comms/locator/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (locator-0.1.tar.gz) = 788353dbff268a41113074e8bb613fb8
SIZE (locator-0.1.tar.gz) = 2555

View File

@ -0,0 +1,10 @@
--- conv_fn.cc.orig Thu Jun 30 15:10:32 2005
+++ conv_fn.cc Thu Jun 30 15:11:11 2005
@@ -5,6 +5,7 @@
#include <ctype.h>
#include <math.h>
+#include <string.h>
int GPStoLOCATOR(float gps_long, float gps_lat, char *locator) {
/* gps_long and gps_lat are the longitutes (-180 to +180) and */

View File

@ -0,0 +1,19 @@
--- locator.cc.orig Thu Jun 30 15:21:49 2005
+++ locator.cc Thu Jun 30 17:04:24 2005
@@ -3,9 +3,13 @@
/* Last change 29.07.2001 */
/* A few includes */
-#include <iostream.h>
-#include <string.h>
-#include <stdio.h>
+#include <iostream>
+#include <cstdio>
+#include <cstring>
+
+using std::iostream;
+using std::ostream;
+using std::cout;
/* A few definitions */
#define VERSION "0.1"

10
comms/locator/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
This is a program for translating mainhead grid squares to and from lat/long.
This is of most use to Amateur Radio operators but may be useful to GPS users.
Originally written by:
Harald M. Stauss
harald.stauss@web.de
DO1JHS @ DB0GR.#BLN.DEU.EU
- Diane Bruce, VA3DB
db@db.net