distribution/packages/emulators/libretro/duckstation-lr/package.mk

27 lines
1 KiB
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS) (https://github.com/fewtarius)
2022-03-05 18:14:34 +00:00
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
2023-03-17 21:06:43 +00:00
PKG_NAME="duckstation-lr"
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"
2023-02-24 13:53:43 +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"
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() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/lib/libretro
cp ${PKG_BUILD}/.${TARGET_NAME}/duckstation_libretro.so ${INSTALL}/usr/lib/libretro/
}