python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / imlib2 / imlib2.mk
blob7da032f9ad1e54a8352eb30ba279580981e1a5c8
1 ################################################################################
3 # imlib2
5 ################################################################################
7 IMLIB2_VERSION = 1.4.9
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
13 IMLIB2_INSTALL_STAGING = YES
14 IMLIB2_DEPENDENCIES = host-pkgconf freetype
15 IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
16 IMLIB2_CONFIG_SCRIPTS = imlib2-config
18 ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
19 IMLIB2_CONF_OPTS += --with-x
20 IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
21 else
22 IMLIB2_CONF_OPTS += --without-x
23 endif
25 ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
26 IMLIB2_CONF_OPTS += --with-jpeg
27 IMLIB2_DEPENDENCIES += jpeg
28 else
29 IMLIB2_CONF_OPTS += --without-jpeg
30 endif
32 ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
33 IMLIB2_CONF_OPTS += --with-png
34 IMLIB2_DEPENDENCIES += libpng
35 else
36 IMLIB2_CONF_OPTS += --without-png
37 endif
39 ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
40 IMLIB2_CONF_OPTS += --with-gif
41 IMLIB2_DEPENDENCIES += giflib
42 else
43 IMLIB2_CONF_OPTS += --without-gif
44 endif
46 ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
47 IMLIB2_CONF_OPTS += --with-tiff
48 IMLIB2_DEPENDENCIES += tiff
49 else
50 IMLIB2_CONF_OPTS += --without-tiff
51 endif
53 ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
54 IMLIB2_CONF_OPTS += --with-id3
55 IMLIB2_DEPENDENCIES += libid3tag
56 else
57 IMLIB2_CONF_OPTS += --without-id3
58 endif
60 # drop -L<dir> from linker flags
61 define IMLIB2_FIXUP_IMLIB2_CONFIG
62 $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
63 endef
65 IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
67 $(eval $(autotools-package))