Files

56 lines
2.1 KiB
Tcl
Raw Permalink Normal View History

2019-04-10 20:33:50 +02:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1
platforms darwin macosx
categories audio
license LGPL-2.1
2020-02-29 15:27:44 +01:00
maintainers {ra1nb0w @ra1nb0w} openmaintainer
2019-04-10 20:33:50 +02:00
description Codec 2 is an open source speech codec designed for \
communications quality speech between 700 and 3200 bit/s
long_description {*}${description}. The main application is low-bandwidth \
HF/VHF digital radio. It fills a gap in open source \
voice codecs beneath 5000 bit/s and is released under \
the GNU Lesser General Public License (LGPL). Informal \
listening tests indicate that Codec 2 at 700 bits/s \
has better speech quality than MELP and is comparable \
to TWELP at 600 bit/s. The Codec 2 project also contains \
several modems (OFDM, FDMDV, COHPSK and mFSK) carefully \
designed for digital voice over HF radio.
homepage https://www.rowetel.com/codec2.html
2019-04-10 20:33:50 +02:00
2023-08-08 15:25:33 +02:00
github.setup drowe67 codec2 1.2.0
2025-01-10 13:14:20 +11:00
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
2023-08-08 15:25:33 +02:00
checksums rmd160 c752e2de46d2dc3c61c133cbdeab5184c19d0284 \
sha256 3e43434cd9766cd15fea6ccd307cd82630b1fea280be4d9be1cb58be5ca7e1fa \
size 7689464
2023-05-18 09:43:43 +02:00
revision 0
epoch 2
2019-11-12 13:49:00 +01:00
depends_lib-append port:libsamplerate \
port:speex
2019-04-10 20:33:50 +02:00
2021-06-17 07:46:07 +02:00
compiler.c_standard 1999
# error: invalid suffix "b10101010" on integer constant
compiler.blacklist-append \
*gcc-4.0 *gcc-4.2
2021-06-17 07:46:07 +02:00
2021-01-12 12:03:17 +01:00
configure.args-append \
-DCMAKE_BUILD_TYPE="Release"
variant lpcnet description {Enable lpcnet support (FreeDV 2020 codec)} {
depends_lib-append \
port:lpcnetfreedv
configure.args-append \
-DLPCNET=ON
}
2019-11-12 13:49:00 +01:00
2023-01-24 10:14:22 +01:00
default_variants +lpcnet
2022-02-21 17:34:29 +01:00
2019-11-12 13:49:00 +01:00
# require valgrind for many tests
test.run no