distribution/packages/emulators/libretro/bsnes-mercury-performance-lr/package.mk

32 lines
828 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2022-present JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="bsnes-mercury-performance-lr"
PKG_VERSION="60c204ca17941704110885a815a65c740572326f"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/bsnes-mercury"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="libretro"
PKG_SHORTDESC="BSNES Super Nintendo Libretro Core"
PKG_IS_ADDON="no"
PKG_TOOLCHAIN="make"
PKG_AUTORECONF="no"
pre_configure_target() {
sed -i 's/\-O[23]/-Ofast/' ${PKG_BUILD}/Makefile
}
pre_make_target() {
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
}
make_target() {
make PROFILE=performance
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp bsnes_mercury_performance_libretro.so ${INSTALL}/usr/lib/libretro/
}