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