2022-04-13 12:49:03 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
2022-04-13 12:57:00 +00:00
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
2022-05-27 22:33:28 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-04-13 12:49:03 +00:00
|
|
|
|
|
|
|
PKG_NAME="flycastsa"
|
2022-07-28 15:07:14 +00:00
|
|
|
PKG_VERSION="75ff5409f4025aa896119f6b5c901794f4e23eeb"
|
2022-04-13 12:49:03 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://github.com/flyinghead/flycast"
|
2022-04-29 08:44:15 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-07-11 22:23:00 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain alsa SDL2 libzip zip"
|
2022-04-13 12:49:03 +00:00
|
|
|
PKG_LONGDESC="Flycast is a multiplatform Sega Dreamcast, Naomi and Atomiswave emulator"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
2022-05-27 22:33:28 +00:00
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
2022-04-13 12:49:03 +00:00
|
|
|
|
2022-07-11 22:23:00 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${ARCH}" = "x86_64" ]
|
|
|
|
then
|
|
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_VULKAN=ON"
|
|
|
|
fi
|
|
|
|
|
2022-04-13 12:49:03 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -Wno-error=array-bounds"
|
2022-07-11 22:23:00 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_OPENMP=ON"
|
2022-04-13 12:49:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-04-29 08:44:15 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/flycast ${INSTALL}/usr/bin/flycast
|
|
|
|
cp ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
2022-04-13 12:49:03 +00:00
|
|
|
|
2022-04-29 08:44:15 +00:00
|
|
|
chmod +x ${INSTALL}/usr/bin/start_flycastsa.sh
|
|
|
|
chmod +x ${INSTALL}/usr/bin/set_flycast_joy.sh
|
2022-04-13 12:49:03 +00:00
|
|
|
}
|