2022-09-29 03:58:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-12-17 14:52:08 +00:00
|
|
|
# Copyright (C) 2022-present JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-09-29 03:58:19 +00:00
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="bsnes-lr"
|
2024-01-17 22:10:37 +00:00
|
|
|
PKG_VERSION="5f0bafa9e517d132d964e8e267316283ccd3cce0"
|
2022-09-29 03:58:19 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/bsnes-libretro"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-09-29 03:58:19 +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"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2023-10-27 09:52:13 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
sed -i 's/\-O[23]/-Ofast/' ${PKG_BUILD}/Makefile
|
|
|
|
}
|
|
|
|
|
2022-09-29 03:58:19 +00:00
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp bsnes_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-09-29 03:58:19 +00:00
|
|
|
}
|
|
|
|
|