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.
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
PKG_NAME="duckstation-sa"
|
|
PKG_LICENSE="GPLv3"
|
|
PKG_DEPENDS_TARGET="toolchain SDL2 nasm:host pulseaudio openssl libidn2 nghttp2 zlib curl libevdev ecm"
|
|
PKG_SITE="https://github.com/stenzek/duckstation"
|
|
PKG_URL="${PKG_SITE}.git"
|
|
PKG_SHORTDESC="Fast PlayStation 1 emulator for x86-64/AArch32/AArch64 "
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
case ${DEVICE} in
|
|
RK356*)
|
|
PKG_VERSION="0798292ee50821be1081a4ddc68699044ded0020"
|
|
PKG_PATCH_DIRS+=" legacy"
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_DRMKMS=ON -DENABLE_EGL=ON -DUSE_MALI=OFF"
|
|
;;
|
|
*)
|
|
PKG_VERSION="0798292ee50821be1081a4ddc68699044ded0020"
|
|
PKG_PATCH_DIRS+=" wayland"
|
|
;;
|
|
esac
|
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
fi
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
fi
|
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
PKG_DEPENDS_TARGET+=" wayland ${WINDOWMANAGER} xorg-server xrandr libXi"
|
|
PKG_CMAKE_OPTS_TARGET+=" -DUSE_WAYLAND=ON"
|
|
fi
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" vulkan-loader vulkan-headers"
|
|
PKG_CMAKE_OPTS_TARGET+=" -DENABLE_VULKAN=ON"
|
|
fi
|
|
|
|
pre_configure_target() {
|
|
PKG_CMAKE_OPTS_TARGET+=" -DANDROID=OFF \
|
|
-DENABLE_DISCORD_PRESENCE=OFF \
|
|
-DBUILD_QT_FRONTEND=OFF \
|
|
-DBUILD_NOGUI_FRONTEND=ON \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DUSE_SDL2=ON \
|
|
-DENABLE_CHEEVOS=ON \
|
|
-DUSE_FBDEV=OFF \
|
|
-DUSE_EVDEV=ON \
|
|
-DUSE_X11=OFF"
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/bin/duckstation-nogui ${INSTALL}/usr/bin
|
|
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
|
|
|
mkdir -p ${INSTALL}/usr/config/duckstation
|
|
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/bin/* ${INSTALL}/usr/config/duckstation
|
|
cp -rf ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/duckstation
|
|
|
|
rm -rf ${INSTALL}/usr/config/duckstation/duckstation-nogui
|
|
rm -rf ${INSTALL}/usr/config/duckstation/common-tests
|
|
|
|
chmod +x ${INSTALL}/usr/bin/start_duckstation.sh
|
|
}
|