mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 03:26:19 +00:00
29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-snes9x"
|
|
PKG_VERSION="b931ad0cb4fe209a659ce6f47b3c2986059792fa"
|
|
PKG_SHA256="471bb9a3bf68891cc83f725cdb0d71cb7e0ba443383f953b5bd9d50a49e0ddd7"
|
|
PKG_LICENSE="Non-commercial"
|
|
PKG_SITE="https://github.com/libretro/snes9x"
|
|
PKG_URL="https://github.com/libretro/snes9x/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Snes9x - Portable Super Nintendo Entertainment System (TM) emulator"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="snes9x_libretro.so"
|
|
PKG_LIBPATH="libretro/${PKG_LIBNAME}"
|
|
PKG_LIBVAR="SNES9X_LIB"
|
|
|
|
PKG_MAKE_OPTS_TARGET="-C libretro/"
|
|
|
|
if [ "${DEVICE}" = "OdroidGoAdvance" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" platform=classic_armv8_a35"
|
|
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
|
|
}
|