2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
2023-03-17 21:06:43 +00:00
PKG_NAME = "mame2003-xtreme-lr"
2022-02-05 14:23:32 +00:00
PKG_VERSION = "47deb07f49224ec5b0bbc56392b639d728183629"
PKG_SHA256 = "185b7e857e836b3987737ff9077d0709444491a0f138cfbbe1f50a6ad5d719b7"
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "MAME"
PKG_SITE = "https://github.com/KMFDManic/mame2003-xtreme"
2023-02-24 13:53:43 +00:00
PKG_URL = " ${ PKG_SITE } /archive/ ${ PKG_VERSION } .tar.gz "
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET = "toolchain"
PKG_LONGDESC = "Updated 2018 version of MAME (0.78) for libretro, with added game support, and optimized for performance and speed on the Mini Classics. "
PKG_TOOLCHAIN = "make"
p r e _ c o n f i g u r e _ t a r g e t ( ) {
cd ${ PKG_BUILD }
export SYSROOT_PREFIX = ${ SYSROOT_PREFIX }
case ${ PROJECT } in
Amlogic-ng)
PKG_MAKE_OPTS_TARGET += " platform=AMLG12B"
; ;
Amlogic)
PKG_MAKE_OPTS_TARGET += " platform=AMLGX"
; ;
esac
2023-02-24 13:53:43 +00:00
PKG_MAKE_OPTS_TARGET += " ARCH=\"\" CC=\" ${ CC } \" NATIVE_CC=\" ${ CC } \" LD=\" ${ CC } \" "
2022-02-05 14:23:32 +00:00
2023-02-24 13:53:43 +00:00
# PKG_MAKE_OPTS_TARGET=" platform=rpi2 ARCH=\"\" CC=\"${CC}\" NATIVE_CC=\"${CC}\" LD=\"${CC}\""
2022-02-05 14:23:32 +00:00
}
m a k e i n s t a l l _ t a r g e t ( ) {
2023-02-24 13:53:43 +00:00
mkdir -p ${ INSTALL } /usr/lib/libretro
cp mame2003_libretro.so ${ INSTALL } /usr/lib/libretro/km_mame2003_xtreme_libretro.so
cp km_mame2003_xtreme_libretro.info ${ INSTALL } /usr/lib/libretro/km_mame2003_xtreme_libretro.info
2022-02-05 14:23:32 +00:00
}