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_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
22 IMLIB2_CONF_OPTS
+= --without-x
25 ifeq ($(BR2_PACKAGE_IMLIB2_JPEG
),y
)
26 IMLIB2_CONF_OPTS
+= --with-jpeg
27 IMLIB2_DEPENDENCIES
+= jpeg
29 IMLIB2_CONF_OPTS
+= --without-jpeg
32 ifeq ($(BR2_PACKAGE_IMLIB2_PNG
),y
)
33 IMLIB2_CONF_OPTS
+= --with-png
34 IMLIB2_DEPENDENCIES
+= libpng
36 IMLIB2_CONF_OPTS
+= --without-png
39 ifeq ($(BR2_PACKAGE_IMLIB2_GIF
),y
)
40 IMLIB2_CONF_OPTS
+= --with-gif
41 IMLIB2_DEPENDENCIES
+= giflib
43 IMLIB2_CONF_OPTS
+= --without-gif
46 ifeq ($(BR2_PACKAGE_IMLIB2_TIFF
),y
)
47 IMLIB2_CONF_OPTS
+= --with-tiff
48 IMLIB2_DEPENDENCIES
+= tiff
50 IMLIB2_CONF_OPTS
+= --without-tiff
53 ifeq ($(BR2_PACKAGE_IMLIB2_ID3
),y
)
54 IMLIB2_CONF_OPTS
+= --with-id3
55 IMLIB2_DEPENDENCIES
+= libid3tag
57 IMLIB2_CONF_OPTS
+= --without-id3
60 # drop -L<dir> from linker flags
61 define IMLIB2_FIXUP_IMLIB2_CONFIG
62 $(SED
) 's/-L[^ ]*//g' $(STAGING_DIR
)/usr
/bin
/imlib2-config
65 IMLIB2_POST_INSTALL_STAGING_HOOKS
+= IMLIB2_FIXUP_IMLIB2_CONFIG
67 $(eval
$(autotools-package
))