2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-04-01 12:10:12 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# matchbox-lib
|
2010-04-01 12:10:12 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-04-01 12:10:12 +02:00
|
|
|
|
|
|
|
MATCHBOX_LIB_VERSION = 1.9
|
|
|
|
MATCHBOX_LIB_SOURCE = libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
|
2012-11-30 11:38:23 +01:00
|
|
|
MATCHBOX_LIB_SITE = http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/$(MATCHBOX_LIB_VERSION)
|
2012-12-30 13:54:08 +01:00
|
|
|
MATCHBOX_LIB_LICENSE = LGPLv2.1+
|
2012-11-30 12:46:35 +01:00
|
|
|
MATCHBOX_LIB_LICENSE_FILES = COPYING
|
2010-04-01 12:10:12 +02:00
|
|
|
MATCHBOX_LIB_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
MATCHBOX_LIB_DEPENDENCIES = host-pkgconf expat xlib_libXext
|
2014-09-27 21:32:44 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS = --enable-expat --disable-doxygen-docs
|
2012-10-30 02:29:14 +01:00
|
|
|
MATCHBOX_LIB_CONF_ENV = LIBS="-lX11"
|
2010-04-01 12:10:12 +02:00
|
|
|
|
|
|
|
define MATCHBOX_LIB_POST_INSTALL_FIXES
|
2014-10-23 10:43:37 +02:00
|
|
|
$(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
|
2010-04-01 12:10:12 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_POST_INSTALL_FIXES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_X11R7_LIBXCOMPOSITE),y)
|
|
|
|
ifeq ($(BR2_PACKAGE_X11R7_LIBXPM),y)
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_DEPENDENCIES += xlib_libXpm
|
2010-04-01 12:10:12 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-jpeg
|
|
|
|
MATCHBOX_LIB_DEPENDENCIES += jpeg
|
2010-04-01 12:10:12 +02:00
|
|
|
else
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-jpeg
|
2010-04-01 12:10:12 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-png
|
|
|
|
MATCHBOX_LIB_DEPENDENCIES += libpng
|
2010-04-01 12:10:12 +02:00
|
|
|
else
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-png
|
2010-04-01 12:10:12 +02:00
|
|
|
endif
|
|
|
|
|
2013-05-12 10:53:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PANGO)$(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yyy)
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-pango
|
|
|
|
MATCHBOX_LIB_DEPENDENCIES += pango
|
2010-04-01 12:10:12 +02:00
|
|
|
else
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-pango
|
2010-04-01 12:10:12 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-xft
|
|
|
|
MATCHBOX_LIB_DEPENDENCIES += xlib_libXft
|
2010-04-01 12:10:12 +02:00
|
|
|
else
|
2014-10-24 07:57:37 +02:00
|
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-xft
|
2010-04-01 12:10:12 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|