diff options
| -rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge/0001-fontforgeexe-Use-env-to-find-fontforge.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge/0001-include-sys-select-on-non-glibc-platforms.patch | 11 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge_20220308.bb (renamed from meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb) | 17 |
3 files changed, 41 insertions, 16 deletions
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge/0001-fontforgeexe-Use-env-to-find-fontforge.patch b/meta-oe/recipes-graphics/fontforge/fontforge/0001-fontforgeexe-Use-env-to-find-fontforge.patch new file mode 100644 index 0000000000..e8c1a11d48 --- /dev/null +++ b/meta-oe/recipes-graphics/fontforge/fontforge/0001-fontforgeexe-Use-env-to-find-fontforge.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From f5a19ad9b2aea85dab28e7c61ac39404631fad2d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 6 Jul 2022 04:54:23 -0700 | ||
| 4 | Subject: [PATCH] fontforgeexe: Use env to find fontforge | ||
| 5 | |||
| 6 | This helps in avoiding to encode build paths into interpeter | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | fontforgeexe/CMakeLists.txt | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/fontforgeexe/CMakeLists.txt b/fontforgeexe/CMakeLists.txt | ||
| 15 | index b2d663b88..e2a8fee54 100644 | ||
| 16 | --- a/fontforgeexe/CMakeLists.txt | ||
| 17 | +++ b/fontforgeexe/CMakeLists.txt | ||
| 18 | @@ -118,7 +118,7 @@ if(UNIX) | ||
| 19 | foreach(_script fontimage.pe fontlint.pe sfddiff.pe) | ||
| 20 | get_filename_component(_output \"\${_script}\" NAME_WE) | ||
| 21 | file(READ \"${CMAKE_CURRENT_SOURCE_DIR}/\${_script}\" _input) | ||
| 22 | - file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!\${CMAKE_INSTALL_PREFIX}/bin/fontforge -lang=ff\\n\${_input}\") | ||
| 23 | + file(WRITE \"${CMAKE_CURRENT_BINARY_DIR}/\${_output}\" \"#!/usr/bin/env fontforge -lang=ff\\n\${_input}\") | ||
| 24 | endforeach() | ||
| 25 | " COMPONENT nativescripts) | ||
| 26 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/fontimage" "${CMAKE_CURRENT_BINARY_DIR}/fontlint" "${CMAKE_CURRENT_BINARY_DIR}/sfddiff" | ||
| 27 | -- | ||
| 28 | 2.37.0 | ||
| 29 | |||
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge/0001-include-sys-select-on-non-glibc-platforms.patch b/meta-oe/recipes-graphics/fontforge/fontforge/0001-include-sys-select-on-non-glibc-platforms.patch index 54ff7b76d2..27de27d57d 100644 --- a/meta-oe/recipes-graphics/fontforge/fontforge/0001-include-sys-select-on-non-glibc-platforms.patch +++ b/meta-oe/recipes-graphics/fontforge/fontforge/0001-include-sys-select-on-non-glibc-platforms.patch | |||
| @@ -11,19 +11,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 11 | gdraw/gdraw.c | 2 +- | 11 | gdraw/gdraw.c | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | 13 | ||
| 14 | diff --git a/gdraw/gdraw.c b/gdraw/gdraw.c | ||
| 15 | index 24591b778..217c63140 100644 | ||
| 16 | --- a/gdraw/gdraw.c | 14 | --- a/gdraw/gdraw.c |
| 17 | +++ b/gdraw/gdraw.c | 15 | +++ b/gdraw/gdraw.c |
| 18 | @@ -32,7 +32,7 @@ | 16 | @@ -33,7 +33,7 @@ |
| 19 | #include "gkeysym.h" | 17 | #include "gkeysym.h" |
| 20 | #include "ustring.h" | 18 | #include "ustring.h" |
| 21 | 19 | ||
| 22 | -#if __Mac || __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ | 20 | -#if __Mac |
| 23 | +#if __Mac || __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ || !defined(__GLIBC__) | 21 | +#if __Mac || (defined(__linux__) && !defined(__GLIBC__)) |
| 24 | # include <sys/select.h> | 22 | # include <sys/select.h> |
| 25 | #endif | 23 | #endif |
| 26 | 24 | ||
| 27 | -- | ||
| 28 | 2.23.0 | ||
| 29 | |||
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb b/meta-oe/recipes-graphics/fontforge/fontforge_20220308.bb index cb5f4d5ea1..83bf82a448 100644 --- a/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb +++ b/meta-oe/recipes-graphics/fontforge/fontforge_20220308.bb | |||
| @@ -6,25 +6,26 @@ LIC_FILES_CHKSUM = " \ | |||
| 6 | file://LICENSE;md5=d042f3d2a8fd7208b704a499168e3c89 \ | 6 | file://LICENSE;md5=d042f3d2a8fd7208b704a499168e3c89 \ |
| 7 | " | 7 | " |
| 8 | 8 | ||
| 9 | DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native" | 9 | DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native libspiro" |
| 10 | DEPENDS:append:class-target = " libxi" | 10 | DEPENDS:append:class-target = " libxi" |
| 11 | 11 | ||
| 12 | inherit autotools pkgconfig python3native features_check gettext gtk-icon-cache mime mime-xdg | 12 | inherit cmake pkgconfig python3native features_check gettext gtk-icon-cache mime mime-xdg |
| 13 | 13 | ||
| 14 | REQUIRED_DISTRO_FEATURES:append:class-target = " x11" | 14 | REQUIRED_DISTRO_FEATURES:append:class-target = " x11" |
| 15 | 15 | ||
| 16 | # tag 20190801 | 16 | # tag 20220308 |
| 17 | SRCREV = "ac635b818e38ddb8e7e2e1057330a32b4e25476e" | 17 | SRCREV = "582bd41a9bf04326300fc02a677fe3610d6d3ccd" |
| 18 | SRC_URI = "git://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \ | 18 | SRC_URI = "git://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \ |
| 19 | file://0001-include-sys-select-on-non-glibc-platforms.patch \ | 19 | file://0001-include-sys-select-on-non-glibc-platforms.patch \ |
| 20 | file://0001-fontforgeexe-Use-env-to-find-fontforge.patch \ | ||
| 20 | " | 21 | " |
| 21 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
| 22 | 23 | ||
| 23 | EXTRA_OECONF += "--without-libuninameslist --enable-python-scripting --enable-python-extension" | 24 | EXTRA_OECMAKE = "-DENABLE_GUI=OFF -DENABLE_DOCS=OFF" |
| 24 | EXTRA_OECONF:append:class-native = " with_x=no" | ||
| 25 | 25 | ||
| 26 | LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" | 26 | CFLAGS += "-fno-strict-aliasing" |
| 27 | BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" | 27 | LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI} -lm" |
| 28 | BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI} -lm" | ||
| 28 | 29 | ||
| 29 | #do_configure:prepend() { | 30 | #do_configure:prepend() { |
| 30 | # uthash sources are expected in uthash/src | 31 | # uthash sources are expected in uthash/src |
