2013-08-22 23:32:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# harfbuzz
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-07-23 02:48:39 +02:00
|
|
|
HARFBUZZ_VERSION = 1.3.0
|
2014-07-31 10:46:58 +02:00
|
|
|
HARFBUZZ_SITE = http://www.freedesktop.org/software/harfbuzz/release
|
2013-08-22 23:32:44 +02:00
|
|
|
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2
|
2013-10-08 22:36:48 +02:00
|
|
|
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
|
|
|
|
HARFBUZZ_LICENSE_FILES = COPYING src/hb-ucdn/COPYING
|
2013-08-22 23:32:44 +02:00
|
|
|
HARFBUZZ_INSTALL_STAGING = YES
|
2016-01-14 17:20:52 +01:00
|
|
|
HARFBUZZ_CONF_OPTS = --with-coretext=no --with-uniscribe=no
|
2015-04-19 11:48:18 +02:00
|
|
|
|
|
|
|
# freetype & glib2 support required by host-pango
|
|
|
|
HOST_HARFBUZZ_DEPENDENCIES = \
|
|
|
|
host-freetype \
|
|
|
|
host-libglib2
|
|
|
|
HOST_HARFBUZZ_CONF_OPTS = \
|
2016-01-14 17:20:52 +01:00
|
|
|
--with-coretext=no \
|
|
|
|
--with-uniscribe=no \
|
|
|
|
--with-graphite2=no \
|
2015-04-19 11:48:18 +02:00
|
|
|
--with-cairo=no \
|
|
|
|
--with-icu=no \
|
|
|
|
--with-freetype=yes \
|
|
|
|
--with-glib=yes
|
|
|
|
|
2014-04-07 23:55:20 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
# forgets to link test programs with -pthread breaking static link
|
|
|
|
HARFBUZZ_CONF_ENV = LDFLAGS="$(TARGET_LDFLAGS) -pthread"
|
|
|
|
endif
|
|
|
|
|
2013-08-22 23:32:44 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_DEPENDENCIES += cairo
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-cairo=yes
|
2013-08-22 23:32:44 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_CONF_OPTS += --with-cairo=no
|
2013-08-22 23:32:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_DEPENDENCIES += freetype
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-freetype=yes
|
2013-08-22 23:32:44 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_CONF_OPTS += --with-freetype=no
|
2013-08-22 23:32:44 +02:00
|
|
|
endif
|
|
|
|
|
2016-01-14 17:20:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GRAPHITE2),y)
|
|
|
|
HARFBUZZ_DEPENDENCIES += graphite2
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-graphite2=yes
|
|
|
|
else
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-graphite2=no
|
|
|
|
endif
|
|
|
|
|
2013-08-22 23:32:44 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_DEPENDENCIES += libglib2
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-glib=yes
|
2013-08-22 23:32:44 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_CONF_OPTS += --with-glib=no
|
2013-08-22 23:32:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_DEPENDENCIES += icu
|
|
|
|
HARFBUZZ_CONF_OPTS += --with-icu=yes
|
2013-08-22 23:32:44 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HARFBUZZ_CONF_OPTS += --with-icu=no
|
2013-08-22 23:32:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
2015-04-19 11:48:18 +02:00
|
|
|
$(eval $(host-autotools-package))
|