2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-17 10:41:05 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# imlib2
|
2011-10-17 10:41:05 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2015-03-07 17:26:13 +01:00
|
|
|
IMLIB2_VERSION = 1.4.6
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_SOURCE = imlib2-$(IMLIB2_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
IMLIB2_SITE = http://downloads.sourceforge.net/project/enlightenment/imlib2-src/$(IMLIB2_VERSION)
|
2012-11-30 12:46:31 +01:00
|
|
|
IMLIB2_LICENSE = imlib2 license
|
|
|
|
IMLIB2_LICENSE_FILES = COPYING
|
|
|
|
|
2015-03-07 17:26:13 +01:00
|
|
|
IMLIB2_AUTORECONF = YES
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
IMLIB2_DEPENDENCIES = host-pkgconf freetype
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
|
2013-05-10 08:29:26 +02:00
|
|
|
IMLIB2_CONFIG_SCRIPTS = imlib2-config
|
2011-10-17 10:41:05 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-x
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-x
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-jpeg
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_DEPENDENCIES += jpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-jpeg
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-png
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-png
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-gif
|
2015-03-07 17:26:14 +01:00
|
|
|
IMLIB2_DEPENDENCIES += giflib
|
2011-10-17 10:41:05 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-gif
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-tiff
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_DEPENDENCIES += tiff
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-tiff
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --with-id3
|
2011-10-17 10:41:05 +02:00
|
|
|
IMLIB2_DEPENDENCIES += libid3tag
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMLIB2_CONF_OPTS += --without-id3
|
2011-10-17 10:41:05 +02:00
|
|
|
endif
|
|
|
|
|
2011-12-10 21:11:37 +01:00
|
|
|
# drop -L<dir> from linker flags
|
|
|
|
define IMLIB2_FIXUP_IMLIB2_CONFIG
|
2013-05-10 08:29:26 +02:00
|
|
|
$(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
|
2011-12-10 21:11:37 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|