2021-05-08 05:23:29 +02:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-06-03 16:25:21 +02:00
|
|
|
port='harfbuzz'
|
|
|
|
version='4.3.0'
|
2023-07-10 13:10:29 +02:00
|
|
|
files=(
|
2023-09-02 06:32:27 +02:00
|
|
|
"https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz#a49628f4c4c8e6d8df95ef44935a93446cf2e46366915b0e3ca30df21fffb530"
|
2023-07-10 13:10:29 +02:00
|
|
|
)
|
2022-06-03 16:25:21 +02:00
|
|
|
useconfigure='true'
|
2021-09-27 00:16:18 +02:00
|
|
|
depends=("freetype" "libicu")
|
2023-07-02 07:48:00 +02:00
|
|
|
configopts=(
|
|
|
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
|
|
'-DHB_HAVE_FREETYPE=ON'
|
|
|
|
'-DHB_HAVE_ICU=ON'
|
|
|
|
'-DCMAKE_C_FLAGS=-lfreetype'
|
|
|
|
)
|
2021-05-08 05:23:29 +02:00
|
|
|
|
|
|
|
configure() {
|
|
|
|
run mkdir -p build
|
2022-03-10 02:00:06 +11:00
|
|
|
run sh -c "cd build && cmake .. ${configopts[@]}"
|
2021-05-08 05:23:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd build && make ${makeopts[@]}"
|
2021-05-08 05:23:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
run sh -c "cd build && make install"
|
|
|
|
}
|