2022-11-16 16:36:25 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-12-17 14:52:08 +00:00
|
|
|
# Copyright (C) 2022-present JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-11-16 16:36:25 +00:00
|
|
|
|
2023-03-17 16:40:00 +00:00
|
|
|
PKG_NAME="yuzu-sa"
|
2024-01-15 13:47:32 +00:00
|
|
|
PKG_VERSION="817c7c445dcad03756e484810445d1d3ebc2bde2"
|
2022-11-16 16:36:25 +00:00
|
|
|
PKG_ARCH="x86_64"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://github.com/yuzu-emu/yuzu"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-02-14 20:48:28 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libfmt boost ffmpeg zstd zlib libzip lz4 opus libusb nlohmann-json qt5"
|
2022-11-16 16:36:25 +00:00
|
|
|
PKG_SHORTDESC="Nintendo Switch emulator"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
GET_HANDLER_SUPPORT="git"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET+=" -DENABLE_X11=OFF"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
2023-12-02 00:27:29 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" wayland ${WINDOWMANAGER} xwayland xrandr libXi"
|
2022-11-16 16:36:25 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
|
|
fi
|
|
|
|
|
2023-02-14 20:48:28 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_QT=ON \
|
2022-11-16 16:36:25 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DYUZU_USE_BUNDLED_SDL2=OFF \
|
2022-12-31 14:47:32 +00:00
|
|
|
-DYUZU_USE_BUNDLED_QT=OFF \
|
2022-11-16 16:36:25 +00:00
|
|
|
-DYUZU_TESTS=OFF \
|
|
|
|
-DENABLE_SDL2=ON \
|
|
|
|
-DARCHITECTURE_x86_64=ON \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DENABLE_WEB_SERVICE=OFF \
|
2023-11-16 22:43:53 +00:00
|
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
|
|
-DYUZU_USE_BUNDLED_FFMPEG=OFF \
|
|
|
|
-DYUZU_USE_EXTERNAL_VULKAN_HEADERS=OFF \
|
|
|
|
-DYUZU_USE_EXTERNAL_SDL2=OFF \
|
|
|
|
-DYUZU_USE_FASTER_LD=OFF \
|
|
|
|
-DYUZU_USE_PRECOMPILED_HEADERS=OFF \
|
|
|
|
-DYUZU_USE_QT_MULTIMEDIA=ON \
|
|
|
|
-DYUZU_USE_QT_WEB_ENGINE=OFF \
|
2022-11-16 16:36:25 +00:00
|
|
|
-DUSE_DISCORD_PRESENCE=OFF"
|
2023-12-01 00:30:32 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O3|")
|
|
|
|
CXXFLAGS=$(echo ${CXXFLAGS} | sed -e "s|-Ofast|-O3|")
|
|
|
|
}
|
2022-11-16 16:36:25 +00:00
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
2022-12-30 21:35:48 +00:00
|
|
|
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/bin/yuzu* ${INSTALL}/usr/bin
|
2022-11-16 16:36:25 +00:00
|
|
|
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
|
|
|
|
|
|
|
chmod +x ${INSTALL}/usr/bin/start_yuzu.sh
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config/yuzu
|
|
|
|
cp -rf ${PKG_DIR}/config/* ${INSTALL}/usr/config/yuzu
|
|
|
|
}
|