distribution/packages/emulators/standalone/citra-sa/package.mk
2023-10-25 15:17:00 +00:00

46 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
PKG_NAME="citra-sa"
PKG_VERSION="2f4039858a082818b8fff60a7a89794c6259f146"
PKG_LICENSE="MPLv2"
PKG_SITE="https://github.com/JustEnoughLinuxOS/citra-canary"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain ffmpeg mesa SDL2 boost zlib libusb boost zstd control-gen"
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
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
fi
pre_configure_target() {
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_QT=OFF \
-DENABLE_QT_TRANSLATION=OFF \
-DENABLE_SDL2=ON \
-DCITRA_WARNINGS_AS_ERRORS=OFF \
-DUSE_DISCORD_PRESENCE=OFF"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/.${TARGET_NAME}/bin/MinSizeRel/citra ${INSTALL}/usr/bin/citra
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
}