diff options
author | Olivier Schonken <olivier.schonken@gmail.com> | 2017-07-05 13:42:36 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-31 22:33:03 +0200 |
commit | 6424c0637698f537a4b2d3a41791b3b7c63322b7 (patch) | |
tree | 52bfdaf2e8e20ccbe70ceffd280d5eb3ac8700c4 /package/libcodec2/0002-Add-option-to-disable-unit-tests.patch | |
parent | 2a98c4aea82314ef4c5b9aa9858dd86a121bdda0 (diff) | |
download | buildroot-6424c0637698f537a4b2d3a41791b3b7c63322b7.tar.gz buildroot-6424c0637698f537a4b2d3a41791b3b7c63322b7.zip |
libcodec2: bump to 0.7, switch to CMake
Since version 0.6, libcodec2 switched buildsystem from autotools to
cmake.
The patches in the libcodec2 directory were removed because they were
only relevant to the autotools build, but another patch was added to
fix the codec2.pc file being installed.
For the cmake package unittests are disabled by default. The download
site is changed to http://files.freedv.org/codec2. An option is added
to be able to install examples to target.
Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
[Thomas: switch to 0.7, add patch to fix .pc file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libcodec2/0002-Add-option-to-disable-unit-tests.patch')
-rw-r--r-- | package/libcodec2/0002-Add-option-to-disable-unit-tests.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/package/libcodec2/0002-Add-option-to-disable-unit-tests.patch b/package/libcodec2/0002-Add-option-to-disable-unit-tests.patch deleted file mode 100644 index 7822702092..0000000000 --- a/package/libcodec2/0002-Add-option-to-disable-unit-tests.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 19db6244200b870317382294f14b7d561d55a64e Mon Sep 17 00:00:00 2001 -From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> -Date: Sat, 29 Aug 2015 12:05:53 +0200 -Subject: [PATCH] Add option to disable unit tests - -The unittests require C++, while the rest of the library does not, so -this commit implements a --{enable,disable}-unittests option to -selectively enable the build of the unit tests. When not provided, the -option defaults to yes so that the existing behavior is preserved. - -Based on initial work by Bernd Kuhls. - -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---- - Makefile.am | 6 +++++- - configure.ac | 5 +++++ - 2 files changed, 10 insertions(+), 1 deletion(-) - -diff --git a/Makefile.am b/Makefile.am -index bd3ce01..1da250b 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -95,4 +95,8 @@ src/codebook/lsp8.txt \ - src/codebook/lsp9.txt \ - src/codebook/lsp10.txt - --SUBDIRS = src unittest -+SUBDIRS = src -+ -+if UNITTESTS -+SUBDIRS += unittest -+endif -diff --git a/configure.ac b/configure.ac -index 7520af6..55b7215 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -24,5 +24,10 @@ AC_CHECK_HEADERS([stdlib.h string.h]) - AC_FUNC_MALLOC - AC_CHECK_FUNCS([floor pow sqrt]) - -+AC_ARG_ENABLE([unittests], -+ AS_HELP_STRING([--disable-unittests], [Disable unittests]), -+ [], [enable_unittests=yes]) -+AM_CONDITIONAL([UNITTESTS], [test "${enable_unittests}" = "yes"]) -+ - AC_CONFIG_FILES([Makefile src/Makefile unittest/Makefile codec2.pc]) - AC_OUTPUT --- -2.5.0 - |