2023-01-02 16:49:21 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
2023-03-17 16:40:00 +00:00
|
|
|
PKG_NAME="citra-sa"
|
2023-08-02 18:56:05 +00:00
|
|
|
PKG_VERSION="64f26948fe2c2076857731621934be82a6ea3e93"
|
2023-01-02 16:49:21 +00:00
|
|
|
PKG_LICENSE="MPLv2"
|
2023-06-05 01:30:23 +00:00
|
|
|
PKG_SITE="https://github.com/JustEnoughLinuxOS/citra-canary"
|
2023-01-02 16:49:21 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-03-01 22:14:52 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain ffmpeg mesa SDL2 boost zlib libusb boost zstd"
|
2023-01-02 16:49:21 +00:00
|
|
|
PKG_LONGDESC="Citra 3DS emulator"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
GET_HANDLER_SUPPORT="git"
|
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
|
|
then
|
2023-05-25 14:15:37 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
2023-01-02 16:49:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_QT=OFF \
|
|
|
|
-DENABLE_QT_TRANSLATION=OFF \
|
|
|
|
-DENABLE_SDL2=ON \
|
2023-08-02 18:56:05 +00:00
|
|
|
-DCITRA_WARNINGS_AS_ERRORS=OFF \
|
2023-01-02 16:49:21 +00:00
|
|
|
-DUSE_DISCORD_PRESENCE=OFF"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
2023-05-25 14:15:37 +00:00
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/bin/MinSizeRel/citra ${INSTALL}/usr/bin/citra
|
2023-01-02 16:49:21 +00:00
|
|
|
cp ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
|
|
|
|
|
|
|
chmod +x ${INSTALL}/usr/bin/start_citra.sh
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config/citra-emu
|
|
|
|
cp -rf ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/citra-emu
|
|
|
|
}
|