diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-09 19:55:57 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-09 19:55:57 +0000 |
commit | f5a473f755a74f37580a5df2a2d4e86d889ab836 (patch) | |
tree | 643faf8b3379e654214ae6d60737764612fcfbe2 /comms | |
parent | 48eea8eed4cac85310000ab901d470c6d402c792 (diff) | |
download | ports-f5a473f755a74f37580a5df2a2d4e86d889ab836.tar.gz ports-f5a473f755a74f37580a5df2a2d4e86d889ab836.zip |
K-Track is an graphical satellite prediction Program that runs under KDE.
It's really accurate as it calculates using the NORAD SGP4/SDP4 Models.
It Controls your Rig for doppler compensation / antenna pointing
Written by lx2gt AT users.sourceforge.net
WWW: http://ktrack.sourceforge.net/
- Diane Bruce, VA3DB
db@db.net
PR: ports/93781
Submitted by: Diane Bruce <db at db.net>
Notes
Notes:
svn path=/head/; revision=167299
Diffstat (limited to 'comms')
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/ktrack/Makefile | 48 | ||||
-rw-r--r-- | comms/ktrack/distinfo | 3 | ||||
-rw-r--r-- | comms/ktrack/files/patch-doc_Makefile.in | 11 | ||||
-rw-r--r-- | comms/ktrack/files/patch-ktrack_hamlibwrapper.cpp | 53 | ||||
-rw-r--r-- | comms/ktrack/files/patch-ktrack_predictionlist.cpp | 20 | ||||
-rw-r--r-- | comms/ktrack/files/patch-ktrack_rigConfigBase.ui | 11 | ||||
-rw-r--r-- | comms/ktrack/pkg-descr | 10 | ||||
-rw-r--r-- | comms/ktrack/pkg-plist | 17 |
9 files changed, 174 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index 777cd2f661e0..45ebc714cf4d 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -45,6 +45,7 @@ SUBDIR += kermit SUBDIR += klog SUBDIR += kpsk + SUBDIR += ktrack SUBDIR += libfec SUBDIR += libirman SUBDIR += libticables diff --git a/comms/ktrack/Makefile b/comms/ktrack/Makefile new file mode 100644 index 000000000000..f807e93418e0 --- /dev/null +++ b/comms/ktrack/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: ktrack +# Date created: 22 February 2006 +# Whom: Diane Bruce <db@db.net> +# +# $FreeBSD$ + +PORTNAME= ktrack +PORTVERSION= 0.3.0r1 +CATEGORIES= comms hamradio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ktrack +DISTNAME= ${PORTNAME}-0.3.0-rc1 + +MAINTAINER= db@db.net +COMMENT= Amateur Radio satellite tracking and prediction + +RUN_DEPENDS= xplanet:${PORTSDIR}/astro/xplanet:install +LIB_DEPENDS= hamlib:${PORTSDIR}/comms/hamlib \ + jpeg:${PORTSDIR}/graphics/jpeg + +WRKSRC= ${WRKDIR}/${DISTNAME} + +USE_BZIP2= yes +USE_KDEBASE_VER=3 +INSTALLS_ICONS= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 +USE_GETTEXT= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +USE_GCC= 3.3+ +.endif + +post-patch: + @${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack + ${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack/common + ${INSTALL_MAN} ${WRKSRC}/doc/en/index.cache.bz2 ${PREFIX}/share/doc/HTML/en/ktrack/ + ${INSTALL_MAN} ${WRKSRC}/doc/en/index.docbook ${PREFIX}/share/doc/HTML/en/ktrack/ +.endif + +.include <bsd.port.post.mk> diff --git a/comms/ktrack/distinfo b/comms/ktrack/distinfo new file mode 100644 index 000000000000..fd272aea4199 --- /dev/null +++ b/comms/ktrack/distinfo @@ -0,0 +1,3 @@ +MD5 (ktrack-0.3.0-rc1.tar.bz2) = 032c914ab7316471505265e6a68d9da3 +SHA256 (ktrack-0.3.0-rc1.tar.bz2) = 595e4314ae611eac55ad5add46ba4e5c881c29e40c8261bfd5f65df318d35740 +SIZE (ktrack-0.3.0-rc1.tar.bz2) = 913764 diff --git a/comms/ktrack/files/patch-doc_Makefile.in b/comms/ktrack/files/patch-doc_Makefile.in new file mode 100644 index 000000000000..6bcbe7e07de7 --- /dev/null +++ b/comms/ktrack/files/patch-doc_Makefile.in @@ -0,0 +1,11 @@ +--- doc/en/Makefile.in.orig Thu Feb 23 20:34:39 2006 ++++ doc/en/Makefile.in Thu Feb 23 20:34:53 2006 +@@ -372,7 +372,7 @@ + + #>- install-data-am: + #>+ 1 +-install-data-am: install-docs install-nls ++install-data-am: + + install-exec-am: + diff --git a/comms/ktrack/files/patch-ktrack_hamlibwrapper.cpp b/comms/ktrack/files/patch-ktrack_hamlibwrapper.cpp new file mode 100644 index 000000000000..f0519b8022eb --- /dev/null +++ b/comms/ktrack/files/patch-ktrack_hamlibwrapper.cpp @@ -0,0 +1,53 @@ +--- ktrack/hamlibwrapper.cpp.orig Sun Jan 18 03:25:00 2004 ++++ ktrack/hamlibwrapper.cpp Thu Feb 23 11:23:18 2006 +@@ -18,6 +18,7 @@ + #include <string.h> + #include <stdlib.h> + #include <kapplication.h> ++#include <math.h> + + #include "hamlibwrapper.h" + +@@ -100,6 +101,7 @@ + // open the rig + if (rig_open(downlinkRig) != RIG_OK) { + retval--; ++ downlinkRig->caps->rig_model=RIG_MODEL_DUMMY; + } + + +@@ -116,8 +118,9 @@ + uplinkRig=rig_init(urig); + uplinkRig->state.rigport.parm.serial.rate=uspeed; + strcpy(downlinkRig->state.rigport.pathname, uport); +- if (rig_open(downlinkRig) != RIG_OK) { ++ if (rig_open(uplinkRig) != RIG_OK) { + retval--; ++ uplinkRig->caps->rig_model=RIG_MODEL_DUMMY; + } + } + +@@ -248,13 +251,16 @@ + int errorcode; + freq_t frequency=0; + mutex.lock(); +- errorcode=rig_get_freq(downlinkRig, downlinkvfo, &frequency); +- if (errorcode!=RIG_OK) { +- fprintf(stderr, "WARNING: Error fetching frequency from Radio! Using default Frequency!\n"); +- errorstring=rigerror(errorcode); +- if (errorstring) +- fprintf(stderr, "The reported error was: %s\n", errorstring); +- frequency=433000000; ++ if (downlinkRig->caps->rig_model != RIG_MODEL_DUMMY) { ++ errorcode=rig_get_freq(downlinkRig, downlinkvfo, &frequency); ++ if (errorcode!=RIG_OK) { ++ fprintf(stderr, "WARNING: Error fetching frequency from Radio! Using default Frequency!\n"); ++ errorstring=rigerror(errorcode); ++ if (errorstring) ++ fprintf(stderr, "The reported error was: %s\n", errorstring); ++ downlinkRig->caps->rig_model = RIG_MODEL_DUMMY; ++ frequency=433000000; ++ } + } + // sleep on dummy rig - that saves CPU power + if (downlinkRig->caps->rig_model == RIG_MODEL_DUMMY) diff --git a/comms/ktrack/files/patch-ktrack_predictionlist.cpp b/comms/ktrack/files/patch-ktrack_predictionlist.cpp new file mode 100644 index 000000000000..23b9bcd19d68 --- /dev/null +++ b/comms/ktrack/files/patch-ktrack_predictionlist.cpp @@ -0,0 +1,20 @@ +--- ktrack/predictionlist.cpp.orig Wed Feb 22 19:58:26 2006 ++++ ktrack/predictionlist.cpp Wed Feb 22 19:58:39 2006 +@@ -132,7 +132,7 @@ + /** No descriptions */ + double predictionList::qDateTime2daynum(QDateTime date){ + struct tm TM; +- extern int daylight; ++// extern int daylight; + tzset(); + + TM.tm_sec=date.time().second(); +@@ -141,7 +141,7 @@ + TM.tm_mday=date.date().day(); + TM.tm_mon=date.date().month()-1; + TM.tm_year=date.date().year()-1900; +- TM.tm_isdst=daylight; ++ TM.tm_isdst=0; // daylight; + time_t t = mktime(&TM); + + // gmtime_r(&t, &TM); diff --git a/comms/ktrack/files/patch-ktrack_rigConfigBase.ui b/comms/ktrack/files/patch-ktrack_rigConfigBase.ui new file mode 100644 index 000000000000..13c3924b3c55 --- /dev/null +++ b/comms/ktrack/files/patch-ktrack_rigConfigBase.ui @@ -0,0 +1,11 @@ +--- ktrack/rigConfigBase.ui.orig Thu Feb 23 13:17:48 2006 ++++ ktrack/rigConfigBase.ui Thu Feb 23 13:17:57 2006 +@@ -390,7 +390,7 @@ + <cstring>downlinkCheckBox</cstring> + </property> + <property name="text"> +- <string>Seperate downlink receiver</string> ++ <string>Separate downlink receiver</string> + </property> + </widget> + <widget class="QGroupBox"> diff --git a/comms/ktrack/pkg-descr b/comms/ktrack/pkg-descr new file mode 100644 index 000000000000..91ae90d43d94 --- /dev/null +++ b/comms/ktrack/pkg-descr @@ -0,0 +1,10 @@ +K-Track is an graphical satellite prediction Program that runs under KDE. +It's really accurate as it calculates using the NORAD SGP4/SDP4 Models. +It Controls your Rig for doppler compensation / antenna pointing + +Written by lx2gt AT users.sourceforge.net + +WWW: http://ktrack.sourceforge.net/ + +- Diane Bruce, VA3DB +db@db.net diff --git a/comms/ktrack/pkg-plist b/comms/ktrack/pkg-plist new file mode 100644 index 000000000000..ba2700900b84 --- /dev/null +++ b/comms/ktrack/pkg-plist @@ -0,0 +1,17 @@ +bin/ktrack +share/applnk/Applications/HamRadio/ktrack.desktop +share/apps/ktrack/earth.jpg +share/apps/ktrack/nasa.tle +share/apps/ktrack/night.jpg +share/icons/hicolor/16x16/apps/ktrack.png +share/icons/hicolor/32x32/apps/ktrack.png +share/icons/locolor/16x16/apps/ktrack.png +share/icons/locolor/32x32/apps/ktrack.png +share/locale/de/LC_MESSAGES/ktrack.mo +share/locale/fr/LC_MESSAGES/ktrack.mo +@dirrm share/applnk/Applications/HamRadio +@dirrm share/apps/ktrack +%%PORTDOCS%%share/doc/HTML/en/ktrack/index.cache.bz2 +%%PORTDOCS%%share/doc/HTML/en/ktrack/index.docbook +%%PORTDOCS%%@dirrm share/doc/HTML/en/ktrack/common +%%PORTDOCS%%@dirrm share/doc/HTML/en/ktrack |