From owner-svn-ports-head@freebsd.org Mon Aug 24 19:10:04 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1EE7E3CAE33; Mon, 24 Aug 2020 19:10:04 +0000 (UTC) (envelope-from db@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bb1sR6q69z469s; Mon, 24 Aug 2020 19:10:03 +0000 (UTC) (envelope-from db@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BAB961D5B1; Mon, 24 Aug 2020 19:10:03 +0000 (UTC) (envelope-from db@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07OJA3ox074743; Mon, 24 Aug 2020 19:10:03 GMT (envelope-from db@FreeBSD.org) Received: (from db@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07OJA2Be074734; Mon, 24 Aug 2020 19:10:02 GMT (envelope-from db@FreeBSD.org) Message-Id: <202008241910.07OJA2Be074734@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: db set sender to db@FreeBSD.org using -f From: Diane Bruce Date: Mon, 24 Aug 2020 19:10:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546107 - in head/audio/codec2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: db X-SVN-Commit-Paths: in head/audio/codec2: . files X-SVN-Commit-Revision: 546107 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2020 19:10:04 -0000 Author: db Date: Mon Aug 24 19:10:01 2020 New Revision: 546107 URL: https://svnweb.freebsd.org/changeset/ports/546107 Log: - Fix under clang11 Added: head/audio/codec2/files/patch-src_codec2__ofdm.h (contents, props changed) head/audio/codec2/files/patch-src_ofdm__demod.c (contents, props changed) head/audio/codec2/files/patch-src_ofdm__get__test__bits.c (contents, props changed) head/audio/codec2/files/patch-src_ofdm__mod.c (contents, props changed) head/audio/codec2/files/patch-src_ofdm__put__test__bits.c (contents, props changed) Modified: head/audio/codec2/Makefile head/audio/codec2/files/patch-CMakeLists.txt head/audio/codec2/files/patch-src__freedv_api.c Modified: head/audio/codec2/Makefile ============================================================================== --- head/audio/codec2/Makefile Mon Aug 24 19:03:08 2020 (r546106) +++ head/audio/codec2/Makefile Mon Aug 24 19:10:01 2020 (r546107) @@ -2,6 +2,7 @@ PORTNAME= codec2 DISTVERSION= 0.8.1 +PORTREVISION= 1 CATEGORIES= audio hamradio MASTER_SITES= https://hobbes1069.fedorapeople.org/freetel/codec2/ Modified: head/audio/codec2/files/patch-CMakeLists.txt ============================================================================== --- head/audio/codec2/files/patch-CMakeLists.txt Mon Aug 24 19:03:08 2020 (r546106) +++ head/audio/codec2/files/patch-CMakeLists.txt Mon Aug 24 19:10:01 2020 (r546107) @@ -1,4 +1,4 @@ ---- CMakeLists.txt.orig 2018-09-04 06:22:53 UTC +--- CMakeLists.txt.orig 2020-08-24 16:23:49 UTC +++ CMakeLists.txt @@ -14,6 +14,7 @@ mark_as_advanced(CLEAR CMAKE_INSTALL_BINDIR @@ -8,7 +8,7 @@ ) # -@@ -114,7 +115,7 @@ option(INSTALL_EXAMPLES "Install example +@@ -114,7 +115,7 @@ option(INSTALL_EXAMPLES "Install example code." OFF) if(INSTALL_EXAMPLES) install(DIRECTORY octave raw script wav USE_SOURCE_PERMISSIONS @@ -17,10 +17,13 @@ endif() -@@ -179,6 +180,18 @@ if(UNITTEST) - endif() - - # +@@ -176,6 +177,18 @@ if(UNITTEST) + message(STATUS " Speex DSP library: ${SPEEXDSP_LIBRARY}") + if(NOT SPEEXDSP_INCLUDE_DIR AND NOT SPEEXDSP_LIBRARY) + message(FATAL_ERROR "Speex DSP library not found!") ++ endif() ++ ++ # + # Find samplerate library + # + message(STATUS "Looking for samplerate library.") @@ -30,9 +33,6 @@ + message(STATUS " samplerate library: ${SAMPLERATE_LIBRARY}") + if(NOT SAMPLERATE_INCLUDE_DIR AND NOT SAMPLERATE_LIBRARY) + message(FATAL_ERROR "samplerate library not found!") -+ endif() -+ -+ # - # Samplerate Library + endif() + # - message(STATUS "Looking for samplerate...") Modified: head/audio/codec2/files/patch-src__freedv_api.c ============================================================================== --- head/audio/codec2/files/patch-src__freedv_api.c Mon Aug 24 19:03:08 2020 (r546106) +++ head/audio/codec2/files/patch-src__freedv_api.c Mon Aug 24 19:10:01 2020 (r546107) @@ -1,11 +1,11 @@ ---- src/freedv_api.c.orig 2018-05-24 09:41:22 UTC +--- src/freedv_api.c.orig 2020-08-24 17:11:35 UTC +++ src/freedv_api.c -@@ -36,7 +36,7 @@ - #ifdef __APPLE__ - #include - #else --#include -+#include - #endif /* __APPLE__ */ +@@ -76,6 +76,8 @@ - #include "fsk.h" + /* OFDM payload data test frame for 700D */ + ++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D; ++ + extern int payload_data_bits[]; + + /*---------------------------------------------------------------------------*\ Added: head/audio/codec2/files/patch-src_codec2__ofdm.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/codec2/files/patch-src_codec2__ofdm.h Mon Aug 24 19:10:01 2020 (r546107) @@ -0,0 +1,14 @@ +--- src/codec2_ofdm.h.orig 2018-05-24 01:33:34 UTC ++++ src/codec2_ofdm.h +@@ -49,9 +49,10 @@ extern "C" { + #define OFDM_SYNC_MANUAL 2 /* fall out of sync only under operator control */ + + struct OFDM; ++struct OFDM_CONFIG; + + /* Default configuration for '700D' mode */ +-const struct OFDM_CONFIG * OFDM_CONFIG_700D; ++//const struct OFDM_CONFIG * OFDM_CONFIG_700D; + + /* create and destroy modem states */ + Added: head/audio/codec2/files/patch-src_ofdm__demod.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/codec2/files/patch-src_ofdm__demod.c Mon Aug 24 19:10:01 2020 (r546107) @@ -0,0 +1,11 @@ +--- src/ofdm_demod.c.orig 2020-08-24 16:51:44 UTC ++++ src/ofdm_demod.c +@@ -49,6 +49,8 @@ + #define NFRAMES 100 /* just log the first 100 frames */ + #define NDISCARD 20 /* BER2measure disctrds first 20 frames */ + ++const struct OFDM_CONFIG * OFDM_CONFIG_700D; ++ + extern int payload_data_bits[]; + extern int test_bits_ofdm[]; + Added: head/audio/codec2/files/patch-src_ofdm__get__test__bits.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/codec2/files/patch-src_ofdm__get__test__bits.c Mon Aug 24 19:10:01 2020 (r546107) @@ -0,0 +1,11 @@ +--- src/ofdm_get_test_bits.c.orig 2020-08-24 17:10:37 UTC ++++ src/ofdm_get_test_bits.c +@@ -36,6 +36,8 @@ + #include "ofdm_internal.h" + #include "test_bits_ofdm.h" + ++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D; ++ + int main(int argc, char *argv[]) + { + struct OFDM *ofdm; Added: head/audio/codec2/files/patch-src_ofdm__mod.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/codec2/files/patch-src_ofdm__mod.c Mon Aug 24 19:10:01 2020 (r546107) @@ -0,0 +1,10 @@ +--- src/ofdm_mod.c.orig 2020-08-24 17:09:09 UTC ++++ src/ofdm_mod.c +@@ -41,6 +41,7 @@ + + extern int payload_data_bits[]; + extern int test_bits_ofdm[]; ++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D; + + int opt_exists(char *argv[], int argc, char opt[]) { + int i; Added: head/audio/codec2/files/patch-src_ofdm__put__test__bits.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/codec2/files/patch-src_ofdm__put__test__bits.c Mon Aug 24 19:10:01 2020 (r546107) @@ -0,0 +1,11 @@ +--- src/ofdm_put_test_bits.c.orig 2020-08-24 17:20:41 UTC ++++ src/ofdm_put_test_bits.c +@@ -36,6 +36,8 @@ + #include "codec2_ofdm.h" + #include "test_bits_ofdm.h" + ++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D; ++ + #define LOG_FRAMES 100 + #define NDISCARD 20 +