added my Recipes
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
From 644c3380f75b20a11755e7052aa632887f3eee2b Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 7 Jul 2022 12:32:47 -0700
|
||||
Subject: [PATCH] cmake: Use alternate way to detect libm
|
||||
|
||||
The standard package provided with MathLib cmake module does not work
|
||||
when libm is folded into libc starting glibc 2.35+
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
CMakeLists.txt | 7 ++++++-
|
||||
contrib/fonttools/CMakeLists.txt | 2 +-
|
||||
fontforge/CMakeLists.txt | 2 +-
|
||||
fontforgeexe/CMakeLists.txt | 2 +-
|
||||
4 files changed, 9 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e234cb6e9..284ba2d20 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -115,9 +115,14 @@ else()
|
||||
endif()
|
||||
find_package(Iconv REQUIRED)
|
||||
find_package(LibXml2 REQUIRED)
|
||||
-find_package(MathLib REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
+include(CheckLibraryExists)
|
||||
+CHECK_LIBRARY_EXISTS(m pow "" HAVE_LIB_M)
|
||||
+if (HAVE_LIB_M)
|
||||
+ set(EXTRA_LIBS ${EXTRA_LIBS} m)
|
||||
+endif (HAVE_LIB_M)
|
||||
+
|
||||
check_include_file(pthread.h HAVE_PTHREAD_H)
|
||||
if(HAVE_PTHREAD_H)
|
||||
find_package(Threads)
|
||||
diff --git a/contrib/fonttools/CMakeLists.txt b/contrib/fonttools/CMakeLists.txt
|
||||
index d6c698877..1608af152 100644
|
||||
--- a/contrib/fonttools/CMakeLists.txt
|
||||
+++ b/contrib/fonttools/CMakeLists.txt
|
||||
@@ -15,7 +15,7 @@ add_executable(woff woff.c)
|
||||
|
||||
target_link_libraries(acorn2sfd PRIVATE fontforge)
|
||||
target_link_libraries(dewoff PRIVATE ZLIB::ZLIB)
|
||||
-target_link_libraries(pcl2ttf PRIVATE MathLib::MathLib)
|
||||
+target_link_libraries(pcl2ttf PRIVATE ${EXTRA_LIBS})
|
||||
target_link_libraries(ttf2eps PRIVATE fontforge)
|
||||
target_link_libraries(woff PRIVATE ZLIB::ZLIB)
|
||||
|
||||
diff --git a/fontforge/CMakeLists.txt b/fontforge/CMakeLists.txt
|
||||
index 9a052f360..067ef40df 100644
|
||||
--- a/fontforge/CMakeLists.txt
|
||||
+++ b/fontforge/CMakeLists.txt
|
||||
@@ -237,7 +237,7 @@ target_link_libraries(fontforge
|
||||
GLIB::GLIB
|
||||
Intl::Intl
|
||||
PRIVATE
|
||||
- MathLib::MathLib
|
||||
+ ${EXTRA_LIBS}
|
||||
Iconv::Iconv
|
||||
ZLIB::ZLIB
|
||||
)
|
||||
diff --git a/fontforgeexe/CMakeLists.txt b/fontforgeexe/CMakeLists.txt
|
||||
index e2982c39d..8829993ea 100644
|
||||
--- a/fontforgeexe/CMakeLists.txt
|
||||
+++ b/fontforgeexe/CMakeLists.txt
|
||||
@@ -121,7 +121,7 @@ if(ENABLE_PYTHON_SCRIPTING_RESULT)
|
||||
target_link_libraries(fontforgeexe PRIVATE Python3::Python)
|
||||
endif()
|
||||
|
||||
-target_link_libraries(fontforgeexe PRIVATE fontforge Iconv::Iconv MathLib::MathLib)
|
||||
+target_link_libraries(fontforgeexe PRIVATE fontforge Iconv::Iconv ${EXTRA_LIBS})
|
||||
install(TARGETS fontforgeexe RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
if(UNIX)
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
From 798f2816130838f3618212291de6ab0ea814c868 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 29 Sep 2019 20:39:02 -0700
|
||||
Subject: [PATCH] include sys/select on non-glibc platforms
|
||||
|
||||
musl needs sys/select.h for defining fd_set
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
gdraw/gdraw.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/gdraw/gdraw.c
|
||||
+++ b/gdraw/gdraw.c
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "gkeysym.h"
|
||||
#include "ustring.h"
|
||||
|
||||
-#if __Mac
|
||||
+#if __Mac || (defined(__linux__) && !defined(__GLIBC__))
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
SUMMARY = "A font editor"
|
||||
HOMEPAGE = "http://fontforge.github.io/en-US/"
|
||||
LICENSE = "BSD-3-Clause & GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING.gplv3;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://LICENSE;md5=d042f3d2a8fd7208b704a499168e3c89 \
|
||||
"
|
||||
|
||||
DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native libspiro"
|
||||
DEPENDS:append:class-target = " libxi"
|
||||
|
||||
inherit cmake pkgconfig python3native python3targetconfig features_check gettext gtk-icon-cache mime mime-xdg
|
||||
|
||||
REQUIRED_DISTRO_FEATURES:append:class-target = " x11"
|
||||
|
||||
# tag 20220308
|
||||
SRCREV = "a1dad3e81da03d5d5f3c4c1c1b9b5ca5ebcfcecf"
|
||||
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 \
|
||||
file://0001-cmake-Use-alternate-way-to-detect-libm.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECMAKE = "-DENABLE_DOCS=OFF"
|
||||
|
||||
CFLAGS += "-fno-strict-aliasing"
|
||||
LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
|
||||
BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
|
||||
|
||||
#do_configure:prepend() {
|
||||
# uthash sources are expected in uthash/src
|
||||
# mkdir -p ${S}/uthash/src
|
||||
# cp ${STAGING_INCDIR}/ut*.h ${S}/uthash/src
|
||||
#}
|
||||
|
||||
PACKAGES =+ "${PN}-python"
|
||||
|
||||
FILES:${PN} += " \
|
||||
${datadir}/appdata \
|
||||
${datadir}/metainfo \
|
||||
${datadir}/mime \
|
||||
"
|
||||
|
||||
FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR} ${datadir}/${BPN}/python"
|
||||
RDEPENDS:${PN}-python = "python3"
|
||||
|
||||
# for e.g kde's oxygen-fonts
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright (C) 2022 Khem Raj <raj.khem@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "LibSpiro is an adaptation of Spiro formula and functions into a sharable library"
|
||||
HOMEPAGE = "https://github.com/fontforge/libspiro"
|
||||
LICENSE = "GPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
SRC_URI = "https://github.com/fontforge/libspiro/releases/download/20200505/libspiro-dist-20200505.tar.gz"
|
||||
SRC_URI[sha256sum] = "06c69a1e8dcbcabcf009fd96fd90b1a244d0257246e376c2c4d57c4ea4af0e49"
|
||||
|
||||
inherit autotools
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
Reference in New Issue
Block a user