From 8eecc07db54f3714de68a37a4cc3d2eaa5d54e8e Mon Sep 17 00:00:00 2001 From: "Patrick S. Gardella" Date: Tue, 5 Nov 2002 19:14:30 +0000 Subject: Create port for xlog, an amateur radio logging app --- comms/xlog/Makefile | 20 ++++++++++++++++++++ comms/xlog/distinfo | 1 + comms/xlog/files/patch-aa | 21 +++++++++++++++++++++ comms/xlog/files/patch-ab | 13 +++++++++++++ comms/xlog/files/patch-ac | 20 ++++++++++++++++++++ comms/xlog/files/patch-ad | 11 +++++++++++ comms/xlog/pkg-comment | 1 + comms/xlog/pkg-descr | 14 ++++++++++++++ comms/xlog/pkg-plist | 38 ++++++++++++++++++++++++++++++++++++++ 9 files changed, 139 insertions(+) create mode 100644 comms/xlog/Makefile create mode 100644 comms/xlog/distinfo create mode 100644 comms/xlog/files/patch-aa create mode 100644 comms/xlog/files/patch-ab create mode 100644 comms/xlog/files/patch-ac create mode 100644 comms/xlog/files/patch-ad create mode 100644 comms/xlog/pkg-comment create mode 100644 comms/xlog/pkg-descr create mode 100644 comms/xlog/pkg-plist (limited to 'comms/xlog') diff --git a/comms/xlog/Makefile b/comms/xlog/Makefile new file mode 100644 index 000000000000..63178df664fb --- /dev/null +++ b/comms/xlog/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: xlog +# Date created: 2002-11-05 +# Whom: Patrick Gardella +# +# $FreeBSD$ + +PORTNAME= xlog +PORTVERSION= 0.7 +CATEGORIES= comms +MASTER_SITES= http://people.debian.org/~pa3aba/download/ + +MAINTAINER= patrick@FreeBSD.org + +USE_GTK= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= GTKCONFIG=${GTK_CONFIG} + +MAN1= xlog.1 + +.include diff --git a/comms/xlog/distinfo b/comms/xlog/distinfo new file mode 100644 index 000000000000..a38e578da068 --- /dev/null +++ b/comms/xlog/distinfo @@ -0,0 +1 @@ +MD5 (xlog-0.7.tar.gz) = a86a32473bf24750dc98f68f730d8408 diff --git a/comms/xlog/files/patch-aa b/comms/xlog/files/patch-aa new file mode 100644 index 000000000000..a9de5e4821bd --- /dev/null +++ b/comms/xlog/files/patch-aa @@ -0,0 +1,21 @@ +--- src/callbacks.c.orig Tue Nov 5 08:44:15 2002 ++++ src/callbacks.c Tue Nov 5 11:00:58 2002 +@@ -74,6 +74,9 @@ + extern RIG *myrig; + #endif + ++/* qsort/bsearch callback functions */ ++typedef int (*compar_callback_fn) (const void *, const void *); ++ + /* ABOUT DIALOG */ + void on_aboutbutton_clicked (GtkButton *button, gpointer user_data) + { +@@ -1627,7 +1630,7 @@ + if (fields[i] != logw->logfields[i]) break; + + /* copy and re-order the array */ +- qsort(fields, QSO_FIELDS, sizeof(gint), (__compar_fn_t)compare_fields); ++ qsort(fields, QSO_FIELDS, sizeof(gint), (compar_callback_fn)compare_fields); + if (i < QSO_FIELDS) + { + for (i = 0; i < QSO_FIELDS; i++) diff --git a/comms/xlog/files/patch-ab b/comms/xlog/files/patch-ab new file mode 100644 index 000000000000..fa51ce551bcb --- /dev/null +++ b/comms/xlog/files/patch-ab @@ -0,0 +1,13 @@ +--- src/callbacks_qsoframe.c.orig Tue Nov 5 11:02:05 2002 ++++ src/callbacks_qsoframe.c Tue Nov 5 11:16:32 2002 +@@ -25,6 +25,10 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#include ++#endif + #include + #include + #include diff --git a/comms/xlog/files/patch-ac b/comms/xlog/files/patch-ac new file mode 100644 index 000000000000..e85d597356db --- /dev/null +++ b/comms/xlog/files/patch-ac @@ -0,0 +1,20 @@ +--- src/utils.c.orig Tue Nov 5 11:22:20 2002 ++++ src/utils.c Tue Nov 5 11:23:06 2002 +@@ -284,7 +284,7 @@ + + str = g_new0(gchar, 100); + +- fr = atoll(arg); ++ fr = strtoll(arg, (char **)NULL, 10); + + if (fr > 1325) /* no dot */ + { +@@ -295,7 +295,7 @@ + str[strlen(str) - 6] = '\0'; + else if (strlen(str) > 3) + str[strlen(str) - 3] = '\0'; +- fr = atoll(str); ++ fr = strtoll(str, (char **)NULL, 10); + } + + switch (fr) diff --git a/comms/xlog/files/patch-ad b/comms/xlog/files/patch-ad new file mode 100644 index 000000000000..67a5ab7e85bc --- /dev/null +++ b/comms/xlog/files/patch-ad @@ -0,0 +1,11 @@ +--- intl/dcigettext.c.orig Tue Nov 5 11:32:40 2002 ++++ intl/dcigettext.c Tue Nov 5 11:33:55 2002 +@@ -58,7 +58,7 @@ + #include + + #include +-#if !HAVE_STRCHR && !defined _LIBC ++#if !HAVE_STRCHR && !defined _LIBC && !defined __FreeBSD__ + # ifndef strchr + # define strchr index + # endif diff --git a/comms/xlog/pkg-comment b/comms/xlog/pkg-comment new file mode 100644 index 000000000000..20c42e05ddff --- /dev/null +++ b/comms/xlog/pkg-comment @@ -0,0 +1 @@ +An Amateur Radio station logging application diff --git a/comms/xlog/pkg-descr b/comms/xlog/pkg-descr new file mode 100644 index 000000000000..81465fdbe7b1 --- /dev/null +++ b/comms/xlog/pkg-descr @@ -0,0 +1,14 @@ +Xlog is a basic Amateur Radio station log. Xlog is able to do +DXCC lookups and will display country information, CQ and ITU zone, +location in latitude and longitude and distance and heading in +kilometers or miles, both for short and long path. Locator distance +and heading calculation for VHF logging is also supported. + +If your rig supports data retrieval over the serial line, you +should have a look at the Hamradio Control Libraries (hamlib) +port, which will allow for automatic retrieval of information +from your radio. + +Xlog supports cabrillo and ADIF and can import twlog and editest files. + +WWW: http://people.debian.org/~pa3aba/xlog.html diff --git a/comms/xlog/pkg-plist b/comms/xlog/pkg-plist new file mode 100644 index 000000000000..1faa3629a200 --- /dev/null +++ b/comms/xlog/pkg-plist @@ -0,0 +1,38 @@ +bin/xlog +share/locale/da/LC_MESSAGES/xlog.mo +share/locale/nl/LC_MESSAGES/xlog.mo +share/locale/fr/LC_MESSAGES/xlog.mo +share/locale/es/LC_MESSAGES/xlog.mo +share/xlog/pixmaps/add.xpm +share/xlog/pixmaps/cancel.xpm +share/xlog/pixmaps/del.xpm +share/xlog/pixmaps/mini-clock.xpm +share/xlog/pixmaps/mini-trx.xpm +share/xlog/pixmaps/mini-xlog.xpm +share/xlog/pixmaps/ok.xpm +share/xlog/pixmaps/s.xpm +share/xlog/pixmaps/s0.xpm +share/xlog/pixmaps/s1.xpm +share/xlog/pixmaps/s2.xpm +share/xlog/pixmaps/s3.xpm +share/xlog/pixmaps/s4.xpm +share/xlog/pixmaps/s5.xpm +share/xlog/pixmaps/s6.xpm +share/xlog/pixmaps/s7.xpm +share/xlog/pixmaps/s8.xpm +share/xlog/pixmaps/s9.xpm +share/xlog/pixmaps/update.xpm +share/xlog/pixmaps/xlog.png +share/xlog/pixmaps/xlog.xpm +share/xlog/dxcc/dxcck2di.changes +share/xlog/dxcc/dxcck2di.txt +share/xlog/remote/Makefile +share/xlog/remote/README +share/xlog/remote/fromxlog.c +share/xlog/remote/sendtoxlog.c +share/xlog/themes/xlogrc +@dirrm share/xlog/pixmaps +@dirrm share/xlog/dxcc +@dirrm share/xlog/remote +@dirrm share/xlog/themes +@dirrm share/xlog -- cgit v1.2.3