distribution/packages/games/libretro/flycast/package.mk

26 lines
921 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2022-present AmberELEC (https://github.com/AmberELEC)
# Copyright (C) 2022-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME="flycast"
PKG_VERSION="6c6b447ea1d2d251e5f7b96d57b0e243cdbd236d"
PKG_SITE="https://github.com/flyinghead/flycast"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain ${OPENGLES} libzip"
PKG_LONGDESC="Flycast is a multi-platform Sega Dreamcast, Naomi and Atomiswave emulator"
PKG_TOOLCHAIN="cmake"
2022-02-05 14:23:32 +00:00
pre_configure_target() {
sed -i 's/"reicast"/"flycast"/g' ${PKG_BUILD}/shell/libretro/libretro_core_option_defines.h
PKG_CMAKE_OPTS_TARGET="-Wno-dev -DLIBRETRO=ON \
-DWITH_SYSTEM_ZLIB=ON \
-DUSE_OPENMP=ON \
-DUSE_VULKAN=OFF
2022-04-08 23:33:29 +00:00
-DUSE_GLES=ON"
2022-02-05 14:23:32 +00:00
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/
2022-02-05 14:23:32 +00:00
}