2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 03:00:10 -07:00
repo/extra/cairo/build
2021-07-08 12:24:05 +03:00

28 lines
588 B
Bash
Executable File

#!/bin/sh -e
# Disable building 'cairo-sphinx'.
sed -e "s/\(BUILD_SPHINX_TRUE=\)/\1'#'/" \
-e "s/\(BUILD_SPHINX_FALSE=\)'#'/\1=/" \
configure > _
mv -f _ configure
chmod +x configure
# Disable building tests and documentation.
sed 's/test perf//g;s/src doc/src/g' Makefile.in > _
mv -f _ Makefile.in
./configure \
--prefix=/usr \
--disable-static \
--enable-tee \
--disable-xlib-xcb \
--disable-xcb \
--disable-xlib-xrender \
--disable-xlib \
--disable-trace \
--disable-valgrind \
--disable-gtk-doc-html
make
make DESTDIR="$1" install