blob: 7a133d8d0e24abe7d5d59112b1b90963aeda8954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell
class Recipe(recipe.Recipe):
name = 'gdk-pixbuf'
version = '2.26.2'
licenses = [License.LGPLv2Plus]
configure_options = '--with-included-loaders --enable-static '
deps = ['jpeg', 'glib', 'libpng', 'tiff', 'zlib' ]
autoreconf = True
files_libs = ['libgdk_pixbuf-2.0']
files_bins = ['gdk-pixbuf-query-loaders', 'gdk-pixbuf-csource']
files_devel = ['lib/pkgconfig/gdk-pixbuf-2.0.pc', 'include/gdk-pixbuf-2.0']
files_lang = ['gdk-pixbuf']
platform_files_modules = {
Platform.LINUX: ['lib/gdk-pixbuf-2.0'],
Platform.WINDOWS: ['lib/gdk-pixbuf-2.0'],
Platform.DARWIN: ['lib/gdk-pixbuf-2.0']}
def prepare(self):
if self.config.target_platform == Platform.WINDOWS:
self.configure_options += '--without-gdiplus '
if self.config.target_platform == Platform.DARWIN:
self.configure_options += '--without-x11 '
def post_install (self):
if self.config.platform == Platform.WINDOWS and\
self.config.target_platform == Platform.WINDOWS:
cache = os.path.join(self.config.prefix, 'lib', 'gdk-pixbuf-2.0',
'2.10.0', 'loaders.cache')
shell.replace(cache, {self.config.prefix: '../'})
|