d66805a36d
Signed-off-by: Matthias Reichl <hias@horus.com>
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-fbneo"
|
|
PKG_VERSION="a19f3b55d35a45d897ce3eceaf71353c929ece3e"
|
|
PKG_SHA256="49006906608c7fd22355614c7a04bdda6987b87fb31231a1921872abc2029cd2"
|
|
PKG_LICENSE="OSS"
|
|
PKG_SITE="https://github.com/libretro/FBNeo"
|
|
PKG_URL="https://github.com/libretro/FBNeo/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain kodi-platform"
|
|
PKG_LONGDESC="game.libretro.fbneo: FinalBurn Neo GameClient for Kodi"
|
|
PKG_TOOLCHAIN="make"
|
|
PKG_BUILD_FLAGS="-gold +lto"
|
|
|
|
PKG_LIBNAME="fbneo_libretro.so"
|
|
PKG_LIBPATH="src/burner/libretro/${PKG_LIBNAME}"
|
|
PKG_LIBVAR="FBNEO_LIB"
|
|
|
|
PKG_MAKE_OPTS_TARGET="-C src/burner/libretro/ GIT_VERSION=${PKG_VERSION:0:7}"
|
|
|
|
pre_configure_target() {
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" platform=armv"
|
|
|
|
# NEON Support
|
|
if target_has_feature neon; then
|
|
PKG_MAKE_OPTS_TARGET+="-neon"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}
|
|
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME}
|
|
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" > ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake
|
|
}
|