mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 11:54:17 +08:00
50 lines
977 B
Bash
Executable File
50 lines
977 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_update {
|
|
echo "skipping update"
|
|
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
|
|
make -j"$(nproc)"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_test {
|
|
echo "skipping test"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
make clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
make DESTDIR="$dest" install
|
|
rm -f "$dest/lib/"*.la
|
|
skip=1
|
|
}
|