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"
2022-03-25 18:51:38 +00:00
PKG_VERSION = "50d369631b616489e0705f293102b9b98c4c2cd6"
PKG_SHA256 = "18dccfba99ca0687a46b3143042edaf90b0506f41c14bab9804eae88f07833cd"
2022-02-05 14:23:32 +00:00
PKG_REV = "1"
PKG_LICENSE = "GPL2"
PKG_SITE = "https://github.com/scummvm/scummvm"
2022-04-01 01:22:26 +00:00
PKG_URL = " ${ PKG_SITE } /archive/ ${ PKG_VERSION } .tar.gz "
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET = "toolchain SDL2 SDL2_net freetype fluidsynth-git"
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
2022-04-01 01:26:45 +00:00
TARGET_CONFIGURE_OPTS = " --host= ${ TARGET_NAME } --backend=sdl --with-sdl-prefix= ${ SYSROOT_PREFIX } /usr/bin --disable-debug --enable-release --enable-vkeybd --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-02-05 14:23:32 +00:00
2022-04-01 01:22:26 +00:00
mkdir -p ${ INSTALL } /usr/config/scummvm/themes
cp -rf ${ PKG_DIR } /gui/themes ${ INSTALL } /usr/config/scummvm/themes
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-01 01:22:26 +00:00
rm -rf " ${ INSTALL } /usr/local/share/ $i "
2022-02-05 14:23:32 +00:00
done
}