mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
Convert cairo recipe to toml
This commit is contained in:
parent
4aefbfcc12
commit
e8178a7123
@ -1,39 +0,0 @@
|
||||
VERSION="1.16.0"
|
||||
TAR=https://www.cairographics.org/releases/cairo-$VERSION.tar.xz
|
||||
BUILD_DEPENDS=(expat freetype2 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
|
||||
}
|
||||
28
recipes/backends/cairo/recipe.toml
Executable file
28
recipes/backends/cairo/recipe.toml
Executable file
@ -0,0 +1,28 @@
|
||||
[source]
|
||||
tar = "https://www.cairographics.org/releases/cairo-1.16.0.tar.xz"
|
||||
blake3 = "33e88a21de1fa52405f3952647b3bfd21d5d9d394e1abbc9ddb050a8ca09e35a"
|
||||
script = """
|
||||
#Workaround to disable the not redox compatible tests
|
||||
printf "all:\n\ninstall:\n" > ./test/Makefile.in
|
||||
printf "all:\n\ninstall:\n" > ./perf/Makefile.in
|
||||
"""
|
||||
|
||||
[build]
|
||||
dependencies = [
|
||||
"expat",
|
||||
"freetype2",
|
||||
"fontconfig",
|
||||
"libpng",
|
||||
"pixman",
|
||||
"zlib",
|
||||
]
|
||||
template = "custom"
|
||||
script = """
|
||||
export CFLAGS="-DCAIRO_NO_MUTEX=1"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--enable-xlib=no
|
||||
--enable-script=no
|
||||
--enable-interpreter=no
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user