mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 15:39:56 +00:00
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-genplus"
|
|
PKG_VERSION="5c805c4bed75fc2b8ebec8d65c33d40c4eac0a23"
|
|
PKG_SHA256="ac78a68a09fc076717bb7bdfe1c0ee0e3f5d2a274ece815a69f13b5b85d4f7d2"
|
|
PKG_LICENSE="Non-commercial"
|
|
PKG_SITE="https://github.com/ekeeke/Genesis-Plus-GX"
|
|
PKG_URL="https://github.com/libretro/Genesis-Plus-GX/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="Genesis Plus GX is an open-source & portable Sega Mega Drive / Genesis emulator, now also emulating SG-1000, Master System, Game Gear and Sega/Mega CD hardware."
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="genesis_plus_gx_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="GENPLUS_LIB"
|
|
|
|
PKG_MAKE_OPTS_TARGET="-f Makefile.libretro"
|
|
|
|
if [ "${ARCH}" = "aarch64" ]; then
|
|
PKG_MAKE_OPTS_TARGET+=" NO_OPTIMIZE=1"
|
|
fi
|
|
|
|
pre_make_target() {
|
|
if [ "${ARCH}" = "arm" -o "${ARCH}" = "aarch64" ]; then
|
|
CFLAGS+=" -DALIGN_LONG"
|
|
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
|
|
}
|