2021-04-04 03:15:05 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=scummvm
|
|
|
|
useconfigure="true"
|
|
|
|
version="2.2.0"
|
2021-04-25 13:20:15 +03:00
|
|
|
files="https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.gz scummvm-${version}.tar.gz 6ec5bd63b73861c10ca9869f27a74989a9ad6013bad30a1ef70de6ec146c2cb5"
|
|
|
|
auth_type=sha256
|
2021-04-27 23:01:15 +03:00
|
|
|
depends="libtheora SDL2"
|
2021-04-22 13:38:44 +03:00
|
|
|
configopts="
|
|
|
|
--enable-c++11
|
|
|
|
--enable-release-mode
|
|
|
|
--enable-optimizations
|
|
|
|
--opengl-mode=none
|
2021-06-07 15:17:56 +03:00
|
|
|
--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local
|
2021-04-22 13:38:44 +03:00
|
|
|
"
|
2021-04-24 01:09:26 +03:00
|
|
|
launcher_name=ScummVM
|
|
|
|
launcher_category=Games
|
|
|
|
launcher_command=/usr/local/bin/scummvm
|
2021-06-04 12:03:13 +03:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
if command -v convert >/dev/null; then
|
|
|
|
run convert "icons/scummvm.ico[0]" app-32x32.png
|
|
|
|
run convert "icons/scummvm.ico[1]" app-16x16.png
|
|
|
|
target_binary="${SERENITY_INSTALL_ROOT}/usr/local/bin/scummvm"
|
|
|
|
run objcopy --add-section serenity_icon_s="app-16x16.png" "${target_binary}"
|
|
|
|
run objcopy --add-section serenity_icon_m="app-32x32.png" "${target_binary}"
|
|
|
|
fi
|
|
|
|
}
|