Ports: Add fluidsynth

This commit is contained in:
Kenneth Myhra 2024-05-11 22:06:09 +02:00 committed by Jelle Raaijmakers
parent 4bf0ddad4c
commit 6cc8c34e4e
2 changed files with 30 additions and 0 deletions

View file

@ -82,6 +82,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`flare-game`](flare-game/) | Flare (game) | 1.14 | https://flarerpg.org/ |
| [`flatbuffers`](flatbuffers/) | Flatbuffers | 2.0.0 | https://github.com/google/flatbuffers |
| [`flex`](flex/) | flex | 2.6.4 | https://github.com/westes/flex |
| [`fluidsynth`](fluidsynth/) | fluidsynth | 2.3.5 | https://www.fluidsynth.org/ |
| [`fontconfig`](fontconfig/) | Fontconfig | 2.14.2 | https://www.freedesktop.org/wiki/Software/fontconfig/ |
| [`fotaq`](fotaq/) | Flight of the Amazon Queen | 1.0 | https://www.scummvm.org/games/#games-queen |
| [`freeciv`](freeciv/) | Freeciv | 3.0.8 | http://freeciv.org/ |

29
Ports/fluidsynth/package.sh Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='fluidsynth'
version='2.3.5'
useconfigure='true'
configopts=(
'-G Ninja'
"-S fluidsynth-${version}"
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
)
files=(
"https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v${version}.tar.gz#f89e8e983ecfb4a5b4f5d8c2b9157ed18d15ed2e36246fa782f18abaea550e0d"
)
depends=(
'glib'
)
configure() {
cmake \
"${configopts[@]}" \
-B fluidsynth-build
}
build() {
ninja -C fluidsynth-build
}
install() {
ninja -C fluidsynth-build install
}