2022-11-29 18:37:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="beetle-saturn-lr"
|
2023-05-29 10:43:27 +00:00
|
|
|
PKG_VERSION="cd395e9e3ee407608450ebc565e871b24e7ffed6"
|
2022-11-29 18:37:02 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/libretro/beetle-saturn-libretro"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-11-29 18:37:02 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="Beetle Saturn libretro, a fork from mednafen"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2022-11-29 21:11:10 +00:00
|
|
|
make_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
if [ "${ARCH}" == "i386" -o "${ARCH}" == "x86_64" ]; then
|
2023-02-27 02:56:16 +00:00
|
|
|
make platform=unix CC=${CC} CXX=${CXX} AR=${AR}
|
2022-11-29 21:11:10 +00:00
|
|
|
else
|
2023-02-27 02:56:16 +00:00
|
|
|
make platform=armv CC=${CC} CXX=${CXX} AR=${AR}
|
2022-11-29 21:11:10 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2022-11-29 18:37:02 +00:00
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp mednafen_saturn_libretro.so ${INSTALL}/usr/lib/libretro/beetle_saturn_libretro.so
|
2022-11-29 18:37:02 +00:00
|
|
|
}
|