From 0d283363b5d42360381cefb3a49e97fb71659228 Mon Sep 17 00:00:00 2001 From: nanake Date: Mon, 26 Apr 2021 18:50:48 +0700 Subject: [PATCH] FriBidi: switch to meson to eradicate warnings about missing c2man --- scripts.d/25-fribidi.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts.d/25-fribidi.sh b/scripts.d/25-fribidi.sh index c106c47..9fcfffc 100755 --- a/scripts.d/25-fribidi.sh +++ b/scripts.d/25-fribidi.sh @@ -11,25 +11,29 @@ ffbuild_dockerbuild() { git-mini-clone "$FRIBIDI_REPO" "$FRIBIDI_COMMIT" fribidi cd fribidi + mkdir build && cd build + local myconf=( --prefix="$FFBUILD_PREFIX" - --disable-shared - --enable-static - --with-pic + --buildtype=release + --default-library=static + -Dbin=false + -Ddocs=false + -Dtests=false ) if [[ $TARGET == win* ]]; then myconf+=( - --host="$FFBUILD_TOOLCHAIN" + --cross-file=/cross.meson ) else echo "Unknown target" return -1 fi - ./autogen.sh "${myconf[@]}" - make - make install + meson "${myconf[@]}" .. + ninja -j$(nproc) + ninja install sed -i 's/Cflags:/Cflags: -DFRIBIDI_LIB_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/fribidi.pc }