Add buildroot 2018-02
This commit is contained in:
20
buildroot/package/libcodec2/0001-fix-codec2-pc-in.patch
Normal file
20
buildroot/package/libcodec2/0001-fix-codec2-pc-in.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Fix includedir in codec2.pc.in
|
||||
|
||||
The template file codec2.pc.in contains the wrong path to the header
|
||||
files: they are installed in /usr/include/codec2 and not /usr/include/
|
||||
directly.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/codec2.pc.in
|
||||
===================================================================
|
||||
--- a/codec2.pc.in
|
||||
+++ b/codec2.pc.in
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
|
||||
-includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/
|
||||
+includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/codec2
|
||||
|
||||
Name: codec2
|
||||
Description: A speech codec for 2400 bit/s and below
|
||||
16
buildroot/package/libcodec2/Config.in
Normal file
16
buildroot/package/libcodec2/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LIBCODEC2
|
||||
bool "libcodec2"
|
||||
help
|
||||
Codec2 is an open source low bit rate speech codec designed
|
||||
for communications quality speech between 700 and 3200 bit/s.
|
||||
|
||||
http://rowetel.com/codec2.html
|
||||
|
||||
if BR2_PACKAGE_LIBCODEC2
|
||||
|
||||
config BR2_PACKAGE_LIBCODEC2_EXAMPLES
|
||||
bool "libcodec2_examples"
|
||||
help
|
||||
Install Codec2 examples.
|
||||
|
||||
endif
|
||||
3
buildroot/package/libcodec2/libcodec2.hash
Normal file
3
buildroot/package/libcodec2/libcodec2.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 0695bb93cd985dd39f02f0db35ebc28a98b9b88747318f90774aba5f374eadb2 codec2-0.7.tar.xz
|
||||
sha256 9ebb6f82b7380a62ac74c5f0322c88e6744dedf2ebe1f54d6f088282b39844bf COPYING
|
||||
20
buildroot/package/libcodec2/libcodec2.mk
Normal file
20
buildroot/package/libcodec2/libcodec2.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcodec2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCODEC2_VERSION = 0.7
|
||||
LIBCODEC2_SITE = https://freedv.com/wp-content/uploads/sites/8/2017/10
|
||||
LIBCODEC2_SOURCE = codec2-$(LIBCODEC2_VERSION).tar.xz
|
||||
LIBCODEC2_LICENSE = LGPL-2.1
|
||||
LIBCODEC2_LICENSE_FILES = COPYING
|
||||
LIBCODEC2_INSTALL_STAGING = YES
|
||||
LIBCODEC2_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
LIBCODEC2_CONF_OPTS = -DUNITTEST=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCODEC2_EXAMPLES),y)
|
||||
LIBCODEC2_CONF_OPTS += -DINSTALL_EXAMPLES=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user