2012-11-21 11:12:43 -06:00
|
|
|
# Description: A 2D graphics library with support for multiple output devices
|
2020-06-17 19:38:34 -05:00
|
|
|
# URL: https://www.cairographics.org/
|
2013-02-01 19:09:37 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2017-11-01 22:41:39 +11:00
|
|
|
# Depends on: cairo fontconfig-32 glib-32 xorg-libpixman-32 xorg-libxext-32 xorg-libxrender-32 xorg-xcb-util-32
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=cairo-32
|
2018-10-23 23:14:44 +11:00
|
|
|
version=1.16.0
|
2013-09-21 10:23:54 +10:00
|
|
|
release=1
|
2018-11-27 14:20:18 -06:00
|
|
|
source=(https://cairographics.org/releases/${name%-*}-$version.tar.xz
|
2018-10-07 14:54:02 +11:00
|
|
|
cairo-xlib-endianness.patch
|
|
|
|
cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2017-06-17 17:50:30 +10:00
|
|
|
cd ${name%-*}-$version
|
2014-10-27 22:36:45 +11:00
|
|
|
|
2018-10-07 14:54:02 +11:00
|
|
|
patch -p1 -i $SRC/cairo-xlib-endianness.patch
|
|
|
|
patch -p1 -i $SRC/cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff
|
|
|
|
|
2012-11-21 11:12:43 -06:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--enable-xcb=yes \
|
|
|
|
--enable-ps \
|
|
|
|
--enable-pdf \
|
2013-06-26 12:34:11 +10:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--enable-tee=yes
|
2014-10-27 22:36:45 +11:00
|
|
|
|
2012-11-21 11:12:43 -06:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2014-10-27 22:36:45 +11:00
|
|
|
|
|
|
|
rm -r $PKG/usr/{bin,include,share}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|