aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2007-12-23 21:08:45 +0000
committerDiane Bruce <db@FreeBSD.org>2007-12-23 21:08:45 +0000
commit5d56e046d8632d02ed1337d9da7e13658ac92c5a (patch)
treed43c685cea4c140b190c25d76f40f605900e83d3 /comms
parent71eaf87adc5e7930f923d8a672860563dcc8ef10 (diff)
downloadports-5d56e046d8632d02ed1337d9da7e13658ac92c5a.tar.gz
ports-5d56e046d8632d02ed1337d9da7e13658ac92c5a.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/Makefile1
-rw-r--r--comms/geoid/Makefile39
-rw-r--r--comms/geoid/distinfo3
-rw-r--r--comms/geoid/files/patch-country.pos14
-rw-r--r--comms/geoid/files/patch-geoid.cxx15
-rw-r--r--comms/geoid/files/patch-makefile19
-rw-r--r--comms/geoid/pkg-descr13
7 files changed, 104 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index 25bb23c21eaa..9495ba3982f2 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -27,6 +27,7 @@
SUBDIR += fldigi
SUBDIR += gammu
SUBDIR += garmin-utils
+ SUBDIR += geoid
SUBDIR += gfax
SUBDIR += ghfaxviewer
SUBDIR += gkermit
diff --git a/comms/geoid/Makefile b/comms/geoid/Makefile
new file mode 100644
index 000000000000..f4e19bf627d4
--- /dev/null
+++ b/comms/geoid/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: geoid
+# Date created: March 20 2007
+# Whom: Diane Bruce <db@db.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= geoid
+PORTVERSION= 1.0
+DISTVERSIONSUFFIX= .src
+CATEGORIES= comms hamradio
+MASTER_SITES= http://www.w1hkj.com/LinuxApps/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= db
+DISTNAME= fl_geoid
+EXTRACT_SUFX= .src.tar.gz
+
+MAINTAINER= db@FreeBSD.org
+COMMENT= Geodetic computer for amateur radio use
+
+LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk-threads
+
+USE_GMAKE= yes
+MAKEFILE= makefile
+
+MAKE_ENV+= CXX="${CXX}"
+PLIST_FILES= bin/geoid ${DATADIR_REL}/country.pos
+PLIST_DIRS= ${DATADIR_REL}
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/geoid.cxx
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/geoid ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/country.pos ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/comms/geoid/distinfo b/comms/geoid/distinfo
new file mode 100644
index 000000000000..12ef6e23023c
--- /dev/null
+++ b/comms/geoid/distinfo
@@ -0,0 +1,3 @@
+MD5 (fl_geoid.src.tar.gz) = aa7c38cf149aca51259a4209a7fb49cd
+SHA256 (fl_geoid.src.tar.gz) = 47af413f0d5fdf0bf1e66c96be7795f41fa5311cc3803b5bec5a5c6e63903430
+SIZE (fl_geoid.src.tar.gz) = 38970
diff --git a/comms/geoid/files/patch-country.pos b/comms/geoid/files/patch-country.pos
new file mode 100644
index 000000000000..bbf498e9a908
--- /dev/null
+++ b/comms/geoid/files/patch-country.pos
@@ -0,0 +1,14 @@
+--- country.pos.orig Sat Dec 16 12:03:41 2006
++++ country.pos Tue Mar 20 21:06:07 2007
+@@ -30,9 +30,9 @@
+ 4U/UN |UN HQ NEW YORK |40 42 N|074 00 W|
+ 4V |HAITI |19 00 N|072 24 W|
+ 4W |UN HQ NEW YORK |40 42 N|074 00 W|
+-4X |ISREAL |32 00 N|035 00 E|
++4X |ISRAEL |32 00 N|035 00 E|
+ 4Y |INT CIVIL AVIATION ORG |40 42 N|074 00 W|
+-4Z |ISREAL |32 00 N|035 00 E|
++4Z |ISRAEL |32 00 N|035 00 E|
+ 5A |LIBYA, TRIPOLI |32 30 N|013 00 E|
+ 5B |CYPRUS |35 00 N|033 00 E|
+ 5C-5G |MOROCO CASABLANCA |33 35 N|007 39 W|
diff --git a/comms/geoid/files/patch-geoid.cxx b/comms/geoid/files/patch-geoid.cxx
new file mode 100644
index 000000000000..9df3ddece0b7
--- /dev/null
+++ b/comms/geoid/files/patch-geoid.cxx
@@ -0,0 +1,15 @@
+--- geoid.cxx.orig Mon Dec 18 13:53:07 2006
++++ geoid.cxx Tue Mar 20 22:02:44 2007
+@@ -28,10 +28,8 @@
+ strFname.append("/.geoid/country.pos");
+
+ if (ReadGeoFile((char *)strFname.c_str()) == -1) {
+- strFname = szHomedir;
+- strFname.append("/country.pos");
+- if (ReadGeoFile((char *)strFname.c_str()) == -1) {
+- fl_message("Cannot open %s", (char *)strFname.c_str());
++ if (ReadGeoFile("%%LOCALBASE%%/share/geoid/country.pos") == -1) {
++ fl_message("Cannot open country.pos");
+ exit(0);
+ }
+ }
diff --git a/comms/geoid/files/patch-makefile b/comms/geoid/files/patch-makefile
new file mode 100644
index 000000000000..ad1daec8e83e
--- /dev/null
+++ b/comms/geoid/files/patch-makefile
@@ -0,0 +1,19 @@
+--- makefile.orig Fri Dec 15 14:36:15 2006
++++ makefile Tue Mar 20 21:15:16 2007
+@@ -5,7 +5,7 @@
+ #----------------------------------------------------------------------------------
+ #
+
+-CFLAGS = `fltk-config --cxxflags` -Wall -g0 -O2 -fexceptions
++CFLAGS += `fltk-config --cxxflags` -Wall -g0
+
+ LIBS = -lfltk_images -ljpeg -lpng
+
+@@ -13,7 +13,6 @@
+
+ OBJECT =
+
+-CXX = g++
+
+ # ----------------------------------------------------------------------------------
+
diff --git a/comms/geoid/pkg-descr b/comms/geoid/pkg-descr
new file mode 100644
index 000000000000..6694662acfef
--- /dev/null
+++ b/comms/geoid/pkg-descr
@@ -0,0 +1,13 @@
+Geodetic computer for amateur radio use.
+
+Converts Lat / Lon to Maidenhead Grid Square and reverse
+Computes range in kilometers and great circle bearing between
+QTH and remote site specified by Lat/Lon or Maidenhead Grid Square
+Computes range in kilometers and great circle bearing between QTH and
+a site selected from a database list for all known callsign prefixes
+and their geographic position. Geographic position is by major city.
+
+WWW: http://www.w1hkj.com/#Geoid
+
+- Diane VA3DB
+db@db.net