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-02-07 01:09:44 +00:00
PKG_VERSION = "d2680e949177bb90d2eca1de3520631cd8e77f35"
PKG_SHA256 = "3fb01aa9898040c12e44323ecd0f5c8a3e71e8be8f004e685739916a8862f8f9"
2022-02-05 14:23:32 +00:00
PKG_REV = "1"
PKG_LICENSE = "GPL2"
PKG_SITE = "https://github.com/scummvm/scummvm"
PKG_URL = " $PKG_SITE /archive/ $PKG_VERSION .tar.gz "
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 ( ) {
sed -i "s|sdl-config|sdl2-config|g" $PKG_BUILD /configure
TARGET_CONFIGURE_OPTS = " --host= ${ TARGET_NAME } --backend=sdl --with-sdl-prefix= ${ SYSROOT_PREFIX } /usr/bin --disable-debug --enable-release --enable-vkeybd --opengl-mode=gles2 "
}
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
mkdir -p $INSTALL /usr/config/scummvm/
cp -rf $PKG_DIR /config/* $INSTALL /usr/config/scummvm/
mv $INSTALL /usr/local/bin $INSTALL /usr/
cp -rf $PKG_DIR /bin/* $INSTALL /usr/bin
chmod 755 $INSTALL /usr/bin/*
for i in appdata applications doc icons man; do
rm -rf " $INSTALL /usr/local/share/ $i "
done
for i in residualvm.zip scummmodern.zip scummclassic.zip; do
rm -rf " $INSTALL /usr/local/share/scummvm/ $i "
done
if [ [ " $DEVICE " = = RG351P ] ] ; then
mkdir -p $INSTALL /usr/local/share/scummvm/
cp -rf $PKG_DIR /scummremastered.zip $INSTALL /usr/local/share/scummvm/
fi
}