serenity/Ports/fluidsynth/package.sh

30 lines
592 B
Bash
Raw Normal View History

2024-05-11 20:06:09 +00:00
#!/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
}