mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 03:26:19 +00:00
36 lines
1.6 KiB
Makefile
36 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-mame2003_plus"
|
|
PKG_VERSION="f2018dfc2d1317102fdc4d311cbdeae9475fb8a1"
|
|
PKG_SHA256="7416d9c08900a62e28d13770ffbea675d32e447d11366af352b0aefcb732a42a"
|
|
PKG_LICENSE="MAME"
|
|
PKG_SITE="https://github.com/libretro/mame2003-plus-libretro"
|
|
PKG_URL="https://github.com/libretro/mame2003-plus-libretro/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="MAME - Multiple Arcade Machine Emulator"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="mame2003_plus_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="MAME2003_PLUS_LIB"
|
|
|
|
pre_make_target() {
|
|
PKG_MAKE_OPTS_TARGET="ARCH= CC=${CC} NATIVE_CC=${CC} LD=${CC}"
|
|
}
|
|
|
|
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
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/share/libretro-database/mame2003-plus
|
|
cp -v metadata/mame2003-plus.xml ${SYSROOT_PREFIX}/usr/share/libretro-database/mame2003-plus/
|
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/share/retroarch/system/mame2003-plus/samples
|
|
cp -rv metadata/artwork ${SYSROOT_PREFIX}/usr/share/retroarch/system/mame2003-plus
|
|
cp -v metadata/{cheat,hiscore,history}.dat ${SYSROOT_PREFIX}/usr/share/retroarch/system/mame2003-plus
|
|
# something must be in a folder in order to include it in the image, so why not some instructions
|
|
echo "Put your samples here." > ${SYSROOT_PREFIX}/usr/share/retroarch/system/mame2003-plus/samples/readme.txt
|
|
}
|