From 3ac8e03a3f8435af50f8776527f83a90d05d764a Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 30 May 2007 05:27:44 +0000 Subject: [PATCH] add port for gpsk31: PSK31 sender/receiver using GTK. Transmit sounds right, but I can't easily test receive until I get home. --- comms/gpsk31/Makefile | 31 +++++++++++++++++++ comms/gpsk31/distinfo | 5 +++ comms/gpsk31/patches/patch-configure_in | 11 +++++++ comms/gpsk31/patches/patch-gpsk_conf | 12 +++++++ comms/gpsk31/patches/patch-src_main_C | 12 +++++++ .../patches/patch-src_psk31-transmitter_C | 12 +++++++ comms/gpsk31/patches/patch-src_server-main_C | 30 ++++++++++++++++++ comms/gpsk31/patches/patch-src_spectrum_C | 12 +++++++ comms/gpsk31/pkg/DESCR | 1 + comms/gpsk31/pkg/PLIST | 12 +++++++ 10 files changed, 138 insertions(+) create mode 100644 comms/gpsk31/Makefile create mode 100644 comms/gpsk31/distinfo create mode 100644 comms/gpsk31/patches/patch-configure_in create mode 100644 comms/gpsk31/patches/patch-gpsk_conf create mode 100644 comms/gpsk31/patches/patch-src_main_C create mode 100644 comms/gpsk31/patches/patch-src_psk31-transmitter_C create mode 100644 comms/gpsk31/patches/patch-src_server-main_C create mode 100644 comms/gpsk31/patches/patch-src_spectrum_C create mode 100644 comms/gpsk31/pkg/DESCR create mode 100644 comms/gpsk31/pkg/PLIST diff --git a/comms/gpsk31/Makefile b/comms/gpsk31/Makefile new file mode 100644 index 00000000000..1c62804c174 --- /dev/null +++ b/comms/gpsk31/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ + +COMMENT= "gtk PSK31 send and receive" + +DISTNAME= gpsk31-0.3 +CATEGORIES= comms hamradio + +HOMEPAGE= http://www.qsl.net/pg4i/linux/gpsk31.html + +MAINTAINER= Jason Wright + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +LIB_DEPENDS= gtk-x11-2.0,gdk_pixbuf-2.0,gdk-x11-2.0::x11/gtk+2 + +WANTLIB= X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr \ + Xrender atk-1.0 c cairo expat fontconfig \ + freetype glib-2.0 glitz gmodule-2.0 \ + gobject-2.0 iconv intl m pango-1.0 pangocairo-1.0 \ + pangoft2-1.0 png z ossaudio pthread stdc++ + +MASTER_SITES= http://www.qsl.net/pg4i/download/ + +AUTOCONF_VERSION= 2.59 +CONFIGURE_STYLE= autoconf no-autoheader +CONFIGURE_ARGS+= --enable-hamlib + +.include diff --git a/comms/gpsk31/distinfo b/comms/gpsk31/distinfo new file mode 100644 index 00000000000..e2584d567d6 --- /dev/null +++ b/comms/gpsk31/distinfo @@ -0,0 +1,5 @@ +MD5 (gpsk31-0.3.tar.gz) = 7MukSlOQVD3ll6N5wr3ABg== +RMD160 (gpsk31-0.3.tar.gz) = heFrUBrPLAvKJYlA06wvR+bakJI= +SHA1 (gpsk31-0.3.tar.gz) = CfW5p85NeG02ksfxIyEYnwI2yFQ= +SHA256 (gpsk31-0.3.tar.gz) = gycOOONRsTm+WDgZZrR3xZDiFmZtiw2ZiRnnE0MW5x0= +SIZE (gpsk31-0.3.tar.gz) = 157509 diff --git a/comms/gpsk31/patches/patch-configure_in b/comms/gpsk31/patches/patch-configure_in new file mode 100644 index 00000000000..90ff7644e78 --- /dev/null +++ b/comms/gpsk31/patches/patch-configure_in @@ -0,0 +1,11 @@ +$OpenBSD: patch-configure_in,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- configure.in.orig Tue May 29 23:01:56 2007 ++++ configure.in Tue May 29 23:02:18 2007 +@@ -11,6 +11,7 @@ AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm) + dnl Checks for libraries. + AC_CHECK_LIB(m, main) + AC_CHECK_LIB(pthread, main) ++AC_CHECK_LIB(ossaudio, _oss_ioctl) + AC_DEFINE(USE_PTHREAD, 1) + + if test "${ac_cv_c_compiler_gnu}" = "yes"; then diff --git a/comms/gpsk31/patches/patch-gpsk_conf b/comms/gpsk31/patches/patch-gpsk_conf new file mode 100644 index 00000000000..29a4f1257a2 --- /dev/null +++ b/comms/gpsk31/patches/patch-gpsk_conf @@ -0,0 +1,12 @@ +$OpenBSD: patch-gpsk_conf,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- gpsk.conf.orig Tue May 29 23:20:30 2007 ++++ gpsk.conf Tue May 29 23:20:36 2007 +@@ -39,7 +39,7 @@ freq = 1000 + dcd_level = 13 + lsb = 0 + ptt_device = "/dev/ttyS1" +-audio_device = "/dev/dsp" ++audio_device = "/dev/audio" + # + # Use new demodulator/rx filter? + # diff --git a/comms/gpsk31/patches/patch-src_main_C b/comms/gpsk31/patches/patch-src_main_C new file mode 100644 index 00000000000..7e694ac8cd0 --- /dev/null +++ b/comms/gpsk31/patches/patch-src_main_C @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_main_C,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- src/main.C.orig Tue May 29 22:57:54 2007 ++++ src/main.C Tue May 29 22:58:00 2007 +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/comms/gpsk31/patches/patch-src_psk31-transmitter_C b/comms/gpsk31/patches/patch-src_psk31-transmitter_C new file mode 100644 index 00000000000..e6bd6e2900a --- /dev/null +++ b/comms/gpsk31/patches/patch-src_psk31-transmitter_C @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_psk31-transmitter_C,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- src/psk31-transmitter.C.orig Tue May 29 22:56:14 2007 ++++ src/psk31-transmitter.C Tue May 29 22:56:29 2007 +@@ -11,7 +11,7 @@ + #include + #include + #include +-#include ++#include + #include + #include "psk31-coder.h" + #include "psk31-transmitter.h" diff --git a/comms/gpsk31/patches/patch-src_server-main_C b/comms/gpsk31/patches/patch-src_server-main_C new file mode 100644 index 00000000000..085f27ba987 --- /dev/null +++ b/comms/gpsk31/patches/patch-src_server-main_C @@ -0,0 +1,30 @@ +$OpenBSD: patch-src_server-main_C,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- src/server-main.C.orig Wed Nov 2 01:54:12 2005 ++++ src/server-main.C Tue May 29 23:15:53 2007 +@@ -19,7 +19,7 @@ + * thread and from user interface thread (==interface functions) + */ + +- ++#include + #include + #include + #include +@@ -33,7 +33,7 @@ + #include + #include + #include +-#include ++#include + #include + #include "psk31-receiver.h" + #include "psk31-transmitter.h" +@@ -60,7 +60,7 @@ int full_duplex; + int chans; + int size; + int bits; +-static char *audio_path="/dev/dsp"; ++static char *audio_path="/dev/audio"; + static char *ptt_path=NULL; + static int audiofd=-1, pttfd=-1; + static int ptt_invert=0; diff --git a/comms/gpsk31/patches/patch-src_spectrum_C b/comms/gpsk31/patches/patch-src_spectrum_C new file mode 100644 index 00000000000..f65ef32243f --- /dev/null +++ b/comms/gpsk31/patches/patch-src_spectrum_C @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_spectrum_C,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +--- src/spectrum.C.orig Tue May 29 22:58:21 2007 ++++ src/spectrum.C Tue May 29 22:58:28 2007 +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + + #include + #include diff --git a/comms/gpsk31/pkg/DESCR b/comms/gpsk31/pkg/DESCR new file mode 100644 index 00000000000..eb274afa329 --- /dev/null +++ b/comms/gpsk31/pkg/DESCR @@ -0,0 +1 @@ +gpsk31 is a PSK31 sender and receiver using the gtk+ interface. diff --git a/comms/gpsk31/pkg/PLIST b/comms/gpsk31/pkg/PLIST new file mode 100644 index 00000000000..03e76036446 --- /dev/null +++ b/comms/gpsk31/pkg/PLIST @@ -0,0 +1,12 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/05/30 05:27:44 jason Exp $ +bin/gpsk31 +@man man/man1/gpsk31.1 +share/applications/ +share/applications/gpsk31.desktop +share/gpsk31/ +share/gpsk31/README +share/gpsk31/gpsk.conf +share/gpsk31/psk31.cod +share/nls/pl_PL.ISO_8859-2/ +share/pixmaps/ +share/pixmaps/gpsk31.png