summaryrefslogtreecommitdiff
path: root/ham/freedv
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2014-07-21 07:34:17 +0000
committerdbj <dbj@pkgsrc.org>2014-07-21 07:34:17 +0000
commit74a332ddaedbc49538717398e39604b6d955818a (patch)
treec8c1916a904dd8587fa56b062963a474aa5d5787 /ham/freedv
parentc71470694fb1781df72d867af5887b49b2e2f3f4 (diff)
downloadpkgsrc-74a332ddaedbc49538717398e39604b6d955818a.tar.gz
add freedv from the FreeDV project at http://freedv.org/
Diffstat (limited to 'ham/freedv')
-rw-r--r--ham/freedv/DESCR14
-rw-r--r--ham/freedv/Makefile37
-rw-r--r--ham/freedv/PLIST2
-rw-r--r--ham/freedv/distinfo6
-rw-r--r--ham/freedv/patches/patch-configure.ac53
5 files changed, 112 insertions, 0 deletions
diff --git a/ham/freedv/DESCR b/ham/freedv/DESCR
new file mode 100644
index 00000000000..e0ce8cb947f
--- /dev/null
+++ b/ham/freedv/DESCR
@@ -0,0 +1,14 @@
+FreeDV is a GUI application for Windows and Linux (MacOS and BSD are
+in testing) that allows any SSB radio to be used for low bit rate
+digital voice.
+
+Speech is compressed down to 1400 bit/s then modulated onto a 1100 Hz
+wide QPSK signal which is sent to the Mic input of a SSB radio. On
+receive, the signal is received by the SSB radio, then demodulated and
+decoded by FreeDV.
+
+FreeDV was built by an international team of Radio Amateurs working
+together on coding, design, user interface and testing. FreeDV is open
+source software, released under the GNU Public License version
+2.1. The FDMDV modem and Codec 2 Speech codec used in FreeDV are also
+open source.
diff --git a/ham/freedv/Makefile b/ham/freedv/Makefile
new file mode 100644
index 00000000000..19d280b6fc7
--- /dev/null
+++ b/ham/freedv/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2014/07/21 07:34:17 dbj Exp $
+#
+
+VERSION= 0.97.0.1696
+PKGNAME= freedv-${VERSION}
+DISTNAME= fdmdv2-${VERSION}
+WRKSRC= ${WRKDIR}/fdmdv2
+CATEGORIES= ham
+# svn://svn.code.sf.net/p/freetel/code/fdmdv2
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= dbj@NetBSD.org
+HOMEPAGE= http://freedv.org/
+COMMENT= FreeDV: HF Digital Voice for Radio Amateurs
+
+LICENSE= gnu-lgpl-v2.1
+
+USE_LANGUAGES=c c++
+
+CHECK_PORTABILITY_SKIP+= configure
+
+USE_CMAKE=yes
+CONFIGURE_DIRS=build
+BUILD_DIRS=${CONFIGURE_DIRS}
+CMAKE_ARG_PATH=..
+
+pre-configure:
+ cd ${WRKSRC} && mkdir build
+
+.include "../../ham/codec2/buildlink3.mk"
+.include "../../ham/hamlib/buildlink3.mk"
+.include "../../audio/sox/buildlink3.mk"
+.include "../../audio/portaudio-devel/buildlink3.mk"
+.include "../../audio/libsamplerate/buildlink3.mk"
+.include "../../x11/wxGTK30/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ham/freedv/PLIST b/ham/freedv/PLIST
new file mode 100644
index 00000000000..dfd505867c0
--- /dev/null
+++ b/ham/freedv/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2014/07/21 07:34:17 dbj Exp $
+bin/freedv
diff --git a/ham/freedv/distinfo b/ham/freedv/distinfo
new file mode 100644
index 00000000000..e2a47fbbfee
--- /dev/null
+++ b/ham/freedv/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2014/07/21 07:34:17 dbj Exp $
+
+SHA1 (fdmdv2-0.97.0.1696.tgz) = c99311738ffb6960416dd261a11b08756827dc6e
+RMD160 (fdmdv2-0.97.0.1696.tgz) = 122f630f7651607501c84a2109c92f989c04e519
+Size (fdmdv2-0.97.0.1696.tgz) = 1537981 bytes
+SHA1 (patch-configure.ac) = 6a4ad2f97879c0a04f1911c204cc5c40e7423580
diff --git a/ham/freedv/patches/patch-configure.ac b/ham/freedv/patches/patch-configure.ac
new file mode 100644
index 00000000000..85de0ad34b6
--- /dev/null
+++ b/ham/freedv/patches/patch-configure.ac
@@ -0,0 +1,53 @@
+$NetBSD: patch-configure.ac,v 1.1 2014/07/21 07:34:17 dbj Exp $
+
+--- configure.ac.orig 2013-09-29 21:31:58.000000000 +0000
++++ configure.ac
+@@ -18,7 +18,7 @@ AC_ARG_ENABLE([about-dialog],
+ [enable_about_dialog=yes],
+ [enable_about_dialog=no])
+
+-if test "$enable_about_dialog" == "yes"; then
++if test "$enable_about_dialog" = "yes"; then
+ AC_DEFINE([_USE_ABOUT_DIALOG],,[use dlg_about.cpp/h])
+ fi
+
+@@ -45,8 +45,7 @@ AC_CHECK_LIB([m], [main])
+ AC_CHECK_LIB([ole32], [main])
+ # FIXME: Replace `main' with a function in `-loleaut32':
+ AC_CHECK_LIB([oleaut32], [main])
+-# FIXME: Replace `main' with a function in `-lportaudio':
+-AC_CHECK_LIB([portaudio], [src_new])
++AC_CHECK_LIB([portaudio], [Pa_Initialize])
+ # FIXME: Replace `main' with a function in `-lportaudiocpp':
+ AC_CHECK_LIB([portaudiocpp], [main])
+ # FIXME: Replace `main' with a function in `-lpthread':
+@@ -83,18 +82,8 @@ AC_CHECK_LIB([wxzlib], [main])
+ AC_SEARCH_LIBS([src_new], [samplerate])
+ AC_SEARCH_LIBS([sf_format_check], [sndfile])
+ AC_SEARCH_LIBS([sox_init], [sox])
+-
+-AC_MSG_CHECKING([for libctb-0.16])
+-AC_LANG_PUSH(C++)
+-LIBS="-lctb-0.16 $LIBS"
+-AC_LINK_IFELSE([AC_LANG_PROGRAM(
+- [#include <ctb-0.16/ctb.h>],
+- [ctb::SerialPort* m_serialPort;]
+- [m_serialPort = new ctb::SerialPort();])],
+- ,
+- [AC_MSG_ERROR([failed. Maybe you need to set LDPATH or CXXPATH. See configure --help])])
+-AC_LANG_POP
+-AC_MSG_RESULT([yes])
++AC_SEARCH_LIBS([golay23_init], [golay23])
++AC_SEARCH_LIBS([rig_open], [hamlib])
+
+ # Checks for header files.
+ AC_CHECK_HEADERS([limits.h stddef.h stdlib.h string.h])
+@@ -112,7 +101,7 @@ AC_CONFIG_FILES([Makefile src/Makefile])
+
+ ## wxWidgets, from http://wiki.wxwidgets.org/Autoconf
+ AM_OPTIONS_WXCONFIG
+-WX_CONFIG_CHECK([2.9.0], [wxWin=1], , [aui,html,net] )
++WX_CONFIG_CHECK([2.9.0], [wxWin=1], , [core,adv,aui,html,net] )
+ if test "$wxWin" != 1; then
+ AC_MSG_ERROR([
+ wxWidgets must be installed on your system.