distribution/packages/virtual/image/package.mk

91 lines
2.7 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 \
2023-04-23 19:58:11 +00:00
p7zip file initramfs grep wget util-linux zstd lz4 empty lzo libzip \
bash coreutils modules system-utils autostart quirks powerstate gnupg \
gzip six lynx xmlstarlet vim pyudev dialog dbus-python network jelos"
PKG_UI="emulationstation es-themes jslisten textviewer"
PKG_UI_TOOLS="fileman fbgrab"
2023-09-03 14:36:33 +00:00
PKG_GRAPHICS="imagemagick"
2023-04-23 19:58:11 +00:00
2023-10-17 01:34:51 +00:00
PKG_FONTS="corefonts"
2023-07-15 23:22:41 +00:00
PKG_MULTIMEDIA="ffmpeg vlc mpv gmu"
PKG_SOUND="espeak libao"
PKG_SYNC="synctools"
PKG_TOOLS="patchelf git ectool make i2c-tools evtest powertop"
PKG_DEBUG="debug"
if [ "${BASE_ONLY}" = "true" ]
then
EMULATION_DEVICE=no
ENABLE_32BIT=no
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS}"
else
2023-08-11 22:17:56 +00:00
PKG_DEPENDS_TARGET+=" ${PKG_TOOLS} ${PKG_FONTS} ${PKG_SOUND} ${PKG_SYNC} ${PKG_GRAPHICS} ${PKG_UI} ${PKG_UI_TOOLS} ${PKG_MULTIMEDIA} misc-packages"
# GL demos and tools
[ "${OPENGL_SUPPORT}" = "yes" ]&& PKG_DEPENDS_TARGET+=" mesa-demos glmark2"
# Sound support
2023-08-11 22:17:56 +00:00
[ "${PIPEWIRE_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" alsa pulseaudio pipewire wireplumber"
fi
# 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"
[ "${DEBUG_SUPPORT}" = "yes" ] && PKG_DEPENDS_TARGET+=" ${PKG_DEBUG}"
# 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