From patchwork Mon Aug 19 11:44:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 268172 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CBADA2C00BB for ; Mon, 19 Aug 2013 21:45:13 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CAFBD8BD0A; Mon, 19 Aug 2013 11:45:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MLQsLD6J6oJV; Mon, 19 Aug 2013 11:45:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 29AC98B97E; Mon, 19 Aug 2013 11:45:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 068901BF9F3 for ; Mon, 19 Aug 2013 11:45:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 734618B04D for ; Mon, 19 Aug 2013 11:45:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4VS9uVvZaLWw for ; Mon, 19 Aug 2013 11:45:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from multi.imgtec.com (multi.imgtec.com [194.200.65.239]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5BB018AE8C for ; Mon, 19 Aug 2013 11:45:07 +0000 (UTC) From: Markos Chandras To: Date: Mon, 19 Aug 2013 12:44:48 +0100 Message-ID: <1376912688-13267-1-git-send-email-markos.chandras@imgtec.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 X-Originating-IP: [192.168.154.130] X-SEF-Processed: 7_3_0_01192__2013_08_19_12_45_03 Subject: [Buildroot] [PATCH] harfbuzz: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net HarfBuzz is an OpenType text shaping engine http://www.freedesktop.org/wiki/Software/HarfBuzz/ Signed-off-by: Markos Chandras --- package/Config.in | 1 + package/harfbuzz/Config.in | 34 ++++++++++++++++++++++++++++++++++ package/harfbuzz/harfbuzz.mk | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 package/harfbuzz/Config.in create mode 100644 package/harfbuzz/harfbuzz.mk diff --git a/package/Config.in b/package/Config.in index 7069d77..8a87563 100644 --- a/package/Config.in +++ b/package/Config.in @@ -124,6 +124,7 @@ source "package/directfb-examples/Config.in" source "package/divine/Config.in" source "package/fbdump/Config.in" source "package/fbgrab/Config.in" +source "package/harfbuzz/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/fbset/Config.in" endif diff --git a/package/harfbuzz/Config.in b/package/harfbuzz/Config.in new file mode 100644 index 0000000..e96ff7f --- /dev/null +++ b/package/harfbuzz/Config.in @@ -0,0 +1,34 @@ +config BR2_PACKAGE_HARFBUZZ + bool "harfbuzz" + help + HarfBuzz is an OpenType text shaping engine + + http://www.freedesktop.org/wiki/Software/HarfBuzz/ + +if BR2_PACKAGE_HARFBUZZ + +config BR2_PACKAGE_HARFBUZZ_CAIRO + bool "Use cairo" + select BR2_PACKAGE_CAIRO + +config BR2_PACKAGE_HARFBUZZ_FREETYPE + bool "Use the FreeType library" + select BR2_PACKAGE_FREETYPE + +config BR2_PACKAGE_HARFBUZZ_GLIB + bool "Use glib" + select BR2_PACKAGE_LIBGLIB2 + depends on BR2_USE_WCHAR # gettext dep in libglib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 +comment "glib support requires a toolchain with WCHAR and threading support." + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + +config BR2_PACKAGE_HARFBUZZ_ICU + bool "Use ICU" + select BR2_PACKAGE_ICU + depends on BR2_USE_WCHAR # icu + depends on BR2_INSTALL_LIBSTDCPP # icu + +comment "icu support requires a toolchain with WCHAR and LIBSTDCPP support." + depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP +endif diff --git a/package/harfbuzz/harfbuzz.mk b/package/harfbuzz/harfbuzz.mk new file mode 100644 index 0000000..9aee90f --- /dev/null +++ b/package/harfbuzz/harfbuzz.mk @@ -0,0 +1,44 @@ +################################################################################ +# +# harfbuzz +# +################################################################################ + +HARFBUZZ_VERSION = 0.9.19 +HARFBUZZ_SITE = http://www.freedesktop.org/software/harfbuzz/release/ +HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.bz2 +HARFBUZZ_LICENSE = Old-MIT ISC ICU +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_HARFBUZZ_CAIRO),y) + HARFBUZZ_DEPENDENCIES += cairo + HARFBUZZ_CONF_OPT += --with-cairo=yes +else + HARFBUZZ_CONF_OPT += --with-cairo=no +endif + +ifeq ($(BR2_PACKAGE_HARFBUZZ_FREETYPE),y) + HARFBUZZ_DEPENDENCIES += freetype + HARFBUZZ_CONF_OPT += --with-freetype=yes +else + HARFBUZZ_CONF_OPT += --with-freetype=no +endif + +ifeq ($(BR2_PACKAGE_HARFBUZZ_GLIB),y) + HARFBUZZ_DEPENDENCIES += libglib2 + HARFBUZZ_CONF_OPT += --with-glib=yes +else + HARFBUZZ_CONF_OPT += --with-glib=no +endif + +ifeq ($(BR2_PACKAGE_HARFBUZZ_ICU),y) + HARFBUZZ_DEPENDENCIES += icu + HARFBUZZ_CONF_OPT += --with-icu=yes +else + HARFBUZZ_CONF_OPT += --with-icu=no +endif + +$(eval $(autotools-package))