Initial Commit
- initial default booting image
This commit is contained in:
86
package/rygel/0001-meson.build-fix-g_ir_compiler-calls.patch
Normal file
86
package/rygel/0001-meson.build-fix-g_ir_compiler-calls.patch
Normal file
@@ -0,0 +1,86 @@
|
||||
From bed9e2effae60f7d736731e93d9e699cb173f04e Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 15 Mar 2022 19:20:33 +0100
|
||||
Subject: [PATCH] meson.build: fix g_ir_compiler calls
|
||||
|
||||
Fix the following build failure when cross-compiling which is raised
|
||||
because rygel is using a custom_target target instead of the standard
|
||||
gnome.generate_gir:
|
||||
|
||||
[108/298] Generating src/librygel-core/RygelCore-2.6.typelib with a custom command
|
||||
FAILED: src/librygel-core/RygelCore-2.6.typelib
|
||||
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/nios2-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler --output src/librygel-core/RygelCore-2.6.typelib /home/giuliobenetti/autobuild/run/instance-3/output-1/build/rygel-0.40.2/build/src/librygel-core/RygelCore-2.6.gir
|
||||
Could not find GIR file 'GUPnP-1.2.gir'; check XDG_DATA_DIRS or use --includedir
|
||||
error parsing file /home/giuliobenetti/autobuild/run/instance-3/output-1/build/rygel-0.40.2/build/src/librygel-core/RygelCore-2.6.gir: Failed to parse included gir GUPnP-1.2
|
||||
|
||||
Indeed, the custom_target command is unable to retrieve the correct
|
||||
--includedir from glib-2.0.pc so add an ugly hack to custom_target calls
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/2b8956818f03f66a53480f7ed5fc0abb4f05288d
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: probably not upstreamable
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
src/librygel-core/meson.build | 4 +++-
|
||||
src/librygel-renderer-gst/meson.build | 1 +
|
||||
src/librygel-renderer/meson.build | 1 +
|
||||
src/librygel-server/meson.build | 1 +
|
||||
4 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/librygel-core/meson.build b/src/librygel-core/meson.build
|
||||
index fd43bebe..e6be2b5e 100644
|
||||
--- a/src/librygel-core/meson.build
|
||||
+++ b/src/librygel-core/meson.build
|
||||
@@ -73,7 +73,9 @@
|
||||
# so we depend on the custom_target from that step and pass the input through
|
||||
# commandline.
|
||||
custom_target('RygelCore-2.8.typelib',
|
||||
- command: [g_ir_compiler, '--output', '@OUTPUT@', join_paths(meson.current_build_dir(), 'RygelCore-2.8.gir')],
|
||||
+ command: [g_ir_compiler, '--output', '@OUTPUT@',
|
||||
+ '--includedir', meson.get_external_property('sys_root') + get_option('prefix') + '/' + gir_dir,
|
||||
+ join_paths(meson.current_build_dir(), 'RygelCore-2.8.gir')],
|
||||
output: 'RygelCore-2.8.typelib',
|
||||
depends: [ core_lib, core_gir ],
|
||||
install: true,
|
||||
diff --git a/src/librygel-renderer-gst/meson.build b/src/librygel-renderer-gst/meson.build
|
||||
index ad98a3a7..e8baefe1 100644
|
||||
--- a/src/librygel-renderer-gst/meson.build
|
||||
+++ b/src/librygel-renderer-gst/meson.build
|
||||
@@ -37,6 +37,7 @@
|
||||
'--output', '@OUTPUT@',
|
||||
'--includedir', core_girdir,
|
||||
'--includedir', renderer_girdir,
|
||||
+ '--includedir', meson.get_external_property('sys_root') + get_option('prefix') + '/' + gir_dir,
|
||||
join_paths(meson.current_build_dir(), 'RygelRendererGst-2.8.gir')],
|
||||
output: 'RygelRendererGst-2.8.typelib',
|
||||
depends: [renderer_gst_lib, renderer_lib, renderer_gst_gir, renderer_gir],
|
||||
diff --git a/src/librygel-renderer/meson.build b/src/librygel-renderer/meson.build
|
||||
index 5f401527..821273ff 100644
|
||||
--- a/src/librygel-renderer/meson.build
|
||||
+++ b/src/librygel-renderer/meson.build
|
||||
@@ -44,6 +44,7 @@
|
||||
command: [g_ir_compiler,
|
||||
'--output', '@OUTPUT@',
|
||||
'--includedir', core_girdir,
|
||||
+ '--includedir', meson.get_external_property('sys_root') + get_option('prefix') + '/' + gir_dir,
|
||||
join_paths(meson.current_build_dir(), 'RygelRenderer-2.8.gir')],
|
||||
output: 'RygelRenderer-2.8.typelib',
|
||||
depends: [ renderer_lib, renderer_gir, core_gir ],
|
||||
diff --git a/src/librygel-server/meson.build b/src/librygel-server/meson.build
|
||||
index a3bd77d9..6b084eb6 100644
|
||||
--- a/src/librygel-server/meson.build
|
||||
+++ b/src/librygel-server/meson.build
|
||||
@@ -125,6 +125,7 @@
|
||||
command: [g_ir_compiler,
|
||||
'--output', '@OUTPUT@',
|
||||
'--includedir', core_girdir,
|
||||
+ '--includedir', meson.get_external_property('sys_root') + get_option('prefix') + '/' + gir_dir,
|
||||
join_paths(meson.current_build_dir(), 'RygelServer-2.8.gir')],
|
||||
output: 'RygelServer-2.8.typelib',
|
||||
depends: [ server_lib, server_gir, core_gir ],
|
||||
--
|
||||
2.35.1
|
||||
|
||||
66
package/rygel/Config.in
Normal file
66
package/rygel/Config.in
Normal file
@@ -0,0 +1,66 @@
|
||||
config BR2_PACKAGE_RYGEL
|
||||
bool "rygel"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_USE_WCHAR # gupnp-av
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # gupnp-av
|
||||
depends on BR2_USE_MMU # gupnp-av, gobject-introspection
|
||||
depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS # gobject-introspection
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gobject-introspection
|
||||
depends on BR2_HOST_GCC_AT_LEAST_8 # gobject-introspection -> host-qemu
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC # gobject-introspection
|
||||
depends on BR2_PACKAGE_PYTHON3 # gobject-introspection
|
||||
select BR2_PACKAGE_GDK_PIXBUF
|
||||
select BR2_PACKAGE_GOBJECT_INTROSPECTION
|
||||
select BR2_PACKAGE_GUPNP_AV
|
||||
select BR2_PACKAGE_GUPNP_DLNA
|
||||
select BR2_PACKAGE_LIBGEE
|
||||
select BR2_PACKAGE_LIBMEDIAART
|
||||
select BR2_PACKAGE_SQLITE
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
help
|
||||
Rygel is a home media solution (UPnP AV MediaServer) that
|
||||
allows you to easily share audio, video and pictures to other
|
||||
devices.
|
||||
|
||||
Additionally, media player software may use Rygel to become a
|
||||
MediaRenderer that may be controlled remotely by a UPnP or
|
||||
DLNA Controller.
|
||||
|
||||
Rygel achieves interoperability with other devices in the
|
||||
market by trying to conform to the very strict requirements of
|
||||
DLNA and by converting media on-the-fly to formats that client
|
||||
devices can handle.
|
||||
|
||||
Most Rygel functionality is implemented through a plug-in
|
||||
mechanism.
|
||||
|
||||
https://rygel-project.org/
|
||||
|
||||
if BR2_PACKAGE_RYGEL
|
||||
|
||||
choice
|
||||
prompt "media engine"
|
||||
default BR2_PACKAGE_RYGEL_MEDIA_ENGINE_SIMPLE
|
||||
|
||||
config BR2_PACKAGE_RYGEL_MEDIA_ENGINE_SIMPLE
|
||||
bool "simple"
|
||||
|
||||
config BR2_PACKAGE_RYGEL_MEDIA_ENGINE_GSTREAMER1
|
||||
bool "gstreamer1"
|
||||
depends on BR2_PACKAGE_GSTREAMER1_EDITING_SERVICES
|
||||
|
||||
comment "gstreamer1 needs gst1-editing-services"
|
||||
depends on !BR2_PACKAGE_GSTREAMER1_EDITING_SERVICES
|
||||
|
||||
endchoice
|
||||
|
||||
endif # BR2_PACKAGE_RYGEL
|
||||
|
||||
comment "rygel needs python3 and a glibc toolchain w/ wchar, threads, gcc >= 4.9, host gcc >= 8"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_USES_GLIBC || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_8 || !BR2_PACKAGE_PYTHON3
|
||||
37
package/rygel/S99rygel
Normal file
37
package/rygel/S99rygel
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME=rygel
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
DAEMON=/usr/bin/$NAME
|
||||
|
||||
start() {
|
||||
printf "Starting $NAME: "
|
||||
start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping $NAME: "
|
||||
start-stop-daemon -K -q -p $PIDFILE
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
6
package/rygel/rygel.hash
Normal file
6
package/rygel/rygel.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Hash from: https://ftp.gnome.org/pub/gnome/sources/rygel/0.42/rygel-0.42.5.sha256sum:
|
||||
sha256 1133602d2e6710aade6b22aa98d93384c8d56396f344763413e96e0110b7d89f rygel-0.42.5.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
|
||||
sha256 c7d881be8ae01162510e982a32001446c6d6d18a9cecc89cc41a28bd215a0262 COPYING.logo
|
||||
68
package/rygel/rygel.mk
Normal file
68
package/rygel/rygel.mk
Normal file
@@ -0,0 +1,68 @@
|
||||
################################################################################
|
||||
#
|
||||
# rygel
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RYGEL_VERSION_MAJOR = 0.42
|
||||
RYGEL_VERSION = $(RYGEL_VERSION_MAJOR).5
|
||||
RYGEL_SOURCE = rygel-$(RYGEL_VERSION).tar.xz
|
||||
RYGEL_SITE = https://download.gnome.org/sources/rygel/$(RYGEL_VERSION_MAJOR)
|
||||
RYGEL_LICENSE = LGPL-2.1+, CC-BY-SA-3.0 (logo)
|
||||
RYGEL_LICENSE_FILES = COPYING COPYING.logo
|
||||
RYGEL_DEPENDENCIES = \
|
||||
gdk-pixbuf \
|
||||
gobject-introspection \
|
||||
gupnp-av \
|
||||
gupnp-dlna \
|
||||
libgee \
|
||||
libmediaart \
|
||||
sqlite \
|
||||
xlib_libX11 \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
RYGEL_INSTALL_STAGING = YES
|
||||
|
||||
RYGEL_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
||||
RYGEL_CONF_OPTS += \
|
||||
-Dapi-docs=false \
|
||||
-Dexamples=false \
|
||||
-Dintrospection=enabled \
|
||||
-Dman_pages=false \
|
||||
-Dtests=false
|
||||
RYGEL_PLUGINS = external,lms,mpris,ruih
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RYGEL_MEDIA_ENGINE_GSTREAMER1),y)
|
||||
RYGEL_CONF_OPTS += \
|
||||
-Dengines=gstreamer \
|
||||
-Dgstreamer=enabled
|
||||
RYGEL_PLUGINS += ,playbin,media-export,gst-launch
|
||||
RYGEL_DEPENDENCIES += \
|
||||
gst1-plugins-base \
|
||||
gstreamer1 \
|
||||
gstreamer1-editing-services
|
||||
else ifeq ($(BR2_PACKAGE_RYGEL_MEDIA_ENGINE_SIMPLE),y)
|
||||
RYGEL_CONF_OPTS += \
|
||||
-Dengines=simple \
|
||||
-Dgstreamer=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
|
||||
RYGEL_CONF_OPTS += -Dgtk=enabled
|
||||
RYGEL_DEPENDENCIES += libgtk3
|
||||
else
|
||||
RYGEL_CONF_OPTS += -Dgtk=disabled
|
||||
endif
|
||||
|
||||
RYGEL_CONF_OPTS += -Dplugins="$(RYGEL_PLUGINS)"
|
||||
|
||||
define RYGEL_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/rygel/S99rygel \
|
||||
$(TARGET_DIR)/etc/init.d/S99rygel
|
||||
endef
|
||||
|
||||
define RYGEL_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/rygel/rygel.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/rygel.service
|
||||
endef
|
||||
|
||||
$(eval $(meson-package))
|
||||
10
package/rygel/rygel.service
Normal file
10
package/rygel/rygel.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Rygel DLNA server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/rygel
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user