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

27 lines
962 B
Makefile
Raw Normal View History

# 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)
PKG_NAME="duckstation"
2022-10-01 14:18:27 +00:00
PKG_VERSION="24c373245ebdab946f11627520edea76e1f23b8e"
PKG_ARCH="any"
PKG_LICENSE="GPLv3"
2022-10-01 14:18:27 +00:00
PKG_SITE="https://github.com/stenzek/duckstation"
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"
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"
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libretro
cp $PKG_BUILD/.$TARGET_NAME/duckstation_libretro.so $INSTALL/usr/lib/libretro/
}