207f8d8f69
* 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.
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2022-present AmberELEC (https://github.com/AmberELEC)
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
PKG_NAME="flycast-lr"
|
|
PKG_VERSION="92a10ba0f0a5ca0d1ec9498962002f4cdcc8e7f6"
|
|
PKG_SITE="https://github.com/flyinghead/flycast"
|
|
PKG_URL="${PKG_SITE}.git"
|
|
PKG_DEPENDS_TARGET="toolchain zlib libzip"
|
|
PKG_LONGDESC="Flycast is a multi-platform Sega Dreamcast, Naomi and Atomiswave emulator"
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=ON"
|
|
else
|
|
PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=OFF"
|
|
fi
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ] && \
|
|
[ ! "${TARGET_ARCH}" = "x86_64" ]
|
|
then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON"
|
|
else
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=OFF"
|
|
fi
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]
|
|
then
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_VULKAN=ON"
|
|
else
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_VULKAN=OFF"
|
|
fi
|
|
|
|
pre_configure_target() {
|
|
sed -i 's/"reicast"/"flycast"/g' ${PKG_BUILD}/shell/libretro/libretro_core_option_defines.h
|
|
PKG_CMAKE_OPTS_TARGET="${PKG_CMAKE_OPTS_TARGET} \
|
|
-Wno-dev -DLIBRETRO=ON \
|
|
-DWITH_SYSTEM_ZLIB=ON \
|
|
-DUSE_OPENMP=ON"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
|
|
case ${TARGET_ARCH} in
|
|
aarch64)
|
|
makeinstall_target32 flycast
|
|
;;
|
|
esac
|
|
}
|