Commit 941f6008 authored by Markos Chandras's avatar Markos Chandras Committed by Peter Korsgaard
Browse files

harfbuzz: New package

HarfBuzz is an OpenType text shaping engine

http://www.freedesktop.org/wiki/Software/HarfBuzz/



[Peter: Move to libraries/graphics, needs C++ support]
Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 5d6f3137
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -465,6 +465,7 @@ source "package/gd/Config.in"
source "package/giblib/Config.in"
source "package/gtk2-engines/Config.in"
source "package/gtk2-themes/Config.in"
source "package/harfbuzz/Config.in"
source "package/imlib2/Config.in"
source "package/jpeg/Config.in"
source "package/lcms2/Config.in"
+13 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_HARFBUZZ
	bool "harfbuzz"
	depends on BR2_INSTALL_LIBSTDCPP
	help
	  HarfBuzz is an OpenType text shaping engine

	  http://www.freedesktop.org/wiki/Software/HarfBuzz/

	  Harfbuzz can make optional use of cairo, freetype,
	  glib2 and icu packages if they are selected.

comment "harfbuzz requires a toolchain with C++ support"
	depends on !BR2_INSTALL_LIBSTDCPP
+44 −0
Original line number Diff line number Diff line
################################################################################
#
# harfbuzz
#
################################################################################

HARFBUZZ_VERSION = 0.9.19
HARFBUZZ_SITE = http://www.freedesktop.org/software/harfbuzz/release/
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2
HARFBUZZ_LICENSE = MIT, ISC (ucdn library), ICU License (icu support library)
HARFBUZZ_LICENSE_FILES = COPYING src/hb-ucdn/COPYING src/hb-icu-le/COPYING
HARFBUZZ_INSTALL_STAGING = YES

HARFBUZZ_CONF_OPT = --without-coretext --without-uniscribe --without-graphite2

ifeq ($(BR2_PACKAGE_CAIRO),y)
	HARFBUZZ_DEPENDENCIES += cairo
	HARFBUZZ_CONF_OPT += --with-cairo=yes
else
	HARFBUZZ_CONF_OPT += --with-cairo=no
endif

ifeq ($(BR2_PACKAGE_FREETYPE),y)
	HARFBUZZ_DEPENDENCIES += freetype
	HARFBUZZ_CONF_OPT += --with-freetype=yes
else
	HARFBUZZ_CONF_OPT += --with-freetype=no
endif

ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
	HARFBUZZ_DEPENDENCIES += libglib2
	HARFBUZZ_CONF_OPT += --with-glib=yes
else
	HARFBUZZ_CONF_OPT += --with-glib=no
endif

ifeq ($(BR2_PACKAGE_ICU),y)
	HARFBUZZ_DEPENDENCIES += icu
	HARFBUZZ_CONF_OPT += --with-icu=yes
else
	HARFBUZZ_CONF_OPT += --with-icu=no
endif

$(eval $(autotools-package))