mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 03:26:19 +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="6363ee7edac100a8402ee9fe35303eac4c506bb3"
|
|
PKG_SHA256="3efe00435eda0821461d50de643a1b578a0e8f8ea7a4548d2135b3f375b5b5a0"
|
|
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
|
|
}
|