d66805a36d
Signed-off-by: Matthias Reichl <hias@horus.com>
30 lines
985 B
Makefile
30 lines
985 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-mame2000"
|
|
PKG_VERSION="dd9d6612c29bf5b29bc2f94cab2d43fe3dcd69ee"
|
|
PKG_SHA256="0dded25186c3dd4229c5b9036e853089b7c615f5f1999485b4757eaf5676202a"
|
|
PKG_LICENSE="GPLv2"
|
|
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="2000 version of MAME (0.37b5) for libretro"
|
|
|
|
PKG_LIBNAME="mame2000_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="MAME2000_LIB"
|
|
|
|
make_target() {
|
|
if [ "${TARGET_ARCH}" = "arm" ]; then
|
|
make ARM=1
|
|
else
|
|
make
|
|
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
|
|
}
|