2022-05-26 22:14:52 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="moonlight"
|
2023-03-14 21:59:38 +00:00
|
|
|
PKG_VERSION="5bb47ce8b64480048c58d6453bdb16d8742638fa"
|
2022-05-26 22:14:52 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://github.com/moonlight-stream/moonlight-embedded"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-12-25 19:05:34 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain opus SDL2 libevdev alsa curl enet avahi libvdpau libcec ffmpeg"
|
2022-05-26 22:14:52 +00:00
|
|
|
PKG_SHORTDESC="Moonlight Embedded is an open source implementation of NVIDIA's GameStream, as used by the NVIDIA Shield, but built for Linux."
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
GET_HANDLER_SUPPORT="git"
|
2022-05-28 16:43:16 +00:00
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
2022-05-26 22:14:52 +00:00
|
|
|
|
2023-06-09 10:00:06 +00:00
|
|
|
if [ "${PROJECT}" = "Rockchip" ]
|
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" librga rkmpp"
|
|
|
|
fi
|
|
|
|
|
2022-08-30 21:05:35 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
2022-12-25 19:05:34 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
2022-08-30 21:05:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
|
|
fi
|
|
|
|
|
2022-05-27 21:21:03 +00:00
|
|
|
post_makeinstall_target() {
|
2022-08-30 21:05:35 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config/moonlight
|
|
|
|
cp -R ${PKG_BUILD}/moonlight.conf ${INSTALL}/usr/config/moonlight
|
2023-04-23 22:29:32 +00:00
|
|
|
rm ${INSTALL}/usr/etc/moonlight.conf
|
|
|
|
rm ${INSTALL}/usr/share/moonlight/gamecontrollerdb.txt
|
2022-05-27 21:21:03 +00:00
|
|
|
}
|