![Yann E. MORIN](/assets/img/avatar_default.png)
First, the .pc file was so far fixed as a post-configure hook of the matchbox-fakekey package, by directly tweaking the .pc file installed in staging by matchbox-lib. That's uterly wrong and bad. So, we move the fix to matchbox-lib. Second, it was incorreclty tweaking the .pc file when xlib_libXft was not enabled, because only then a path to staging was present. Third, even when xlib_libXft was enabled, the tweaking was still wrong, because unnecessary. Fix all that. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# matchbox-lib
|
|
#
|
|
################################################################################
|
|
|
|
MATCHBOX_LIB_VERSION = 1.9
|
|
MATCHBOX_LIB_SOURCE = libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
|
|
MATCHBOX_LIB_SITE = http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/$(MATCHBOX_LIB_VERSION)
|
|
MATCHBOX_LIB_LICENSE = LGPL-2.1+
|
|
MATCHBOX_LIB_LICENSE_FILES = COPYING
|
|
MATCHBOX_LIB_INSTALL_STAGING = YES
|
|
MATCHBOX_LIB_DEPENDENCIES = host-pkgconf xlib_libXext
|
|
MATCHBOX_LIB_CONF_OPTS = --disable-doxygen-docs
|
|
MATCHBOX_LIB_CONF_ENV = LIBS="-lX11"
|
|
|
|
define MATCHBOX_LIB_POST_INSTALL_FIXES
|
|
$(SED) 's:-I$(STAGING_DIR)/:-I/:g' \
|
|
-e 's:-I/usr/include\( \|$$\)::g' \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
|
|
endef
|
|
|
|
MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_POST_INSTALL_FIXES
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
|
|
MATCHBOX_LIB_DEPENDENCIES += xlib_libXpm
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-jpeg
|
|
MATCHBOX_LIB_DEPENDENCIES += jpeg
|
|
else
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-png
|
|
MATCHBOX_LIB_DEPENDENCIES += libpng
|
|
else
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-png
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PANGO)$(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yyy)
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-pango
|
|
MATCHBOX_LIB_DEPENDENCIES += pango
|
|
else
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-pango
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
|
|
MATCHBOX_LIB_CONF_OPTS += --enable-xft
|
|
MATCHBOX_LIB_DEPENDENCIES += xlib_libXft
|
|
else
|
|
MATCHBOX_LIB_CONF_OPTS += --disable-xft
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|