summaryrefslogtreecommitdiffstats
path: root/package/matchbox/matchbox-lib/matchbox-lib.mk
blob: 7730d940609e641a793a9f306355c835ceafb913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#############################################################
#
# 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 = LGPLv2.1
MATCHBOX_LIB_LICENSE_FILES = COPYING
MATCHBOX_LIB_INSTALL_STAGING = YES
MATCHBOX_LIB_DEPENDENCIES = host-pkgconf expat xlib_libXext
MATCHBOX_LIB_CONF_OPT = --enable-expat --disable-doxygen-docs
MATCHBOX_LIB_CONF_ENV = LIBS="-lX11"

define MATCHBOX_LIB_POST_INSTALL_FIXES
 $(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
endef

MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_POST_INSTALL_FIXES

#############################################################

ifeq ($(BR2_PACKAGE_X11R7_LIBXCOMPOSITE),y)
ifeq ($(BR2_PACKAGE_X11R7_LIBXPM),y)
  MATCHBOX_LIB_DEPENDENCIES+=xlib_libXpm
endif
endif

ifeq ($(BR2_PACKAGE_JPEG),y)
  MATCHBOX_LIB_CONF_OPT+=--enable-jpeg
  MATCHBOX_LIB_DEPENDENCIES+=jpeg
else
  MATCHBOX_LIB_CONF_OPT+=--disable-jpeg
endif

ifeq ($(BR2_PACKAGE_LIBPNG),y)
  MATCHBOX_LIB_CONF_OPT+=--enable-png
  MATCHBOX_LIB_DEPENDENCIES+=libpng
else
  MATCHBOX_LIB_CONF_OPT+=--disable-png
endif

ifeq ($(BR2_PACKAGE_PANGO),y)
  MATCHBOX_LIB_CONF_OPT+=--enable-pango
  MATCHBOX_LIB_DEPENDENCIES+=pango
else
  MATCHBOX_LIB_CONF_OPT+=--disable-pango
endif

ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
  MATCHBOX_LIB_CONF_OPT+=--enable-xft
  MATCHBOX_LIB_DEPENDENCIES+=xlib_libXft
else
  MATCHBOX_LIB_CONF_OPT+=--disable-xft
endif

#############################################################

$(eval $(autotools-package))