add port for gpsk31: PSK31 sender/receiver using GTK. Transmit

sounds right, but I can't easily test receive until I get home.
This commit is contained in:
jason 2007-05-30 05:27:44 +00:00
parent 8a1f31ee64
commit 3ac8e03a3f
10 changed files with 138 additions and 0 deletions

31
comms/gpsk31/Makefile Normal file
View File

@ -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 <jason@openbsd.org>
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 <bsd.port.mk>

5
comms/gpsk31/distinfo Normal file
View File

@ -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

View File

@ -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

View File

@ -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?
#

View File

@ -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 <sys/types.h>
#include <unistd.h>
#include <stdio.h>
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -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 <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <sys/ioctl.h>
#include "psk31-coder.h"
#include "psk31-transmitter.h"

View File

@ -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 <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
@@ -33,7 +33,7 @@
#include <netinet/in.h>
#include <sys/time.h>
#include <fcntl.h>
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <sys/ioctl.h>
#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;

View File

@ -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 <stdlib.h>
#include <sys/ioctl.h>
#include <fcntl.h>
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <gtk/gtk.h>
#include <stdio.h>

1
comms/gpsk31/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
gpsk31 is a PSK31 sender and receiver using the gtk+ interface.

12
comms/gpsk31/pkg/PLIST Normal file
View File

@ -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