distribution/packages/virtual/image/package.mk

90 lines
2.8 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="image"
PKG_LICENSE="GPL"
PKG_SITE="https://libreelec.tv"
2022-02-05 14:23:32 +00:00
PKG_SECTION="virtual"
PKG_LONGDESC="Root package used to build and create complete image"
PKG_DEPENDS_TARGET="toolchain squashfs-tools:host dosfstools:host fakeroot:host kmod:host \
mtools:host populatefs:host libc gcc linux linux-drivers linux-firmware \
${BOOTLOADER} busybox util-linux usb-modeswitch unzip poppler jq socat \
p7zip file splash initramfs plymouth-lite grep wget util-linux imagemagick \
bash coreutils modules system-utils autostart quirks powerstate gnupg \
gzip six xmlstarlet vim pyudev dialog dbus-python network libzip lzo \
zstd lz4 empty jelos"
PKG_UI="emulationstation es-themes jslisten textviewer"
PKG_UI_TOOLS="fileman fbgrab"
PKG_FONTS="terminus-font corefonts"
PKG_MULTIMEDIA="ffmpeg vlc mpv"
PKG_BLUETOOTH="bluez pygobject"
PKG_SOUND="libao"
PKG_SYNC="synctools"
PKG_TOOLS="patchelf git ectool make i2c-tools evtest powertop"
PKG_DEBUG="debug"
if [ "${BASE_ONLY}" = "true" ]
then
EMULATION_DEVICE=false
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS} ${PKG_DEBUG}"
else
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS} ${PKG_SOUND} ${PKG_BLUETOOTH} ${PKG_SYNC} ${PKG_UI} ${PKG_UI_TOOLS} ${PKG_MULTIMEDIA} misc-packages"
# GL demos and tools
[ "${OPENGL_SUPPORT}" = "yes" ]&& PKG_DEPENDS_TARGET+=" mesa-demos glmark2"
# Sound support
[ "${ALSA_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" alsa"
fi
[ "${DISPLAYSERVER}" = "wl" ] && PKG_DEPENDS_TARGET+=" weston"
# Device is an emulation focused device
[ "${EMULATION_DEVICE}" = "yes" ] && PKG_DEPENDS_TARGET+=" emulators gamesupport"
# Add support for containers
[ "${CONTAINER_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} docker"
# 32Bit package support
[ "${ENABLE_32BIT}" == true ] && PKG_DEPENDS_TARGET+=" lib32"
2022-09-03 10:59:08 +00:00
# Architecture specific tools
[ "${ARCH}" = "x86_64" ] && PKG_DEPENDS_TARGET+=" ryzenadj lm_sensors dmidecode"
2022-02-05 14:23:32 +00:00
# Automounter support
2022-09-03 10:59:08 +00:00
[ "${UDEVIL}" = "yes" ] && PKG_DEPENDS_TARGET+=" udevil"
2022-02-05 14:23:32 +00:00
# EXFAT support
2022-09-03 10:59:08 +00:00
[ "${EXFAT}" = "yes" ] && PKG_DEPENDS_TARGET+=" exfat exfatprogs"
2022-02-05 14:23:32 +00:00
# NTFS 3G support
2022-09-03 10:59:08 +00:00
[ "${NTFS3G}" = "yes" ] && PKG_DEPENDS_TARGET+=" ntfs-3g_ntfsprogs"
2022-02-05 14:23:32 +00:00
# Virtual image creation support
2022-09-03 10:59:08 +00:00
[ "${PROJECT}" = "Generic" ] && PKG_DEPENDS_TARGET+=" virtual"
2022-02-05 14:23:32 +00:00
# Installer support
2022-09-03 10:59:08 +00:00
[ "${INSTALLER_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" installer"
2022-02-05 14:23:32 +00:00
# Devtools... (not for Release)
2022-09-03 10:59:08 +00:00
[ "${TESTING}" = "yes" ] && PKG_DEPENDS_TARGET+=" testing"
2022-02-05 14:23:32 +00:00
# OEM packages
2022-09-03 10:59:08 +00:00
[ "${OEM_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" oem"
2022-02-05 14:23:32 +00:00
# htop
2022-09-03 10:59:08 +00:00
[ "${HTOP_TOOL}" = "yes" ] && PKG_DEPENDS_TARGET+=" htop"
2022-02-05 14:23:32 +00:00
true