aboutsummaryrefslogtreecommitdiff
path: root/extra/cairo/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-09-25 15:04:43 +0200
committerCem Keylan <cem@ckyln.com>2023-09-25 15:04:43 +0200
commitc7be71594a0d385ef9eaecfa516b8a927847ee64 (patch)
tree5d3e4cf7d91a96326c61bd345dec69cf55a105ed /extra/cairo/build
parent983cc5de49435e75e51f5e461a9e4e5b4aea3003 (diff)
downloadrepository-c7be71594a0d385ef9eaecfa516b8a927847ee64.tar.gz
cairo: bump to 1.18.0
Diffstat (limited to 'extra/cairo/build')
-rwxr-xr-xextra/cairo/build37
1 files changed, 14 insertions, 23 deletions
diff --git a/extra/cairo/build b/extra/cairo/build
index 90ed8ead..758be720 100755
--- a/extra/cairo/build
+++ b/extra/cairo/build
@@ -1,27 +1,18 @@
#!/bin/sh -e
-sed_i() {
- for file; do :; done
- sed "$@" >_
- cat _ > "$file"; rm -f _
-}
+export DESTDIR="$1"
-# Disable building 'cairo-sphinx'.
-sed_i "s/BUILD_SPHINX_TRUE=/BUILD_SPHINX_TRUE='#'/" configure
-sed_i "s/BUILD_SPHINX_FALSE='#'/BUILD_SPHINX_FALSE=/" configure
+cl-meson \
+ -Ddefault_library=both \
+ -Dtee=enabled \
+ -Dglib=enabled \
+ -Dfontconfig=enabled \
+ -Dfreetype=enabled \
+ -Dgtk_doc=false \
+ -Dxcb=enabled \
+ -Dzlib=enabled \
+ -Dpng=enabled \
+ . output
-./configure \
- --prefix=/usr \
- --enable-tee \
- --enable-gl \
- --enable-egl \
- --enable-xlib-xcb \
- --enable-xcb \
- --enable-xlib-xrender \
- --enable-xlib \
- --disable-trace \
- --disable-valgrind \
- --disable-gtk-doc-html
-
-make
-make DESTDIR="$1" install
+ninja -C output
+ninja -C output install