Initial Commit
- initial default booting image
This commit is contained in:
31
package/libshout/0001-icy-include-stdlib.h-and-stdio.h.patch
Normal file
31
package/libshout/0001-icy-include-stdlib.h-and-stdio.h.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From 3ea67b511bdf4f12b3d5de4d7e133badf8c18d54 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Janniaux <ajanni@videolabs.io>
|
||||
Date: Wed, 14 Sep 2022 16:29:22 +0200
|
||||
Subject: [PATCH] icy: include stdlib.h and stdio.h
|
||||
|
||||
malloc, free, and snprintf had no valid previous declaration, making the
|
||||
build fail with clang.
|
||||
|
||||
Upstream: https://gitlab.xiph.org/xiph/icecast-libshout/-/merge_requests/4
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/icy.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/icy.c b/src/icy.c
|
||||
index 8e83552..4de3c14 100644
|
||||
--- a/src/icy.c
|
||||
+++ b/src/icy.c
|
||||
@@ -24,6 +24,8 @@
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
+#include <stdlib.h> /* for free() and malloc() */
|
||||
+#include <stdio.h> /* for snprintf() */
|
||||
#include <string.h>
|
||||
|
||||
#include <shout/shout.h>
|
||||
--
|
||||
2.47.3
|
||||
|
||||
30
package/libshout/0002-legacy-include-stdlib.h.patch
Normal file
30
package/libshout/0002-legacy-include-stdlib.h.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From 1742df325b52eef5af32c40893d821f895dc9d88 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Janniaux <ajanni@videolabs.io>
|
||||
Date: Wed, 14 Sep 2022 16:30:03 +0200
|
||||
Subject: [PATCH] legacy: include stdlib.h
|
||||
|
||||
free() had no previous declaration, making the build fail with clang.
|
||||
|
||||
Upstream: https://gitlab.xiph.org/xiph/icecast-libshout/-/merge_requests/4
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/legacy.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/legacy.c b/src/legacy.c
|
||||
index 3e1d3d7..e0ed961 100644
|
||||
--- a/src/legacy.c
|
||||
+++ b/src/legacy.c
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "shout_private.h"
|
||||
#include "util.h"
|
||||
|
||||
+#include <stdlib.h> /* for free() */
|
||||
+
|
||||
int shout_set_format(shout_t *self, unsigned int format)
|
||||
{
|
||||
if (!self)
|
||||
--
|
||||
2.47.3
|
||||
|
||||
10
package/libshout/Config.in
Normal file
10
package/libshout/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_LIBSHOUT
|
||||
bool "libshout"
|
||||
select BR2_PACKAGE_LIBOGG
|
||||
help
|
||||
Libshout is a library for communicating with and sending data
|
||||
to an icecast server. It handles the socket connection, the
|
||||
timing of the data, and prevents bad data from getting to the
|
||||
icecast server.
|
||||
|
||||
http://icecast.org/download/
|
||||
8
package/libshout/libshout.hash
Normal file
8
package/libshout/libshout.hash
Normal file
@@ -0,0 +1,8 @@
|
||||
# From https://ftp.osuosl.org/pub/xiph/releases/libshout/SHA512SUMS
|
||||
sha512 e8478cdbf9a27674c16a7b620d1576f2e31a47262b8e29b314d0f46d4e5be24b9a29790b7b226f48939bc34cacf5734fae0aa5686c7ed5879cdbd827ff8e0339 libshout-2.4.6.tar.gz
|
||||
|
||||
# From https://ftp.osuosl.org/pub/xiph/releases/libshout/SHA256SUMS
|
||||
sha256 39cbd4f0efdfddc9755d88217e47f8f2d7108fa767f9d58a2ba26a16d8f7c910 libshout-2.4.6.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 7a4436f9ec37603356791c87de3bc444989befd2682d29efb3d97604e04c1852 COPYING
|
||||
45
package/libshout/libshout.mk
Normal file
45
package/libshout/libshout.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# libshout
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSHOUT_VERSION = 2.4.6
|
||||
LIBSHOUT_SITE = https://downloads.xiph.org/releases/libshout
|
||||
LIBSHOUT_LICENSE = LGPL-2.0+
|
||||
LIBSHOUT_LICENSE_FILES = COPYING
|
||||
LIBSHOUT_INSTALL_STAGING = YES
|
||||
LIBSHOUT_DEPENDENCIES = host-pkgconf libogg
|
||||
LIBSHOUT_CONF_OPTS = \
|
||||
--disable-examples \
|
||||
--disable-tools
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
|
||||
LIBSHOUT_CONF_OPTS += --enable-theora
|
||||
LIBSHOUT_DEPENDENCIES += libtheora
|
||||
else
|
||||
LIBSHOUT_CONF_OPTS += --disable-theora
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
||||
LIBSHOUT_CONF_OPTS += --enable-vorbis
|
||||
LIBSHOUT_DEPENDENCIES += libvorbis
|
||||
else
|
||||
LIBSHOUT_CONF_OPTS += --disable-vorbis
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
||||
LIBSHOUT_CONF_OPTS += --enable-speex
|
||||
LIBSHOUT_DEPENDENCIES += speex
|
||||
else
|
||||
LIBSHOUT_CONF_OPTS += --disable-speex
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBSHOUT_CONF_OPTS += --with-openssl
|
||||
LIBSHOUT_DEPENDENCIES += openssl
|
||||
else
|
||||
LIBSHOUT_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user