forked from CoreELEC/CoreELEC
/
package.mk
33 lines (25 loc) · 1.4 KB
/
package.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="scummvmsa"
PKG_VERSION="60fa6053c2fabc3bfe7de8960acab965386b1cad"
PKG_SHA256="4837ebdef2cecc90393bc1442bdd3f9cd700114aa731db6e1c5ed88d32766932"
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 libmad"
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."
pre_configure_target() {
TARGET_CONFIGURE_OPTS=" --disable-opengl-game --disable-opengl-game-classic --disable-opengl-game-shaders --host=${TARGET_NAME} --backend=sdl --enable-vkeybd --enable-optimizations --opengl-mode=gles2 --with-sdl-prefix=${SYSROOT_PREFIX}/usr/bin"
}
post_makeinstall_target() {
mkdir -p ${INSTALL}/usr/config/scummvm/extra
cp -rf ${PKG_DIR}/config/* ${INSTALL}/usr/config/scummvm/
cp -rf ${PKG_BUILD}/backends/vkeybd/packs/*.zip ${INSTALL}/usr/config/scummvm/extra
mv ${INSTALL}/usr/local/bin ${INSTALL}/usr/
cp -rf ${PKG_DIR}/bin/* ${INSTALL}/usr/bin
for i in metainfo pixmaps appdata applications doc icons man; do
rm -rf "${INSTALL}/usr/local/share/${i}"
done
}