25 lines
923 B
Makefile
25 lines
923 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
# Maintenance 2020 351ELEC team (https://github.com/fewtarius/351ELEC)
|
|
|
|
PKG_NAME="swanstation"
|
|
PKG_VERSION="74b958ceae11a1b72ba17d5b783b5eb1a6166701"
|
|
PKG_SHA256="a5c3aa606c0a7d9b963f661cb3cc385974f0c67a41dbe860022d6616fae580da"
|
|
PKG_ARCH="aarch64"
|
|
PKG_LICENSE="GPLv3"
|
|
PKG_SITE="https://github.com/libretro/swanstation"
|
|
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain nasm:host $OPENGLES"
|
|
PKG_SECTION="libretro"
|
|
PKG_SHORTDESC="SwanStation - PlayStation 1, aka. PSX Emulator"
|
|
PKG_TOOLCHAIN="cmake"
|
|
PKG_BUILD_FLAGS="-lto"
|
|
|
|
pre_configure_target() {
|
|
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON "
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p $INSTALL/usr/lib/libretro
|
|
cp $PKG_BUILD/.$TARGET_NAME/swanstation_libretro.so $INSTALL/usr/lib/libretro/
|
|
}
|