The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gdk-pixbuf / gdk-pixbuf.mk
1 ################################################################################
2 #
3 # gdk-pixbuf
4 #
5 ################################################################################
6
7 GDK_PIXBUF_VERSION_MAJOR = 2.30
8 GDK_PIXBUF_VERSION = $(GDK_PIXBUF_VERSION_MAJOR).8
9 GDK_PIXBUF_SOURCE = gdk-pixbuf-$(GDK_PIXBUF_VERSION).tar.xz
10 GDK_PIXBUF_SITE = http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/$(GDK_PIXBUF_VERSION_MAJOR)
11 GDK_PIXBUF_LICENSE = LGPLv2+
12 GDK_PIXBUF_LICENSE_FILES = COPYING
13 GDK_PIXBUF_INSTALL_STAGING = YES
14
15 GDK_PIXBUF_CONF_ENV = \
16         ac_cv_path_GLIB_GENMARSHAL=$(LIBGLIB2_HOST_BINARY) \
17         gio_can_sniff=no
18
19 GDK_PIXBUF_CONF_OPTS = --disable-glibtest
20
21 ifneq ($(BR2_PACKAGE_LIBPNG),y)
22 GDK_PIXBUF_CONF_OPTS += --without-libpng
23 else
24 GDK_PIXBUF_DEPENDENCIES += libpng
25 endif
26
27 ifneq ($(BR2_PACKAGE_JPEG),y)
28 GDK_PIXBUF_CONF_OPTS += --without-libjpeg
29 else
30 GDK_PIXBUF_DEPENDENCIES += jpeg
31 endif
32
33 ifneq ($(BR2_PACKAGE_TIFF),y)
34 GDK_PIXBUF_CONF_OPTS += --without-libtiff
35 else
36 GDK_PIXBUF_DEPENDENCIES += tiff host-pkgconf
37 GDK_PIXBUF_CONF_ENV += \
38         LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs libtiff-4)'
39 endif
40
41 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
42 GDK_PIXBUF_CONF_OPTS += --with-x11
43 GDK_PIXBUF_DEPENDENCIES += xlib_libX11
44 endif
45
46 GDK_PIXBUF_DEPENDENCIES += \
47         $(if $(BR2_ENABLE_LOCALE),,libiconv) \
48         host-pkgconf libglib2
49
50 define GDK_PIXBUF_INSTALL_INIT_SYSV
51         $(INSTALL) -m 755 -D package/gdk-pixbuf/S26gdk-pixbuf \
52                 $(TARGET_DIR)/etc/init.d/S26gdk-pixbuf
53 endef
54
55 $(eval $(autotools-package))
56
57 HOST_GDK_PIXBUF_CONF_OPTS = \
58         --without-libjpeg \
59         --without-libtiff
60
61 HOST_GDK_PIXBUF_DEPENDENCIES = host-libpng host-pkgconf host-libglib2
62
63 $(eval $(host-autotools-package))