1 ################################################################################
5 ################################################################################
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_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
19 ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
20 IMLIB2_CONF_OPTS += --with-x
21 IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
23 IMLIB2_CONF_OPTS += --without-x
26 ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
27 IMLIB2_CONF_OPTS += --with-jpeg
28 IMLIB2_DEPENDENCIES += jpeg
30 IMLIB2_CONF_OPTS += --without-jpeg
33 ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
34 IMLIB2_CONF_OPTS += --with-png
35 IMLIB2_DEPENDENCIES += libpng
37 IMLIB2_CONF_OPTS += --without-png
40 ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
41 IMLIB2_CONF_OPTS += --with-gif
42 IMLIB2_DEPENDENCIES += giflib
44 IMLIB2_CONF_OPTS += --without-gif
47 ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
48 IMLIB2_CONF_OPTS += --with-tiff
49 IMLIB2_DEPENDENCIES += tiff
51 IMLIB2_CONF_OPTS += --without-tiff
54 ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
55 IMLIB2_CONF_OPTS += --with-id3
56 IMLIB2_DEPENDENCIES += libid3tag
58 IMLIB2_CONF_OPTS += --without-id3
61 # drop -L<dir> from linker flags
62 define IMLIB2_FIXUP_IMLIB2_CONFIG
63 $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
66 IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
68 $(eval $(autotools-package))