# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(recipe.Recipe): name = 'pango' version = '1.30.1' stype = SourceType.TARBALL url = 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.1.tar.xz' autoreconf = True autoreconf_sh = 'ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" autoreconf -ivf ' licenses = [License.LGPLv2Plus] configure_options = '--with-included-modules --enable-static --disable-gtk-doc' deps = ['cairo', 'fontconfig', 'freetype', 'gtk-doc-lite'] files_libs = ['libpangocairo-1.0', 'libpango-1.0', 'libpangoft2-1.0'] files_bins = ['pango-querymodules', 'pango-view'] files_devel = ['include/pango-1.0', 'lib/pkgconfig/pangoft2.pc', 'lib/pkgconfig/pango.pc', 'lib/pkgconfig/pangocairo.pc'] platform_files_libs = { Platform.WINDOWS: ['libpangowin32-1.0'], Platform.LINUX: ['libpangox-1.0'], } platform_files_devel = { Platform.WINDOWS: ['lib/pkgconfig/pangowin32.pc'], Platform.LINUX: ['lib/pkgconfig/pangox.pc'], } def prepare(self): if self.config.target_platform != Platform.LINUX: self.configure_options += ' --disable-gtk-doc' if self.config.target_platform in [Platform.DARWIN, Platform.ANDROID, Platform.IOS]: self.configure_options += ' --without-x '