redox/recipes/cairo/recipe.sh
2022-11-11 08:48:58 -07:00

40 lines
889 B
Bash
Executable File

VERSION="1.16.0"
TAR=https://www.cairographics.org/releases/cairo-$VERSION.tar.xz
BUILD_DEPENDS=(expat freetype fontconfig libpng pixman zlib)
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
#Workaround to disable the not redox compatible tests
printf "all:\n\ninstall:\n" > ./test/Makefile.in
printf "all:\n\ninstall:\n" > ./perf/Makefile.in
sysroot="$(realpath ../sysroot)"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
CFLAGS="-DCAIRO_NO_MUTEX=1" ./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--enable-xlib=no \
--enable-script=no \
--enable-interpreter=no
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" install
rm -f "$dest/lib/"*.la
skip=1
}