mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 16:06:19 +00:00
28 lines
1.1 KiB
Makefile
28 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-bsnes-hd"
|
|
PKG_VERSION="04821703aefdc909a4fd66d168433fcac06c2ba7"
|
|
PKG_SHA256="f3c5b4480c412af869fd0b050c80160308acdc5feb6a5c017dbcb9dd5fd6a725"
|
|
PKG_LICENSE="GPLv3"
|
|
PKG_SITE="https://github.com/DerKoun/bsnes-hd"
|
|
PKG_URL="https://github.com/DerKoun/bsnes-hd/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_BRANCH="master"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Fork of bsnes that adds HD video features."
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
make_target() {
|
|
make -C bsnes -f GNUmakefile target="libretro" compiler="${CXX}" CXXFLAGS="${CXXFLAGS}" platform=linux local=false binary=library
|
|
}
|
|
|
|
PKG_LIBNAME="bsnes_hd_beta_libretro.so"
|
|
PKG_LIBPATH="bsnes/out/${PKG_LIBNAME}"
|
|
PKG_LIBVAR="BSNES-HD_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
|
|
}
|