mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
fontforge: Upgrade to 20220308
Switch build system to cmake Add patch to avoid hardcoding build paths in scripts Forward port musl patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
From f5a19ad9b2aea85dab28e7c61ac39404631fad2d Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 6 Jul 2022 04:54:23 -0700
|
||||
Subject: [PATCH] fontforgeexe: Use env to find fontforge
|
||||
|
||||
This helps in avoiding to encode build paths into interpeter
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
fontforgeexe/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/fontforgeexe/CMakeLists.txt b/fontforgeexe/CMakeLists.txt
|
||||
index b2d663b88..e2a8fee54 100644
|
||||
--- a/fontforgeexe/CMakeLists.txt
|
||||
+++ b/fontforgeexe/CMakeLists.txt
|
||||
@@ -118,7 +118,7 @@ if(UNIX)
|
||||
foreach(_script fontimage.pe fontlint.pe sfddiff.pe)
|
||||
get_filename_component(_output \"\${_script}\" NAME_WE)
|
||||
file(READ \"${CMAKE_CURRENT_SOURCE_DIR}/\${_script}\" _input)
|
||||
- file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!\${CMAKE_INSTALL_PREFIX}/bin/fontforge -lang=ff\\n\${_input}\")
|
||||
+ file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!/usr/bin/env fontforge -lang=ff\\n\${_input}\")
|
||||
endforeach()
|
||||
" COMPONENT nativescripts)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/fontimage" "${CMAKE_CURRENT_BINARY_DIR}/fontlint" "${CMAKE_CURRENT_BINARY_DIR}/sfddiff"
|
||||
--
|
||||
2.37.0
|
||||
|
||||
+3
-8
@@ -11,19 +11,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
gdraw/gdraw.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdraw/gdraw.c b/gdraw/gdraw.c
|
||||
index 24591b778..217c63140 100644
|
||||
--- a/gdraw/gdraw.c
|
||||
+++ b/gdraw/gdraw.c
|
||||
@@ -32,7 +32,7 @@
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "gkeysym.h"
|
||||
#include "ustring.h"
|
||||
|
||||
-#if __Mac || __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__
|
||||
+#if __Mac || __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ || !defined(__GLIBC__)
|
||||
-#if __Mac
|
||||
+#if __Mac || (defined(__linux__) && !defined(__GLIBC__))
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
--
|
||||
2.23.0
|
||||
|
||||
|
||||
+9
-8
@@ -6,25 +6,26 @@ LIC_FILES_CHKSUM = " \
|
||||
file://LICENSE;md5=d042f3d2a8fd7208b704a499168e3c89 \
|
||||
"
|
||||
|
||||
DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native"
|
||||
DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native libspiro"
|
||||
DEPENDS:append:class-target = " libxi"
|
||||
|
||||
inherit autotools pkgconfig python3native features_check gettext gtk-icon-cache mime mime-xdg
|
||||
inherit cmake pkgconfig python3native features_check gettext gtk-icon-cache mime mime-xdg
|
||||
|
||||
REQUIRED_DISTRO_FEATURES:append:class-target = " x11"
|
||||
|
||||
# tag 20190801
|
||||
SRCREV = "ac635b818e38ddb8e7e2e1057330a32b4e25476e"
|
||||
# tag 20220308
|
||||
SRCREV = "582bd41a9bf04326300fc02a677fe3610d6d3ccd"
|
||||
SRC_URI = "git://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \
|
||||
file://0001-include-sys-select-on-non-glibc-platforms.patch \
|
||||
file://0001-fontforgeexe-Use-env-to-find-fontforge.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECONF += "--without-libuninameslist --enable-python-scripting --enable-python-extension"
|
||||
EXTRA_OECONF:append:class-native = " with_x=no"
|
||||
EXTRA_OECMAKE = "-DENABLE_GUI=OFF -DENABLE_DOCS=OFF"
|
||||
|
||||
LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
|
||||
BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
|
||||
CFLAGS += "-fno-strict-aliasing"
|
||||
LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI} -lm"
|
||||
BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI} -lm"
|
||||
|
||||
#do_configure:prepend() {
|
||||
# uthash sources are expected in uthash/src
|
||||
Reference in New Issue
Block a user