diff options
Diffstat (limited to 'vendor')
-rwxr-xr-x | vendor/sync | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/vendor/sync b/vendor/sync index 96ae888..2a49a2b 100755 --- a/vendor/sync +++ b/vendor/sync @@ -183,6 +183,96 @@ build_wlroots() } # ------------------------------------------------------------------------ +# harfbuzz + +HARFBUZZ_URL="https://github.com/harfbuzz/harfbuzz.git" +HARFBUZZ_TAG="3.0.0" + +build_harfbuzz() +{ + git clone $HARFBUZZ_URL + cd harfbuzz && git checkout $HARFBUZZ_TAG + meson \ + --prefix=$ROOT \ + --includedir=include/vendor \ + --libdir=lib/vendor \ + --buildtype=minsize \ + -Ddefault_library=static\ + -Dglib=disabled \ + -Dgobject=disabled \ + -Ddocs=disabled \ + -Db_lto="true"\ + build/ \ + && ninja -C build/ \ + && meson install -C build + + mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig + rm -rf $ROOT/lib/vendor/pkgconfig + + cd $VENDOR + echo $HARFBUZZ_TAG > harfbuzz/build.tag +} + +# ------------------------------------------------------------------------ +# freetype2 + +FREETYPE_URL="git clone https://gitlab.freedesktop.org/freetype/freetype.git" +FREETYPE_TAG="3.0.0" + +build_harfbuzz() +{ + git clone $HARFBUZZ_URL + cd harfbuzz && git checkout $HARFBUZZ_TAG + meson \ + --prefix=$ROOT \ + --includedir=include/vendor \ + --libdir=lib/vendor \ + --buildtype=minsize \ + -Ddefault_library=static\ + -Dglib=disabled \ + -Dgobject=disabled \ + -Ddocs=disabled \ + -Db_lto="true"\ + build/ \ + && ninja -C build/ \ + && meson install -C build + + mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig + rm -rf $ROOT/lib/vendor/pkgconfig + + cd $VENDOR + echo $HARFBUZZ_TAG > harfbuzz/build.tag +} + +# ------------------------------------------------------------------------ +# fontconfig + +FONTCONFIG_URL="https://github.com/freedesktop/fontconfig.git" +FONTCONFIG_TAG="2.3.94" + +build_fontconfig() +{ + git clone $FONTCONFIG_URL + cd fontconfig && git checkout $FONTCONFIG_TAG + meson \ + --prefix=$ROOT \ + --includedir=include/vendor \ + --libdir=lib/vendor \ + -Ddefault_library=static \ + -Dtools=disabled \ + -Dtests=disabled \ + build/ \ + && ninja -C build/ \ + && meson install -C build + + mv $ROOT/lib/vendor/pkgconfig/* $ROOT/lib/pkgconfig + rm -rf $ROOT/lib/vendor/pkgconfig + + cd $VENDOR + echo $FONTCONFIG_TAG > fontconfig/build.tag +} + +# ------------------------------------------------------------------------ # utility functions update() @@ -205,4 +295,6 @@ update musl $MUSL_TAG update blas $BLAS_TAG update zlib $ZLIB_TAG update wlroots $WLROOTS_TAG +update fontconfig $FONTCONFIG_TAG +# update harfbuzz $HARFBUZZ_TAG # update glfw $GLFW_TAG |