2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2020-present Fewtarius
PKG_NAME = "scummvmsa"
* Update emulators, cores, and emulation support packages.
* 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.
2023-08-11 20:52:46 +00:00
PKG_VERSION = "b347be081cb35889bebc191165fa88f5261932ba"
2022-02-05 14:23:32 +00:00
PKG_REV = "1"
PKG_LICENSE = "GPL2"
PKG_SITE = "https://github.com/scummvm/scummvm"
2023-01-20 02:30:33 +00:00
PKG_URL = " ${ PKG_SITE } .git "
2023-08-10 16:23:00 +00:00
PKG_DEPENDS_TARGET = "toolchain SDL2 SDL2_net freetype fluidsynth soundfont-generaluser pipewire"
2022-02-05 14:23:32 +00:00
PKG_SHORTDESC = "Script Creation Utility for Maniac Mansion Virtual Machine"
PKG_LONGDESC = "ScummVM is a program which allows you to run certain classic graphical point-and-click adventure games, provided you already have their data files."
p r e _ c o n f i g u r e _ t a r g e t ( ) {
2022-04-01 01:22:26 +00:00
sed -i "s|sdl-config|sdl2-config|g" ${ PKG_BUILD } /configure
2023-08-10 16:23:00 +00:00
TARGET_CONFIGURE_OPTS = " --host= ${ TARGET_NAME } --backend=sdl --disable-alsa --with-sdl-prefix= ${ SYSROOT_PREFIX } /usr/bin --disable-debug --enable-release --enable-vkeybd --enable-sdl-ts-vmouse --opengl-mode=gles2 "
2022-02-05 14:23:32 +00:00
}
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2022-04-01 01:22:26 +00:00
mkdir -p ${ INSTALL } /usr/config/scummvm/
cp -rf ${ PKG_DIR } /config/* ${ INSTALL } /usr/config/scummvm/
2022-04-01 10:07:19 +00:00
chmod 0755 ${ INSTALL } /usr/config/scummvm/games/*sh
2022-02-05 14:23:32 +00:00
2022-04-01 01:22:26 +00:00
mkdir -p ${ INSTALL } /usr/config/scummvm/themes
2022-04-01 01:48:04 +00:00
cp -rf ${ PKG_BUILD } /gui/themes ${ INSTALL } /usr/config/scummvm/themes
2022-04-01 01:22:26 +00:00
mv ${ INSTALL } /usr/local/bin ${ INSTALL } /usr/
cp -rf ${ PKG_DIR } /sources/* ${ INSTALL } /usr/bin
chmod 755 ${ INSTALL } /usr/bin/*
2022-02-05 14:23:32 +00:00
for i in appdata applications doc icons man; do
2022-04-14 11:56:57 +00:00
rm -rf " ${ INSTALL } /usr/local/share/ ${ i } "
2022-02-05 14:23:32 +00:00
done
}