9cfd6130e7bb5e9c5dfbc60d0f07dd0d85826602
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / harfbuzz / harfbuzz.mk
1 ################################################################################
2 #
3 # harfbuzz
4 #
5 ################################################################################
6
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
14
15 # freetype & glib2 support required by host-pango
16 HOST_HARFBUZZ_DEPENDENCIES = \
17         host-freetype \
18         host-libglib2
19 HOST_HARFBUZZ_CONF_OPTS = \
20         --without-corext \
21         --without-uniscribe \
22         --without-graphite2 \
23         --with-cairo=no \
24         --with-icu=no \
25         --with-freetype=yes \
26         --with-glib=yes
27
28 # beta libtool version
29 HARFBUZZ_AUTORECONF = YES
30
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"
34 endif
35
36 ifeq ($(BR2_PACKAGE_CAIRO),y)
37 HARFBUZZ_DEPENDENCIES += cairo
38 HARFBUZZ_CONF_OPTS += --with-cairo=yes
39 else
40 HARFBUZZ_CONF_OPTS += --with-cairo=no
41 endif
42
43 ifeq ($(BR2_PACKAGE_FREETYPE),y)
44 HARFBUZZ_DEPENDENCIES += freetype
45 HARFBUZZ_CONF_OPTS += --with-freetype=yes
46 else
47 HARFBUZZ_CONF_OPTS += --with-freetype=no
48 endif
49
50 ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
51 HARFBUZZ_DEPENDENCIES += libglib2
52 HARFBUZZ_CONF_OPTS += --with-glib=yes
53 else
54 HARFBUZZ_CONF_OPTS += --with-glib=no
55 endif
56
57 ifeq ($(BR2_PACKAGE_ICU),y)
58 HARFBUZZ_DEPENDENCIES += icu
59 HARFBUZZ_CONF_OPTS += --with-icu=yes
60 else
61 HARFBUZZ_CONF_OPTS += --with-icu=no
62 endif
63
64 $(eval $(autotools-package))
65 $(eval $(host-autotools-package))