2022-03-05 15:58:11 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
2022-03-05 18:14:34 +00:00
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
2022-03-05 15:58:11 +00:00
|
|
|
|
|
|
|
PKG_NAME="duckstation"
|
2022-10-01 14:18:27 +00:00
|
|
|
PKG_VERSION="24c373245ebdab946f11627520edea76e1f23b8e"
|
|
|
|
PKG_ARCH="any"
|
2022-03-05 15:58:11 +00:00
|
|
|
PKG_LICENSE="GPLv3"
|
2022-10-01 14:18:27 +00:00
|
|
|
PKG_SITE="https://github.com/stenzek/duckstation"
|
2022-12-15 20:27:05 +00:00
|
|
|
PKG_URL="$PKG_SITE.git"
|
2022-10-01 14:18:27 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain SDL2 nasm:host pulseaudio openssl libidn2 nghttp2 zlib curl libevdev"
|
2022-03-05 15:58:11 +00:00
|
|
|
PKG_SECTION="libretro"
|
|
|
|
PKG_SHORTDESC="DuckStation - PlayStation 1, aka. PSX Emulator"
|
|
|
|
PKG_TOOLCHAIN="cmake"
|
|
|
|
PKG_BUILD_FLAGS="-lto"
|
|
|
|
|
2022-10-01 14:18:27 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_SDL_FRONTEND=OFF \
|
|
|
|
-DBUILD_QT_FRONTEND=OFF \
|
|
|
|
-DBUILD_LIBRETRO_CORE=ON \
|
|
|
|
-DENABLE_DISCORD_PRESENCE=OFF \
|
|
|
|
-DUSE_X11=OFF"
|
|
|
|
|
2022-03-05 15:58:11 +00:00
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p $INSTALL/usr/lib/libretro
|
|
|
|
cp $PKG_BUILD/.$TARGET_NAME/duckstation_libretro.so $INSTALL/usr/lib/libretro/
|
|
|
|
}
|