# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'cairo' version = '1.10.2' # either LGPLv2.1 or MPLv1.1 licenses = [License.LGPLv2_1] deps = ['glib', 'libpng', 'zlib', 'pixman', 'fontconfig', 'freetype'] files_libs = ['libcairo', 'libcairo-gobject', 'libcairo-script-interpreter'] files_devel = [ 'lib/pkgconfig/cairo-fc.pc', 'lib/pkgconfig/cairo.pc', 'lib/pkgconfig/cairo-ps.pc', 'lib/pkgconfig/cairo-ft.pc', 'lib/pkgconfig/cairo-pdf.pc', 'lib/pkgconfig/cairo-svg.pc', 'lib/pkgconfig/cairo-gobject.pc', 'lib/pkgconfig/cairo-png.pc', 'include/cairo', ] platform_files_devel = { Platform.WINDOWS: [ 'lib/pkgconfig/cairo-win32-font.pc', 'lib/pkgconfig/cairo-win32.pc'], Platform.LINUX: ['lib/pkgconfig/cairo-xlib-xrender.pc', 'lib/pkgconfig/cairo-xlib.pc'], Platform.DARWIN: ['lib/pkgconfig/cairo-quartz-font.pc', 'lib/pkgconfig/cairo-quartz-image.pc', 'lib/pkgconfig/cairo-quartz.pc', ] } def prepare(self): if self.config.target_platform == Platform.DARWIN: self.configure_options += '--without-x --enable-quartz-font --enable-quartz-image'