forked from libretro/Lakka-LibreELEC
24 lines
937 B
Makefile
24 lines
937 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-81"
|
|
PKG_VERSION="340a51b250fb8fbf1a9e5d3ad3924044250064e0"
|
|
PKG_SHA256="15c84d2489e02353d0d0b681a5a069902b1861ccb9b8df15cd48b36d57e32dbd"
|
|
PKG_LICENSE="GPLv3"
|
|
PKG_SITE="https://github.com/libretro/81-libretro"
|
|
PKG_URL="https://github.com/libretro/81-libretro/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="A port of the EightyOne ZX81 Emulator to libretro"
|
|
PKG_TOOLCHAIN="make"
|
|
PKG_MAKE_OPTS_TARGET="-f Makefile.libretro"
|
|
|
|
PKG_LIBNAME="81_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="81_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
|
|
}
|