2023-08-31 22:16:59 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 13:24:29 +00:00
|
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) (https://github.com/brooksytech)
|
2023-08-31 22:16:59 +00:00
|
|
|
|
|
|
|
PKG_NAME="vita3k-sa"
|
|
|
|
PKG_VERSION="44d8c5da9cc6bed0b670099f4d131296ff8acf25"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/Vita3K/Vita3K"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain SDL2 SDL2_image zlib libogg libvorbis gtk3 openssl"
|
|
|
|
PKG_LONGDESC="vita3k"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
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() {
|
|
|
|
|
|
|
|
mkdir -p ${PKG_BUILD}/external
|
|
|
|
[ -d "nativefiledialog-cmake" ] && rm -rf nativefiledialog-cmake
|
|
|
|
cd ${PKG_BUILD}/external && git clone https://github.com/Vita3K/nativefiledialog-cmake
|
|
|
|
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DUSE_DISCORD_RICH_PRESENCE=OFF \
|
|
|
|
-DUSE_VITA3K_UPDATE=OFF"
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
mkdir -p ${INSTALL}/usr/config/vita3k
|
2023-08-31 22:29:10 +00:00
|
|
|
cp -rf ${PKG_BUILD}/external/bin/Vita3K ${INSTALL}/usr/bin/
|
|
|
|
cp -rf ${PKG_BUILD}/external/bin/* ${INSTALL}/usr/config/vita3k/
|
|
|
|
rm -rf ${INSTALL}/usr/config/vita3k/Vita3K
|
2023-09-07 21:08:45 +00:00
|
|
|
cp ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config/vita3k/launcher
|
|
|
|
cp ${PKG_DIR}/scripts/start_vita3k.sh ${INSTALL}/usr/config/vita3k/launcher/Start\ Vita3K.sh
|
|
|
|
chmod 0755 ${INSTALL}/usr/config/vita3k/launcher/Start\ Vita3K.sh
|
2023-08-31 22:16:59 +00:00
|
|
|
}
|