2022-04-05 15:32:51 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2022-present AmberELEC (https://github.com/AmberELEC)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-03-17 21:06:43 +00:00
|
|
|
PKG_NAME="flycast-lr"
|
* Update emulators, cores, and emulation support packages.
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads.
* Fix pipewire package oops.
2023-08-11 20:52:46 +00:00
|
|
|
PKG_VERSION="92a10ba0f0a5ca0d1ec9498962002f4cdcc8e7f6"
|
2022-04-05 15:32:51 +00:00
|
|
|
PKG_SITE="https://github.com/flyinghead/flycast"
|
2022-04-07 11:34:44 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-05-24 23:56:55 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib libzip"
|
2022-04-05 15:32:51 +00:00
|
|
|
PKG_LONGDESC="Flycast is a multi-platform Sega Dreamcast, Naomi and Atomiswave emulator"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-07-11 22:23:00 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
2022-10-03 23:10:53 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=ON"
|
|
|
|
else
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=OFF"
|
2022-07-11 22:23:00 +00:00
|
|
|
fi
|
|
|
|
|
2023-05-24 23:56:55 +00:00
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ] && \
|
|
|
|
[ ! "${TARGET_ARCH}" = "x86_64" ]
|
|
|
|
then
|
2022-07-11 22:23:00 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
2022-10-03 23:10:53 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON"
|
|
|
|
else
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=OFF"
|
2022-07-11 22:23:00 +00:00
|
|
|
fi
|
|
|
|
|
2022-08-30 00:33:53 +00:00
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
2022-07-11 22:23:00 +00:00
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_VULKAN=ON"
|
2022-10-03 23:10:53 +00:00
|
|
|
else
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_VULKAN=OFF"
|
2022-07-11 22:23:00 +00:00
|
|
|
fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
2023-10-27 09:52:13 +00:00
|
|
|
sed -i 's/"reicast"/"flycast"/g' ${PKG_BUILD}/shell/libretro/libretro_core_option_defines.h
|
|
|
|
sed -i 's/\-O[23]/-Ofast/' ${PKG_BUILD}/CMakeLists.txt
|
2022-07-11 22:23:00 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET="${PKG_CMAKE_OPTS_TARGET} \
|
|
|
|
-Wno-dev -DLIBRETRO=ON \
|
2022-04-05 15:32:51 +00:00
|
|
|
-DWITH_SYSTEM_ZLIB=ON \
|
2022-07-11 22:23:00 +00:00
|
|
|
-DUSE_OPENMP=ON"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
2023-04-05 21:09:40 +00:00
|
|
|
|
|
|
|
makeinstall_target32() {
|
|
|
|
case ${ARCH} in
|
|
|
|
aarch64)
|
|
|
|
if [ "${ENABLE_32BIT}" == "true" ]
|
|
|
|
then
|
|
|
|
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/${PKG_NAME}-*/.install_pkg/usr/lib/libretro/${1}_libretro.so ${INSTALL}/usr/lib/libretro/${1}32_libretro.so
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
makeinstall_target() {
|
2023-03-04 15:52:26 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
2023-05-24 23:56:55 +00:00
|
|
|
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
|
2023-02-21 05:31:19 +00:00
|
|
|
case ${TARGET_ARCH} in
|
|
|
|
aarch64)
|
2023-04-05 21:09:40 +00:00
|
|
|
makeinstall_target32 flycast
|
2023-02-21 05:31:19 +00:00
|
|
|
;;
|
|
|
|
esac
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|