0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-10-13 19:44:48 +00:00
Files
2022-12-16 00:42:11 +02:00

39 lines
1.1 KiB
Makefile

PKG_NAME="openlara"
PKG_VERSION="96989ac41ae55a42b19916dc8191f74be40e1b07"
PKG_LICENSE="BSD"
PKG_SITE="https://github.com/libretro/openlara"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Classic Tomb Raider open-source engine"
PKG_LONGDESC="Classic Tomb Raider open-source engine"
PKG_TOOLCHAIN="make"
PKG_MAKE_OPTS_TARGET="-C src/platform/libretro/"
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
fi
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
PKG_MAKE_OPTS_TARGET+=" GLES=1"
fi
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${VULKAN}"
fi
pre_make_target() {
if [ "${OPENGLES}" = "bcm2835-driver" ]; then
CFLAGS+=" -I${SYSROOT_PREFIX}/usr/include/interface/vcos/pthreads \
-I${SYSROOT_PREFIX}/usr/include/interface/vmcs_host/linux"
CXXFLAGS+=" -I${SYSROOT_PREFIX}/usr/include/interface/vcos/pthreads \
-I${SYSROOT_PREFIX}/usr/include/interface/vmcs_host/linux"
fi
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp -v src/platform/libretro/*_libretro.so ${INSTALL}/usr/lib/libretro/
}