initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From 96bbf3a3af45d86f790afdf91a6686c37421e92b Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 15 Nov 2020 10:57:37 +0100
|
||||
Subject: [PATCH] meson.build: check for pthread.h
|
||||
|
||||
Check for pthread.h otherwise the build will fail with some toolchains
|
||||
that have libphtread.so but not pthread.h:
|
||||
|
||||
Run-time dependency threads found: YES
|
||||
|
||||
../src/hb-mutex.hh:53:10: fatal error: pthread.h: No such file or directory
|
||||
#include <pthread.h>
|
||||
^~~~~~~~~~~
|
||||
|
||||
Moreover, fix detection of pthread fallback
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/70c98e89b1d5e5b651d1f6928dc53f465103f57a
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
meson.build | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index bf3925db..6d263d48 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -281,7 +281,9 @@ endif
|
||||
# threads
|
||||
thread_dep = null_dep
|
||||
if host_machine.system() != 'windows'
|
||||
- thread_dep = dependency('threads', required: false)
|
||||
+ if cpp.has_header('pthread.h')
|
||||
+ thread_dep = dependency('threads', required: false)
|
||||
+ endif
|
||||
|
||||
if thread_dep.found()
|
||||
conf.set('HAVE_PTHREAD', 1)
|
||||
--
|
||||
2.29.2
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_HARFBUZZ
|
||||
bool "harfbuzz"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
help
|
||||
HarfBuzz is an OpenType text shaping engine
|
||||
|
||||
https://harfbuzz.github.io/
|
||||
|
||||
Harfbuzz can make optional use of cairo, freetype,
|
||||
glib2 and icu packages if they are selected.
|
||||
|
||||
comment "harfbuzz needs a toolchain w/ C++, gcc >= 4.8"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 036b0ee118451539783ec7864148bb4106be42a2eb964df4e83e6703ec46f3d9 harfbuzz-3.0.0.tar.xz
|
||||
sha256 4345e1735f8bc6d812fed5180cabb5a5e88a4109d332652f2a45c13cfa5ee692 COPYING
|
||||
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# harfbuzz
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HARFBUZZ_VERSION = 3.0.0
|
||||
HARFBUZZ_SITE = https://github.com/harfbuzz/harfbuzz/releases/download/$(HARFBUZZ_VERSION)
|
||||
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.xz
|
||||
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
|
||||
HARFBUZZ_LICENSE_FILES = COPYING
|
||||
HARFBUZZ_CPE_ID_VENDOR = harfbuzz_project
|
||||
HARFBUZZ_INSTALL_STAGING = YES
|
||||
HARFBUZZ_CONF_OPTS = \
|
||||
-Dgdi=disabled \
|
||||
-Ddirectwrite=disabled \
|
||||
-Dcoretext=disabled \
|
||||
-Dtests=disabled \
|
||||
-Ddocs=disabled \
|
||||
-Dbenchmark=disabled \
|
||||
-Dicu_builtin=false \
|
||||
-Dexperimental_api=false \
|
||||
-Dfuzzer_ldflags=""
|
||||
|
||||
# freetype & glib2 support required by host-pango
|
||||
HOST_HARFBUZZ_DEPENDENCIES = \
|
||||
host-freetype \
|
||||
host-libglib2
|
||||
HOST_HARFBUZZ_CONF_OPTS = \
|
||||
-Dglib=enabled \
|
||||
-Dgobject=disabled \
|
||||
-Dcairo=disabled \
|
||||
-Dicu=disabled \
|
||||
-Dgraphite=disabled \
|
||||
-Dfreetype=enabled \
|
||||
-Dgdi=disabled \
|
||||
-Ddirectwrite=disabled \
|
||||
-Dcoretext=disabled \
|
||||
-Dtests=disabled \
|
||||
-Dintrospection=disabled \
|
||||
-Ddocs=disabled \
|
||||
-Dbenchmark=disabled \
|
||||
-Dicu_builtin=false \
|
||||
-Dexperimental_api=false \
|
||||
-Dfuzzer_ldflags=""
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CAIRO),y)
|
||||
HARFBUZZ_DEPENDENCIES += cairo
|
||||
HARFBUZZ_CONF_OPTS += -Dcairo=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += -Dcairo=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
HARFBUZZ_DEPENDENCIES += freetype
|
||||
HARFBUZZ_CONF_OPTS += -Dfreetype=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += -Dfreetype=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
||||
HARFBUZZ_DEPENDENCIES += gobject-introspection
|
||||
HARFBUZZ_CONF_OPTS += \
|
||||
-Dgobject=enabled \
|
||||
-Dintrospection=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += \
|
||||
-Dgobject=disabled \
|
||||
-Dintrospection=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GRAPHITE2),y)
|
||||
HARFBUZZ_DEPENDENCIES += graphite2
|
||||
HARFBUZZ_CONF_OPTS += -Dgraphite=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += -Dgraphite=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
||||
HARFBUZZ_DEPENDENCIES += libglib2
|
||||
HARFBUZZ_CONF_OPTS += -Dglib=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += -Dglib=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||
HARFBUZZ_DEPENDENCIES += icu
|
||||
HARFBUZZ_CONF_OPTS += -Dicu=enabled
|
||||
else
|
||||
HARFBUZZ_CONF_OPTS += -Dicu=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
HARFBUZZ_CXXFLAGS += $(TARGET_CXXFLAGS) -DHB_NO_MT
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_VERSION_ARC),y)
|
||||
HARFBUZZ_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
$(eval $(host-meson-package))
|
||||
Reference in New Issue
Block a user