distribution/packages/ui/emulationstation/package.mk

72 lines
2.6 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2020-present Fewtarius
PKG_NAME="emulationstation"
2022-04-04 14:26:56 +00:00
PKG_VERSION="12acf23"
2022-03-07 03:57:10 +00:00
PKG_GIT_CLONE_BRANCH="main"
2022-02-05 14:23:32 +00:00
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/JustEnoughLinuxOS/emulationstation"
PKG_URL="${PKG_SITE}.git"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="boost toolchain SDL2 freetype curl freeimage bash rapidjson ${OPENGLES} SDL2_mixer fping p7zip vlc"
PKG_NEED_UNPACK="busybox"
PKG_SHORTDESC="Emulationstation emulator frontend"
PKG_BUILD_FLAGS="-gold"
GET_HANDLER_SUPPORT="git"
2022-02-10 21:39:12 +00:00
PKG_PATCH_DIRS+="${DEVICE}"
2022-02-05 14:23:32 +00:00
# themes for Emulationstation
PKG_DEPENDS_TARGET="${PKG_DEPENDS_TARGET} es-theme-art-book-next"
PKG_CMAKE_OPTS_TARGET=" -DENABLE_EMUELEC=1 -DGLES2=1 -DDISABLE_KODI=1 -DENABLE_FILEMANAGER=0 -DCEC=0"
pre_configure_target() {
if [ -f ~/developer_settings.conf ]; then
. ~/developer_settings.conf
fi
}
makeinstall_target() {
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/config/locale
cp -rf ${PKG_BUILD}/locale/lang/* ${INSTALL}/usr/config/locale/
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/lib
ln -sf /storage/.config/emulationstation/locale ${INSTALL}/usr/lib/locale
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/config/emulationstation/resources
cp -rf ${PKG_BUILD}/resources/* ${INSTALL}/usr/config/emulationstation/resources/
rm -rf ${INSTALL}/usr/config/emulationstation/resources/logo.png
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/lib/${PKG_PYTHON_VERSION}
cp -rf ${PKG_DIR}/bluez/* ${INSTALL}/usr/lib/${PKG_PYTHON_VERSION}
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/bin
ln -sf /storage/.config/emulationstation/resources ${INSTALL}/usr/bin/resources
cp -rf ${PKG_BUILD}/emulationstation ${INSTALL}/usr/bin
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/etc/emulationstation/
ln -sf /storage/.config/emulationstation/themes ${INSTALL}/etc/emulationstation/
ln -sf /usr/config/emulationstation/es_systems.cfg ${INSTALL}/etc/emulationstation/es_systems.cfg
2022-02-05 14:23:32 +00:00
2022-03-28 21:33:58 +00:00
cp -rf ${PKG_DIR}/config/*.cfg ${INSTALL}/usr/config/emulationstation
cp -rf ${PKG_DIR}/config/scripts ${INSTALL}/usr/config/emulationstation
2022-02-05 14:23:32 +00:00
if [ "${DEVICE}" == "RG552" ]
then
2022-03-28 21:33:58 +00:00
sed -i 's#<string name="AudioDevice" value="Playback" />#<string name="AudioDevice" value="DAC" />#' ${INSTALL}/usr/config/emulationstation/es_settings.cfg
2022-02-05 14:23:32 +00:00
fi
2022-03-28 21:33:58 +00:00
chmod +x ${INSTALL}/usr/config/emulationstation/scripts/*
find ${INSTALL}/usr/config/emulationstation/scripts/ -type f -exec chmod o+x {} \;
ln -sf /storage/.cache/system_timezone ${INSTALL}/etc/timezone
2022-02-05 14:23:32 +00:00
}
post_install() {
2022-03-28 21:33:58 +00:00
mkdir -p ${INSTALL}/usr/share
ln -sf /storage/.config/emulationstation/locale ${INSTALL}/usr/share/locale
2022-02-05 14:23:32 +00:00
}