harfbuzz: bump to version 1.3.1
[buildroot-gz.git] / package / harfbuzz / harfbuzz.mk
blob7ddd81b87e2dc3e55e85b6a40481f7be708eefa9
1 ################################################################################
3 # harfbuzz
5 ################################################################################
7 HARFBUZZ_VERSION = 1.3.1
8 HARFBUZZ_SITE = http://www.freedesktop.org/software/harfbuzz/release
9 HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2
10 HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
11 HARFBUZZ_LICENSE_FILES = COPYING src/hb-ucdn/COPYING
12 HARFBUZZ_INSTALL_STAGING = YES
13 HARFBUZZ_CONF_OPTS = --with-coretext=no --with-uniscribe=no
15 # freetype & glib2 support required by host-pango
16 HOST_HARFBUZZ_DEPENDENCIES = \
17 host-freetype \
18 host-libglib2
19 HOST_HARFBUZZ_CONF_OPTS = \
20 --with-coretext=no \
21 --with-uniscribe=no \
22 --with-graphite2=no \
23 --with-cairo=no \
24 --with-icu=no \
25 --with-freetype=yes \
26 --with-glib=yes
28 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
29 # forgets to link test programs with -pthread breaking static link
30 HARFBUZZ_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -pthread"
31 endif
33 ifeq ($(BR2_PACKAGE_CAIRO),y)
34 HARFBUZZ_DEPENDENCIES += cairo
35 HARFBUZZ_CONF_OPTS += --with-cairo=yes
36 else
37 HARFBUZZ_CONF_OPTS += --with-cairo=no
38 endif
40 ifeq ($(BR2_PACKAGE_FREETYPE),y)
41 HARFBUZZ_DEPENDENCIES += freetype
42 HARFBUZZ_CONF_OPTS += --with-freetype=yes
43 else
44 HARFBUZZ_CONF_OPTS += --with-freetype=no
45 endif
47 ifeq ($(BR2_PACKAGE_GRAPHITE2),y)
48 HARFBUZZ_DEPENDENCIES += graphite2
49 HARFBUZZ_CONF_OPTS += --with-graphite2=yes
50 else
51 HARFBUZZ_CONF_OPTS += --with-graphite2=no
52 endif
54 ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
55 HARFBUZZ_DEPENDENCIES += libglib2
56 HARFBUZZ_CONF_OPTS += --with-glib=yes
57 else
58 HARFBUZZ_CONF_OPTS += --with-glib=no
59 endif
61 ifeq ($(BR2_PACKAGE_ICU),y)
62 HARFBUZZ_DEPENDENCIES += icu
63 HARFBUZZ_CONF_OPTS += --with-icu=yes
64 else
65 HARFBUZZ_CONF_OPTS += --with-icu=no
66 endif
68 $(eval $(autotools-package))
69 $(eval $(host-autotools-package))