distribution/packages/games/libretro/picodrive/package.mk

42 lines
1.3 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
PKG_NAME="picodrive"
PKG_VERSION="6a0f515f95ea2080c8ac6b0bd2c194b48d991892"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="MAME"
PKG_SITE="https://github.com/libretro/picodrive"
PKG_URL="${PKG_SITE}.git"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="libretro"
PKG_SHORTDESC="Libretro implementation of PicoDrive. (Sega Megadrive/Genesis/Sega Master System/Sega GameGear/Sega CD/32X)"
PKG_LONGDESC="This is yet another Megadrive / Genesis / Sega CD / Mega CD / 32X / SMS emulator, which was written having ARM-based handheld devices in mind (such as smartphones and handheld consoles like GP2X and Pandora), but also runs on non-ARM little-endian hardware too."
GET_HANDLER_SUPPORT="git"
PKG_BUILD_FLAGS="-gold"
PKG_TOOLCHAIN="make"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_PATCH_DIRS="${PROJECT}"
if [ "${ARCH}" = "arm" ]
then
make_target() {
cd ${PKG_BUILD}
make -f Makefile.libretro platform=armv6
}
else
make_target() {
:
}
fi
2022-02-05 14:23:32 +00:00
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
if [ "${ARCH}" = "aarch64" ]
then
cp -vP ${PKG_BUILD}/../../build.${DISTRO}-${DEVICE}.arm/picodrive-*/.install_pkg/usr/lib/libretro/picodrive_libretro.so ${INSTALL}/usr/lib/libretro/
else
cp ${PKG_BUILD}/picodrive_libretro.so ${INSTALL}/usr/lib/libretro/
fi
2022-02-05 14:23:32 +00:00
}