43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
|
||
|
|
||
|
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
|
||
|
}
|