1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/lakka/libretro_cores/pcsx2/package.mk
2023-01-29 10:30:44 +01:00

30 lines
832 B
Makefile

PKG_NAME="pcsx2"
PKG_VERSION="1f88fb5e663ff8b516dbca00f81fac271333b4aa"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/pcsx2"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="libaio toolchain xz"
PKG_LONGDESC="PCSX2 is a free and open-source PlayStation 2 (PS2) emulator"
PKG_TOOLCHAIN="cmake"
PKG_CMAKE_OPTS_TARGET="-DLIBRETRO=ON \
-DENABLE_QT=OFF \
-DCMAKE_BUILD_TYPE=Release"
if [ "${OPENGL_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
fi
pre_make_target() {
find ${PKG_BUILD} -name flags.make -exec sed -i "s:isystem :I:g" \{} \;
find ${PKG_BUILD} -name build.ninja -exec sed -i "s:isystem :I:g" \{} \;
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp -v pcsx2/pcsx2_libretro.so ${INSTALL}/usr/lib/libretro/
}