1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/harfbuzz/harfbuzz.git"
- SCRIPT_COMMIT="5e32b5ca8fe430132b87c0eee6a1c056d37c35eb"
- ffbuild_enabled() {
- return 0
- }
- ffbuild_dockerbuild() {
- mkdir build && cd build
- local myconf=(
- --cross-file=/cross.meson
- --prefix="$FFBUILD_PREFIX"
- --buildtype=release
- --default-library=static
- -Dfreetype=enabled
- -Dglib=disabled
- -Dgobject=disabled
- -Dcairo=disabled
- -Dchafa=disabled
- -Dtests=disabled
- -Dintrospection=disabled
- -Ddocs=disabled
- -Ddoc_tests=false
- -Dutilities=disabled
- )
- if [[ $TARGET == win* ]]; then
- myconf+=(
- -Dgdi=enabled
- )
- fi
- meson setup "${myconf[@]}" ..
- ninja -j"$(nproc)"
- ninja install
- echo "Libs.private: -lpthread" >> "$FFBUILD_PREFIX"/lib/pkgconfig/harfbuzz.pc
- }
- ffbuild_configure() {
- (( $(ffbuild_ffver) > 600 )) || return 0
- echo --enable-libharfbuzz
- }
|