1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-01 11:19:21 +00:00

Ports: Add libmt32emu

This commit is contained in:
Kenneth Myhra 2024-05-12 20:40:47 +02:00 committed by Jelle Raaijmakers
parent 95bd69cec5
commit 36511d23ef
2 changed files with 29 additions and 0 deletions

View File

@ -163,6 +163,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`libmodplug`](libmodplug/) | libmodplug | 0.8.9.0 | http://modplug-xmms.sourceforge.net/ |
| [`libmpeg2`](libmpeg2/) | libmpeg2 | 0.5.1 | https://libmpeg2.sourceforge.io/ |
| [`libmpg123`](libmpg123/) | libmpg123 | 1.31.3 | https://www.mpg123.de/ |
| [`libmt32emu`](libmt32emu/) | libmt32emu | 2.7.1 | https://github.com/munt/munt |
| [`libogg`](libogg/) | libogg | 1.3.5 | https://github.com/xiph/ogg |
| [`liboggz`](liboggz/) | liboggz | 1.1.1 | https://www.xiph.org/oggz/ |
| [`libopenal`](libopenal/) | OpenAL soft | 1.23.1 | https://openal-soft.org/ |

28
Ports/libmt32emu/package.sh Executable file
View File

@ -0,0 +1,28 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='libmt32emu'
version='2.7.1'
workdir="munt-${port}_${version//./_}/mt32emu"
useconfigure='true'
configopts=(
'-G Ninja'
'-S .'
'-DCMAKE_BUILD_TYPE:STRING=Release'
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
)
files=(
"https://github.com/munt/munt/archive/refs/tags/libmt32emu_${version//./_}.tar.gz#e4524d52d6799a4e32a961a2e92074f14adcb2f110a4e7a06bede77050cfdaf4"
)
configure() {
run cmake \
"${configopts[@]}" \
-B mt32emu-build
}
build() {
run ninja -C mt32emu-build
}
install() {
run ninja -C mt32emu-build install
}