mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
c0f58505bc
This fixes building with clang.
27 lines
679 B
Bash
Executable file
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"
|
|
}
|