initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
ympd is implemented only in C
|
||||
|
||||
By default, CMake assumes that the project is using both C and C++. By
|
||||
explicitly passing 'C' as argument of the project() macro, we tell
|
||||
CMake that only C is used, which prevents CMake from checking if a C++
|
||||
compiler exists.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/CMakeLists.txt
|
||||
===================================================================
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
-project (ympd)
|
||||
+project (ympd C)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR "1")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "2")
|
||||
@@ -0,0 +1,43 @@
|
||||
From 2268e0f0f372a61827b912155a1796490968b3ff Mon Sep 17 00:00:00 2001
|
||||
From: SuperBFG7 <daniel@despite.ch>
|
||||
Date: Tue, 2 Jun 2020 12:41:52 +0200
|
||||
Subject: [PATCH] added forward declarations
|
||||
|
||||
|
||||
[Retrieved (and slightly updated to remove update of dirble_api_token)
|
||||
from:
|
||||
https://github.com/notandy/ympd/pull/191/commits/2268e0f0f372a61827b912155a1796490968b3ff]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/mpd_client.c | 2 ++
|
||||
src/mpd_client.h | 6 ++++--
|
||||
2 files changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/mpd_client.c b/src/mpd_client.c
|
||||
index 2911e461..9f003ab0 100644
|
||||
--- a/src/mpd_client.c
|
||||
+++ b/src/mpd_client.c
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
/* forward declaration */
|
||||
static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);
|
||||
+char dirble_api_token[28];
|
||||
+struct t_mpd mpd;
|
||||
|
||||
const char * mpd_cmd_strs[] = {
|
||||
MPD_CMDS(GEN_STR)
|
||||
diff --git a/src/mpd_client.h b/src/mpd_client.h
|
||||
index 447dd563..9342c550 100644
|
||||
--- a/src/mpd_client.h
|
||||
+++ b/src/mpd_client.h
|
||||
@@ -96,6 +96,8 @@ struct t_mpd {
|
||||
|
||||
int song_id;
|
||||
unsigned queue_version;
|
||||
-} mpd;
|
||||
+};
|
||||
+
|
||||
+extern struct t_mpd mpd;
|
||||
|
||||
struct t_mpd_client_session {
|
||||
int song_id;
|
||||
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_YMPD
|
||||
bool "ympd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_LIBMPDCLIENT
|
||||
help
|
||||
ympd, a standalone MPD Web GUI written in C, utilizing
|
||||
Websockets and Bootstrap/JS
|
||||
|
||||
https://www.ympd.org/
|
||||
|
||||
comment "ympd needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# locally computed
|
||||
sha256 d9f68920cd93d1cfa971e1d7b9162a2b1724909bc9753c1338cecb3688d234d5 ympd-1.3.0.tar.gz
|
||||
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 LICENSE
|
||||
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# ympd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
YMPD_VERSION = 1.3.0
|
||||
YMPD_SITE = $(call github,notandy,ympd,v$(YMPD_VERSION))
|
||||
YMPD_LICENSE = GPL-2.0
|
||||
YMPD_LICENSE_FILES = LICENSE
|
||||
YMPD_DEPENDENCIES = libmpdclient
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
YMPD_DEPENDENCIES += openssl
|
||||
YMPD_CONF_OPTS += -DWITH_SSL=ON
|
||||
else
|
||||
YMPD_CONF_OPTS += -DWITH_SSL=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user