30 lines
970 B
Plaintext
30 lines
970 B
Plaintext
# Description: A 2D graphics library with support for multiple output devices
|
|
# URL: https://www.cairographics.org/
|
|
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
|
|
# Depends on: fontconfig, xorg-libxext, xorg-libxrender, xorg-libpixman, xorg-xcb-util, glib
|
|
|
|
name=cairo
|
|
version=1.16.0
|
|
release=2
|
|
source=(https://cairographics.org/releases/cairo-$version.tar.xz
|
|
cairo-xlib-endianness.patch
|
|
cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \
|
|
CVE-2018-19876.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
patch -p1 -i $SRC/cairo-xlib-endianness.patch
|
|
patch -p1 -i $SRC/cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
|
|
patch -p1 -i $SRC/CVE-2018-19876.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-xcb=yes \
|
|
--enable-ps \
|
|
--enable-pdf \
|
|
--disable-gtk-doc \
|
|
--enable-tee=yes
|
|
make
|
|
make DESTDIR=$PKG install
|
|
rm -rf $PKG/usr/share
|
|
}
|