1 ################################################################################
5 ################################################################################
7 HARFBUZZ_VERSION = 0.9.40
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 = --without-coretext --without-uniscribe --without-graphite2
15 # freetype & glib2 support required by host-pango
16 HOST_HARFBUZZ_DEPENDENCIES = \
19 HOST_HARFBUZZ_CONF_OPTS = \
28 # beta libtool version
29 HARFBUZZ_AUTORECONF = YES
31 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
32 # forgets to link test programs with -pthread breaking static link
33 HARFBUZZ_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -pthread"
36 ifeq ($(BR2_PACKAGE_CAIRO),y)
37 HARFBUZZ_DEPENDENCIES += cairo
38 HARFBUZZ_CONF_OPTS += --with-cairo=yes
40 HARFBUZZ_CONF_OPTS += --with-cairo=no
43 ifeq ($(BR2_PACKAGE_FREETYPE),y)
44 HARFBUZZ_DEPENDENCIES += freetype
45 HARFBUZZ_CONF_OPTS += --with-freetype=yes
47 HARFBUZZ_CONF_OPTS += --with-freetype=no
50 ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
51 HARFBUZZ_DEPENDENCIES += libglib2
52 HARFBUZZ_CONF_OPTS += --with-glib=yes
54 HARFBUZZ_CONF_OPTS += --with-glib=no
57 ifeq ($(BR2_PACKAGE_ICU),y)
58 HARFBUZZ_DEPENDENCIES += icu
59 HARFBUZZ_CONF_OPTS += --with-icu=yes
61 HARFBUZZ_CONF_OPTS += --with-icu=no
64 $(eval $(autotools-package))
65 $(eval $(host-autotools-package))