mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-25 13:06:17 +00:00
ec0a3ea83a
- cores updated to latest commit / latest tag - retroarch updated to 1.14.0 - libzip: add PIC flag (for ppsspp)
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
PKG_NAME="mame2010"
|
|
PKG_VERSION="5f524dd5fca63ec1dcf5cca63885286109937587"
|
|
PKG_LICENSE="MAME"
|
|
PKG_SITE="https://github.com/libretro/mame2010-libretro"
|
|
PKG_URL="${PKG_SITE}.git"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Late 2010 version of MAME (0.139) for libretro. Compatible with MAME 0.139 romsets."
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
pre_make_target() {
|
|
PKG_MAKE_OPTS_TARGET="CC=${CC} LD=${CC}"
|
|
if [ "${ARCH}" = "arm" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" PTR64=0 ARM_ENABLED=1 LCPU=arm"
|
|
elif [ "${ARCH}" = "i386" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" PTR64=0 ARM_ENABLED=0 LCPU=x86"
|
|
elif [ "${ARCH}" = "x86_64" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" PTR64=1 ARM_ENABLED=0 LCPU=x86_64"
|
|
elif [ "${ARCH}" = "aarch64" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" PTR64=1 ARM_ENABLED=1 LCPU=arm64"
|
|
fi
|
|
make ${PKG_MAKE_OPTS_TARGET} PLATCFLAGS="${CFLAGS}" maketree
|
|
}
|
|
|
|
make_target() {
|
|
make ${PKG_MAKE_OPTS_TARGET} PLATCFLAGS="${CFLAGS}"
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
cp -v mame2010_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
mkdir -p ${INSTALL}/usr/share/libretro-database/mame2010
|
|
cp -v metadata/mame2010.xml ${INSTALL}/usr/share/libretro-database/mame2010/
|
|
}
|