distribution/packages/emulators/libretro/lrps2/package.mk
2023-03-04 10:19:56 -05:00

56 lines
1.8 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present Fewtarius
PKG_NAME="lrps2"
PKG_VERSION="f3c8743d6a42fe429f703b476fecfdb5655a98a9"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_DEPENDS_TARGET="toolchain alsa-lib freetype zlib libpng libaio libsamplerate libfmt libpcap soundtouch yamlcpp wxwidgets"
PKG_SITE="https://github.com/libretro/LRPS2"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="libretro"
PKG_SHORTDESC="Hard fork / port of PCSX2. Will target only Libretro specifically."
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
if [ "${DISPLAYSERVER}" = "wl" ]; then
PKG_DEPENDS_TARGET+=" wayland ${WINDOWMANAGER}"
fi
PKG_CMAKE_OPTS_TARGET=" \
-DSDL2_API=TRUE \
-DDISABLE_PCSX2_WRAPPER=1 \
-DPACKAGE_MODE=FALSE \
-DPCSX2_TARGET_ARCHITECTURES=x86_64 \
-DENABLE_TESTS=OFF \
-DEXTRA_PLUGINS=OFF \
-DQT_BUILD=FALSE \
-DBUILD_SHARED_LIBS=OFF \
-DUSE_SYSTEM_LIBS=OFF \
-DDISABLE_ADVANCE_SIMD=ON \
-DUSE_VTUNE=OFF \
-DUSE_VULKAN=ON \
-DGTK3_API=FALSE \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=FALSE \
-DCMAKE_BUILD_TYPE=Release"
pre_configure_target() {
export LDFLAGS="${LDFLAGS} -laio"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp ${PKG_BUILD}/.${TARGET_NAME}/pcsx2/pcsx2_libretro.so ${INSTALL}/usr/lib/libretro/
}