netsnmp: handle libnl dependency properly
[buildroot-gz.git] / package / matchbox-lib / matchbox-lib.mk
blob451279e6d4338271866ceeadc53bf4eb3c644f79
1 ################################################################################
3 # matchbox-lib
5 ################################################################################
7 MATCHBOX_LIB_VERSION = 1.9
8 MATCHBOX_LIB_SOURCE = libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
9 MATCHBOX_LIB_SITE = http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/$(MATCHBOX_LIB_VERSION)
10 MATCHBOX_LIB_LICENSE = LGPLv2.1+
11 MATCHBOX_LIB_LICENSE_FILES = COPYING
12 MATCHBOX_LIB_INSTALL_STAGING = YES
13 MATCHBOX_LIB_DEPENDENCIES = host-pkgconf expat xlib_libXext
14 MATCHBOX_LIB_CONF_OPTS = --enable-expat --disable-doxygen-docs
15 MATCHBOX_LIB_CONF_ENV = LIBS="-lX11"
17 define MATCHBOX_LIB_POST_INSTALL_FIXES
18 $(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' \
19 $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
20 endef
22 MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_POST_INSTALL_FIXES
24 ifeq ($(BR2_PACKAGE_XLIB_LIBXCOMPOSITE),y)
25 ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
26 MATCHBOX_LIB_DEPENDENCIES += xlib_libXpm
27 endif
28 endif
30 ifeq ($(BR2_PACKAGE_JPEG),y)
31 MATCHBOX_LIB_CONF_OPTS += --enable-jpeg
32 MATCHBOX_LIB_DEPENDENCIES += jpeg
33 else
34 MATCHBOX_LIB_CONF_OPTS += --disable-jpeg
35 endif
37 ifeq ($(BR2_PACKAGE_LIBPNG),y)
38 MATCHBOX_LIB_CONF_OPTS += --enable-png
39 MATCHBOX_LIB_DEPENDENCIES += libpng
40 else
41 MATCHBOX_LIB_CONF_OPTS += --disable-png
42 endif
44 ifeq ($(BR2_PACKAGE_PANGO)$(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yyy)
45 MATCHBOX_LIB_CONF_OPTS += --enable-pango
46 MATCHBOX_LIB_DEPENDENCIES += pango
47 else
48 MATCHBOX_LIB_CONF_OPTS += --disable-pango
49 endif
51 ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
52 MATCHBOX_LIB_CONF_OPTS += --enable-xft
53 MATCHBOX_LIB_DEPENDENCIES += xlib_libXft
54 else
55 MATCHBOX_LIB_CONF_OPTS += --disable-xft
56 endif
58 $(eval $(autotools-package))