serenity/Ports/mgba/package.sh

30 lines
572 B
Bash
Raw Normal View History

2022-04-13 16:22:56 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
port='mgba'
2023-08-18 16:51:57 +00:00
version='0.10.2'
2023-07-10 11:10:29 +00:00
files=(
"https://github.com/mgba-emu/mgba/archive/refs/tags/${version}.tar.gz#60afef8fb79ba1f7be565b737bae73c6604a790391c737f291482a7422d675ae"
2023-07-10 11:10:29 +00:00
)
configopts=(
'-DBUILD_QT=OFF'
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DUSE_EDITLINE=OFF'
'-DUSE_ELF=OFF'
'-DUSE_EPOXY=OFF'
)
2022-04-13 16:22:56 +00:00
useconfigure=true
depends=(
'libpng'
'libzip'
'SDL2'
'sqlite'
'zlib'
)
2022-04-13 16:22:56 +00:00
configure() {
run cmake "${configopts[@]}"
}
install() {
run make install
}