From cdbabcb57c8761781fac4b9a9786a028caf4145e Mon Sep 17 00:00:00 2001 From: John Date: Fri, 10 Jul 2020 13:42:56 +0200 Subject: [PATCH] bctoolbox: update to 4.4.0. --- .../bctoolbox/patches/cmake-bcunit-fix.patch | 19 +++++++++++++++++++ srcpkgs/bctoolbox/template | 12 +++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch diff --git a/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch new file mode 100644 index 0000000000..2a67c9a4c1 --- /dev/null +++ b/srcpkgs/bctoolbox/patches/cmake-bcunit-fix.patch @@ -0,0 +1,19 @@ +diff --git CMakeLists.txt CMakeLists.txt +index 6828b3f..b41262f 100644 +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -106,14 +106,9 @@ if(POLARSSL_FOUND) + endif() + + if(ENABLE_TESTS_COMPONENT) +- find_package(BcUnit CONFIG REQUIRED) +- cmake_push_check_state(RESET) +- list(APPEND CMAKE_REQUIRED_INCLUDES ${BCUNIT_INCLUDE_DIRS}) +- list(APPEND CMAKE_REQUIRED_LIBRARIES ${BCUNIT_LIBRARIES}) + check_symbol_exists("CU_get_suite" "BCUnit/BCUnit.h" HAVE_CU_GET_SUITE) + check_symbol_exists("CU_curses_run_tests" "BCUnit/BCUnit.h" HAVE_CU_CURSES) + check_symbol_exists("CU_set_trace_handler" "BCUnit/Util.h" HAVE_CU_SET_TRACE_HANDLER) +- cmake_pop_check_state() + set(TESTER_REQUIRES_PRIVATE "bcunit") + endif() + diff --git a/srcpkgs/bctoolbox/template b/srcpkgs/bctoolbox/template index f8c639bc36..20f9966ff8 100644 --- a/srcpkgs/bctoolbox/template +++ b/srcpkgs/bctoolbox/template @@ -1,16 +1,17 @@ # Template file for 'bctoolbox' pkgname=bctoolbox -version=4.3.1 +version=4.4.0 revision=1 build_style=cmake -configure_args="-DENABLE_TESTS=OFF -DENABLE_TESTS_COMPONENT=OFF" +configure_args="-DENABLE_TESTS=ON -DENABLE_TESTS_COMPONENT=OFF + -DCMAKE_MODULE_PATH=/usr/lib/cmake" makedepends="bcunit-devel mbedtls-devel" short_desc="Library to create and run audio and video streams" maintainer="Orphaned " license="GPL-2.0-only" -homepage="https://github.com/BelledonneCommunications/bctoolbox" -distfiles="https://github.com/BelledonneCommunications/bctoolbox/archive/${version}.tar.gz" -checksum=d8501e3793c10abbf913759d7a0e5f6eb3140af6bacf5e2bdcd532049bde69c0 +homepage="https://gitlab.linphone.org/BC/public/bctoolbox" +distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz" +checksum=fe64efb05de1bbd207e4abe5560ea44f5242eaf0911163b3b8fc0bec07488bb5 bctoolbox-devel_package() { depends="bctoolbox-${version}_${revision}" @@ -20,5 +21,6 @@ bctoolbox-devel_package() { vmove usr/lib/pkgconfig vmove usr/share/bctoolbox/cmake vmove "usr/lib/*.so" + vmove "usr/lib/*.a" } }