ladybird/Ports/harfbuzz/package.sh

28 lines
679 B
Bash
Raw Normal View History

2021-05-08 06:23:29 +03:00
#!/usr/bin/env -S bash ../.port_include.sh
port='harfbuzz'
version='4.3.0'
2023-07-10 14:10:29 +03:00
files=(
"https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz#a49628f4c4c8e6d8df95ef44935a93446cf2e46366915b0e3ca30df21fffb530"
2023-07-10 14:10:29 +03:00
)
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'
)
2021-05-08 06:23:29 +03:00
configure() {
run mkdir -p build
run sh -c "cd build && cmake .. ${configopts[@]}"
2021-05-08 06:23:29 +03:00
}
build() {
run sh -c "cd build && make ${makeopts[@]}"
2021-05-08 06:23:29 +03:00
}
install() {
run sh -c "cd build && make install"
}