distribution/packages/emulators/standalone/citra-sa/package.mk

47 lines
1.4 KiB
Makefile
Raw Normal View History

2023-01-02 16:49:21 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
2023-10-24 13:59:09 +00:00
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
2023-01-02 16:49:21 +00:00
2023-03-17 16:40:00 +00:00
PKG_NAME="citra-sa"
2023-11-07 16:18:44 +00:00
PKG_VERSION="9b2a592"
2023-01-02 16:49:21 +00:00
PKG_LICENSE="MPLv2"
2023-11-07 16:18:44 +00:00
PKG_SITE="https://github.com/citra-emu/citra"
2023-01-02 16:49:21 +00:00
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain ffmpeg mesa SDL2 boost zlib libusb boost zstd control-gen"
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
}