Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (44 sloc) 1.794 kB
from gub import target
class Cairo (target.AutoBuild):
source = 'http://www.cairographics.org/releases/cairo-1.8.8.tar.gz'
def patch (self):
target.AutoBuild.patch (self)
self.system ('rm -f %(srcdir)s/src/cairo-features.h')
dependencies = ['tools::libtool',
'fontconfig-devel',
'ghostscript-devel',
'libpng-devel',
'libx11-devel',
'libxrender-devel',
'pixman-devel',
# FIXME: poppler, librsvg, cairo, gtk dependencies?
# gtk+ depends on pango, pango on cairo, cairo on poppler, and poppler on gtk+?
# TRIED: removing gtk+ dependency from poppler -- no go
# TRY: removing poppler from cairo...
# 'poppler-devel',
'zlib-devel']
class Cairo_without_X11 (Cairo):
configure_flags = (Cairo.configure_flags
+ ' --disable-xlib'
+ ' --disable-xlib-xrender'
+ ' --disable-xcb'
)
dependencies = ([x for x in Cairo.dependencies
if 'libx' not in x
and 'poppler' not in x] # poppler does not build for mingw
)
class Cairo__mingw (Cairo_without_X11):
configure_flags = (Cairo_without_X11.configure_flags
+ ' --enable-win32=yes'
+ ' --enable-win32-font=yes'
+ ' --enable-ft'
+ ' LDFLAGS=-lpthread'
)
dependencies = (Cairo_without_X11.dependencies
+ ['pthreads-w32-devel'])
class Cairo__darwin (Cairo_without_X11):
pass
class Cairo__darwin__ppc (Cairo__darwin):
patches = Cairo__darwin.patches + [
'cairo-1.8.8-darwin-ppc.patch',
]
Jump to Line
Something went wrong with that request. Please try again.