mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-07 12:38:21 +00:00
60da9a6ad8
fixes build with gcc-14.1.0
27 lines
999 B
Makefile
27 lines
999 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-mame2000"
|
|
PKG_VERSION="905808fbcc3adf8c610c1c60f0e41ce4b35db1c5"
|
|
PKG_SHA256="7386a469086b7da90565e97f52e6ef02264a54262c82983dd1948ddef9bd4e63"
|
|
PKG_LICENSE="MAME"
|
|
PKG_SITE="https://github.com/libretro/mame2000-libretro"
|
|
PKG_URL="https://github.com/libretro/mame2000-libretro/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="MAME - Multiple Arcade Machine Emulator"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="mame2000_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="MAME2000_LIB"
|
|
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
PKG_MAKE_OPTS_TARGET="ARM=1 USE_CYCLONE=1 USE_DRZ80=1"
|
|
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
|
|
}
|