distro: allow configurable settings addon

This commit is contained in:
MilhouseVH 2018-07-23 10:16:47 +01:00
parent 9677927bf0
commit 12a385d082
2 changed files with 11 additions and 2 deletions

View File

@ -215,3 +215,6 @@
# Partition labels for USB/SD installation media # Partition labels for USB/SD installation media
DISTRO_BOOTLABEL="LIBREELEC" DISTRO_BOOTLABEL="LIBREELEC"
DISTRO_DISKLABEL="STORAGE" DISTRO_DISKLABEL="STORAGE"
# Settings package name - blank if not required
DISTRO_PKG_SETTINGS="LibreELEC-settings"

View File

@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="mediacenter" PKG_NAME="mediacenter"
PKG_VERSION="" PKG_VERSION=""
@ -23,9 +24,14 @@ if [ "$MEDIACENTER" = "kodi" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET Pillow \ PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET Pillow \
simplejson \ simplejson \
pycryptodome" pycryptodome"
# settings addon
if [ -n "$DISTRO_PKG_SETTINGS" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET $DISTRO_PKG_SETTINGS"
fi
# other packages # other packages
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET LibreELEC-settings \ PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET xmlstarlet"
xmlstarlet"
if [ "$JOYSTICK_SUPPORT" = "yes" ]; then if [ "$JOYSTICK_SUPPORT" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET peripheral.joystick" PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET peripheral.joystick"