mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-05 22:07:59 +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="3265c0ac05ec595f9cedd020d76e7f39bf081538"
|
|
PKG_SHA256="4abc999d084016d77c264912557bb55b55343db13db9b0f79d7763733dcb19af"
|
|
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
|
|
}
|