2022-07-20 22:15:48 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 13:59:09 +00:00
|
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2022-07-20 22:15:48 +00:00
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="bsnes-mercury-performance-lr"
|
2023-11-02 11:11:41 +00:00
|
|
|
PKG_VERSION="60c204ca17941704110885a815a65c740572326f"
|
2022-07-20 22:15:48 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/bsnes-mercury"
|
2022-12-29 22:36:01 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-07-20 22:15:48 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="BSNES Super Nintendo Libretro Core"
|
|
|
|
PKG_IS_ADDON="no"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_AUTORECONF="no"
|
|
|
|
|
2023-10-27 09:52:13 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
sed -i 's/\-O[23]/-Ofast/' ${PKG_BUILD}/Makefile
|
|
|
|
}
|
|
|
|
|
2022-07-20 22:15:48 +00:00
|
|
|
pre_make_target() {
|
|
|
|
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
make PROFILE=performance
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-12-29 22:36:01 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp bsnes_mercury_performance_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-07-20 22:15:48 +00:00
|
|
|
}
|
|
|
|
|