forked from libretro/Lakka-LibreELEC
25 lines
887 B
Makefile
25 lines
887 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-bk"
|
|
PKG_VERSION="cf70ce503ddb65051a58f3c4f61d1e258fc4c84b"
|
|
PKG_SHA256="ce80a3a9f88a15a53e7cc420708a2eaa6b3136b01e4ac4d91d84eb2409f0ab69"
|
|
PKG_LICENSE="NTP"
|
|
PKG_SITE="https://github.com/libretro/bk-emulator"
|
|
PKG_URL="https://github.com/libretro/bk-emulator/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC=""
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_MAKE_OPTS_TARGET="-f Makefile.libretro"
|
|
|
|
PKG_LIBNAME="bk_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="BK_LIB"
|
|
|
|
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
|
|
}
|