summaryrefslogtreecommitdiff
path: root/ham/codec2
diff options
context:
space:
mode:
authordbj <dbj>2014-07-21 07:30:50 +0000
committerdbj <dbj>2014-07-21 07:30:50 +0000
commitfdb9de342723fff9b5cab43aeff01042d7a68b40 (patch)
tree77c3f74fd002fe53d708c31635c3c0031d3a507f /ham/codec2
parentc4d5de67f0e57a320ab4ec6c07c2fcb8cd3f3b6c (diff)
downloadpkgsrc-fdb9de342723fff9b5cab43aeff01042d7a68b40.tar.gz
import codec2 from the freedv project at http://freedv.org/
Diffstat (limited to 'ham/codec2')
-rw-r--r--ham/codec2/DESCR7
-rw-r--r--ham/codec2/Makefile29
-rw-r--r--ham/codec2/PLIST20
-rw-r--r--ham/codec2/buildlink3.mk12
-rw-r--r--ham/codec2/distinfo5
5 files changed, 73 insertions, 0 deletions
diff --git a/ham/codec2/DESCR b/ham/codec2/DESCR
new file mode 100644
index 00000000000..212b186d6b9
--- /dev/null
+++ b/ham/codec2/DESCR
@@ -0,0 +1,7 @@
+Codec2 is an open source low bit rate speech codec designed for
+communications quality speech at 2400 bit/s and below. Applications
+include low bandwidth HF/VHF digital radio and VOIP trunking. Codec 2
+operating at 2400 bit/s can send 26 phone calls using the bandwidth
+required for one 64 kbit/s uncompressed phone call. It fills a gap in
+open source, free-as-in-speech voice codecs beneath 5000 bit/s and is
+released under the GNU Lesser General Public License (LGPL).
diff --git a/ham/codec2/Makefile b/ham/codec2/Makefile
new file mode 100644
index 00000000000..6367f209c5c
--- /dev/null
+++ b/ham/codec2/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2014/07/21 07:30:50 dbj Exp $
+#
+
+DISTNAME= codec2-0.3.0.1698
+WRKSRC= ${WRKDIR}/codec2
+CATEGORIES= ham
+# svn://svn.code.sf.net/p/freetel/code/codec2-dev
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= dbj@NetBSD.org
+HOMEPAGE= http://rowetel.com/codec2.html
+COMMENT= Speech codec for 2400 bit/s and below
+
+LICENSE= gnu-lgpl-v2.1
+
+# This package doesn't really use c++, but cmake probes for it
+# causing the configure to fail unless we declare it here. Maybe
+# there is a way to tell cmake to not require c++
+USE_LANGUAGES= c c++
+
+USE_CMAKE=yes
+CONFIGURE_DIRS=build
+CMAKE_ARG_PATH=..
+
+pre-configure:
+ cd ${WRKSRC} && mkdir build
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ham/codec2/PLIST b/ham/codec2/PLIST
new file mode 100644
index 00000000000..2baf6f39851
--- /dev/null
+++ b/ham/codec2/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1 2014/07/21 07:30:50 dbj Exp $
+bin/c2dec
+bin/c2demo
+bin/c2enc
+bin/c2sim
+bin/fdmdv_demod
+bin/fdmdv_get_test_bits
+bin/fdmdv_interleave
+bin/fdmdv_mod
+bin/fdmdv_put_test_bits
+bin/fec_dec
+bin/fec_enc
+bin/insert_errors
+include/codec2/codec2.h
+include/codec2/codec2_fdmdv.h
+include/codec2/codec2_fifo.h
+include/codec2/comp.h
+include/codec2/golay23.h
+lib/libcodec2.so
+lib/libcodec2.0.3.so
diff --git a/ham/codec2/buildlink3.mk b/ham/codec2/buildlink3.mk
new file mode 100644
index 00000000000..b44c96f3e0f
--- /dev/null
+++ b/ham/codec2/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/07/21 07:30:50 dbj Exp $
+
+BUILDLINK_TREE+= codec2
+
+.if !defined(CODEC2_BUILDLINK3_MK)
+CODEC2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.codec2+= codec2>=0.3.0.1698
+BUILDLINK_PKGSRCDIR.codec2?= ../../ham/codec2
+.endif # CODEC2_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -codec2
diff --git a/ham/codec2/distinfo b/ham/codec2/distinfo
new file mode 100644
index 00000000000..933f8bfe410
--- /dev/null
+++ b/ham/codec2/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/07/21 07:30:50 dbj Exp $
+
+SHA1 (codec2-0.3.0.1698.tgz) = 18ea4e0d0348f8ce9eaece578e34626bbd4bfd02
+RMD160 (codec2-0.3.0.1698.tgz) = 3babc819ae69b5b246fb8ba04f84fc5958831e76
+Size (codec2-0.3.0.1698.tgz) = 12149601 bytes