distribution/packages/emulators/standalone/scummvmsa/package.mk

37 lines
1.4 KiB
Makefile
Raw Normal View History

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"
2023-05-24 23:56:55 +00:00
PKG_VERSION="53551733c68ab7af3a8592312d4a62afd22fd055"
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}.git"
2022-04-14 11:56:57 +00:00
PKG_DEPENDS_TARGET="toolchain SDL2 SDL2_net freetype fluidsynth"
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."
pre_configure_target() {
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 --enable-sdl-ts-vmouse --opengl-mode=gles2"
2022-02-05 14:23:32 +00:00
}
post_makeinstall_target() {
mkdir -p ${INSTALL}/usr/config/scummvm/
cp -rf ${PKG_DIR}/config/* ${INSTALL}/usr/config/scummvm/
chmod 0755 ${INSTALL}/usr/config/scummvm/games/*sh
2022-02-05 14:23:32 +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
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
}