serenity/Ports/harfbuzz/package.sh
sdomi c0f58505bc Ports/harfbuzz: Upgrade to 9.0.0
This fixes building with clang.
2024-08-01 16:18:38 -07:00

27 lines
679 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port='harfbuzz'
version='9.0.0'
files=(
"https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz#a41b272ceeb920c57263ec851604542d9ec85ee3030506d94662067c7b6ab89e"
)
useconfigure='true'
depends=("freetype" "libicu")
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DHB_HAVE_FREETYPE=ON'
'-DHB_HAVE_ICU=ON'
'-DCMAKE_C_FLAGS=-lfreetype'
)
configure() {
run mkdir -p build
run sh -c "cd build && cmake .. ${configopts[@]}"
}
build() {
run sh -c "cd build && make ${makeopts[@]}"
}
install() {
run sh -c "cd build && make install"
}