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