4dcbdb5697fd1fe1b3a9fe0bdd3ef5fad851e2fc
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / imlib2 / imlib2.mk
1 ################################################################################
2 #
3 # imlib2
4 #
5 ################################################################################
6
7 IMLIB2_VERSION = 1.4.6
8 IMLIB2_SOURCE = imlib2-$(IMLIB2_VERSION).tar.bz2
9 IMLIB2_SITE = http://downloads.sourceforge.net/project/enlightenment/imlib2-src/$(IMLIB2_VERSION)
10 IMLIB2_LICENSE = imlib2 license
11 IMLIB2_LICENSE_FILES = COPYING
12
13 IMLIB2_AUTORECONF = YES
14 IMLIB2_INSTALL_STAGING = YES
15 IMLIB2_DEPENDENCIES = host-pkgconf freetype
16 IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
17 IMLIB2_CONFIG_SCRIPTS = imlib2-config
18
19 ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
20 IMLIB2_CONF_OPTS += --with-x
21 IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
22 else
23 IMLIB2_CONF_OPTS += --without-x
24 endif
25
26 ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
27 IMLIB2_CONF_OPTS += --with-jpeg
28 IMLIB2_DEPENDENCIES += jpeg
29 else
30 IMLIB2_CONF_OPTS += --without-jpeg
31 endif
32
33 ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
34 IMLIB2_CONF_OPTS += --with-png
35 IMLIB2_DEPENDENCIES += libpng
36 else
37 IMLIB2_CONF_OPTS += --without-png
38 endif
39
40 ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
41 IMLIB2_CONF_OPTS += --with-gif
42 IMLIB2_DEPENDENCIES += giflib
43 else
44 IMLIB2_CONF_OPTS += --without-gif
45 endif
46
47 ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
48 IMLIB2_CONF_OPTS += --with-tiff
49 IMLIB2_DEPENDENCIES += tiff
50 else
51 IMLIB2_CONF_OPTS += --without-tiff
52 endif
53
54 ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
55 IMLIB2_CONF_OPTS += --with-id3
56 IMLIB2_DEPENDENCIES += libid3tag
57 else
58 IMLIB2_CONF_OPTS += --without-id3
59 endif
60
61 # drop -L<dir> from linker flags
62 define IMLIB2_FIXUP_IMLIB2_CONFIG
63         $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
64 endef
65
66 IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
67
68 $(eval $(autotools-package))