build (1218B)
1 #!/bin/sh -e 2 3 build_freetype() ( 4 cd freetype 5 6 meson \ 7 --prefix=/usr \ 8 -Ddefault_library=both \ 9 -Dbzip2=disabled \ 10 -Dzlib=disabled \ 11 "$@" \ 12 . output 13 14 ninja -C output 15 ninja -C output install 16 ) 17 18 build_harfbuzz() ( 19 cd harfbuzz 20 21 meson \ 22 --prefix=/usr \ 23 -Dpkg_config_path="$DESTDIR/usr/lib/pkgconfig" \ 24 -Ddefault_library=both \ 25 -Dglib=disabled \ 26 -Dfreetype=enabled \ 27 -Dgobject=enabled \ 28 -Dcairo=disabled \ 29 -Dicu=disabled \ 30 -Dbenchmark=disabled \ 31 -Dtests=disabled \ 32 . output 33 34 ninja -C output 35 ninja -C output install 36 ) 37 38 # Point Freetype to the Harfbuzz files. 39 export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/harfbuzz" 40 export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib " 41 export PKG_CONFIG_PATH=$DESTDIR/usr/lib/pkgconfig 42 43 # Point Harfbuzz to the Freetype files. 44 export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/freetype2" 45 export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib" 46 export CXXFLAGS="$CXXFLAGS -I$DESTDIR/usr/include/freetype2" 47 export CXXFLAGS="$CXXFLAGS -L$DESTDIR/usr/lib" 48 49 build_freetype -Dharfbuzz=disabled 50 build_harfbuzz 51 build_freetype -Dharfbuzz=enabled --reconfigure