# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'clutter' version = '1.16.2' # TODO: check license - some source files are LGPLv2+, others LGPLv2.1+ # and COPYING is LGPLv2.1 licenses = [License.LGPLv2_1Plus] deps = ['json-glib', 'cairo', 'atk', 'pango', 'cogl'] use_system_libs = True stype = SourceType.TARBALL url = 'http://ftp.gnome.org/pub/GNOME/sources/clutter/1.16/clutter-%(version)s.tar.xz' files_devel = [ 'lib/pkgconfig/clutter-1.0.pc', 'lib/pkgconfig/cally-1.0.pc', 'include/clutter-1.0/clutter', 'include/clutter-1.0/cally', ] files_libs = ['libclutter-1.0'] platform_files_libs = { Platform.WINDOWS: ['libclutter-win32-1.0'], Platform.DARWIN: ['libclutter-osx-1.0'], Platform.LINUX: ['libclutter-glx-1.0'], } platform_files_devel = { Platform.WINDOWS: ['lib/pkgconfig/clutter-win32-1.0.pc'], Platform.DARWIN: ['lib/pkgconfig/clutter-osx-1.0.pc'], Platform.LINUX: ['lib/pkgconfig/clutter-cogl-1.0.pc', 'lib/pkgconfig/clutter-glx-1.0.pc', 'lib/pkgconfig/clutter-x11-1.0.pc'], } files_lang = ['clutter-1.0'] files_typelibs = ['Cally-1.0', 'Clutter-1.0',] platform_files_typelibs = { Platform.LINUX: ['ClutterX11-1.0'] } # Skipping tests as they require a display make_check = None def prepare(self): if self.config.variants.gtk3: self.deps.append('gtk+3') self.files_typelibs.append('ClutterGdk-1.0')