2013-08-22 23:32:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# harfbuzz
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-07-04 14:33:04 +02:00
|
|
|
HARFBUZZ_VERSION = 0.9.41
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
HARFBUZZ_CONF_OPTS = --without-coretext --without-uniscribe --without-graphite2
|
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 = \
|
|
|
|
--without-corext \
|
|
|
|
--without-uniscribe \
|
|
|
|
--without-graphite2 \
|
|
|
|
--with-cairo=no \
|
|
|
|
--with-icu=no \
|
|
|
|
--with-freetype=yes \
|
|
|
|
--with-glib=yes
|
|
|
|
|
2015-07-23 23:36:06 +02:00
|
|
|
# beta libtool version and patching Makefile.am
|
2015-03-31 13:41:52 +02:00
|
|
|
HARFBUZZ_AUTORECONF = YES
|
2013-08-22 23:32:44 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
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))
|