2021-04-04 03:15:05 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=scummvm
|
|
|
|
useconfigure="true"
|
2022-01-10 00:53:35 +03:00
|
|
|
version="2.5.1"
|
|
|
|
files="https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.xz scummvm-${version}.tar.xz 9fd8db38e4456144bf8c34dacdf7f204e75f18e8e448ec01ce08ce826a035f01"
|
2021-04-25 13:20:15 +03:00
|
|
|
auth_type=sha256
|
2022-01-17 20:11:21 +03:00
|
|
|
depends=("freetype" "libiconv" "libjpeg" "libmad" "libmpeg2" "libpng" "libtheora" "SDL2")
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=(
|
|
|
|
"--enable-c++11"
|
2022-01-17 20:11:21 +03:00
|
|
|
"--enable-engine=monkey4"
|
2021-09-27 01:16:18 +03:00
|
|
|
"--enable-optimizations"
|
|
|
|
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
|
|
)
|
2021-04-24 01:09:26 +03:00
|
|
|
launcher_name=ScummVM
|
|
|
|
launcher_category=Games
|
|
|
|
launcher_command=/usr/local/bin/scummvm
|
2021-06-09 18:44:18 +03:00
|
|
|
icon_file=icons/scummvm.ico
|
2021-06-04 12:03:13 +03:00
|
|
|
|
2021-10-18 01:12:28 +03:00
|
|
|
function pre_configure() {
|
|
|
|
export CPPFLAGS="-fvisibility=hidden"
|
|
|
|
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
|
2022-01-10 01:01:32 +03:00
|
|
|
export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
|
2021-10-18 01:12:28 +03:00
|
|
|
export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
|
|
|
|
}
|
|
|
|
|
|
|
|
function post_configure() {
|
|
|
|
unset CPPFLAGS
|
|
|
|
unset FREETYPE2_CFLAGS
|
2022-01-10 01:01:32 +03:00
|
|
|
unset OPENGL_CFLAGS
|
2021-10-18 01:12:28 +03:00
|
|
|
unset SDL_CFLAGS
|
|
|
|
}
|