[packages/adobe-afdko] Initial; from FC
arekm
arekm at pld-linux.org
Thu May 22 20:36:21 CEST 2025
commit f6870e916878328bf88a4f24b0b9e69f433e96e2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 22 20:23:33 2025 +0200
Initial; from FC
adobe-afdko.spec | 62 ++++++++++++++++++++++++++++++++++++++++++
antlr4-cpp-runtime-4.9.3.patch | 21 ++++++++++++++
2 files changed, 83 insertions(+)
---
diff --git a/adobe-afdko.spec b/adobe-afdko.spec
new file mode 100644
index 0000000..2f23c66
--- /dev/null
+++ b/adobe-afdko.spec
@@ -0,0 +1,62 @@
+%global archivename afdko
+%global antl4_ver 4.9.3
+
+Summary: Adobe Font Development Kit for OpenType
+Name: adobe-afdko
+Version: 4.0.1
+Release: 1
+# ExternalAntlr4Cpp.cmake is BSD-3-clause
+# c/makeotf/makeotf_lib/build/hotpccts/pccts/* is ANTLR-PD
+# afdko-3.6.1/python/afdko/pdflib/pdfgen.py is Python-2.0.1
+# python/afdko/resources/ is BSD-3-Clause
+License: Apache-2.0 AND BSD-3-Clause AND ANTLR-PD AND Python-2.0.1
+URL: https://github.com/adobe-type-tools/afdko
+Source0: https://github.com/adobe-type-tools/%{archivename}/releases/download/%{version}/%{archivename}-%{version}.tar.gz
+# Source0-md5: 2a3ba9bb2583be0d744220411a8f24f1
+Source1: https://www.antlr.org/download/antlr4-cpp-runtime-%{antl4_ver}-source.zip
+# Source1-md5: eafa4fef583e12e963062882773461be
+Patch0: antlr4-cpp-runtime-%{antl4_ver}.patch
+BuildRequires: cmake
+BuildRequires: libuuid-devel
+BuildRequires: libxml2-devel
+BuildRequires: utf8cpp-devel
+
+%description
+Adobe Font Development Kit for OpenType (AFDKO). The AFDKO is a set of
+tools for building OpenType font files from PostScript and TrueType
+font data.
+
+%prep
+%setup -q -n %{archivename}-%{version}
+%patch -P0 -p1
+
+cp %{SOURCE1} .
+
+%build
+install -d build
+cd build
+%{cmake} ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/ README.md NEWS.md LICENSE.md
+%attr(755,root,root) %{_bindir}/detype1
+%attr(755,root,root) %{_bindir}/makeotfexe
+%attr(755,root,root) %{_bindir}/mergefonts
+%attr(755,root,root) %{_bindir}/rotatefont
+%attr(755,root,root) %{_bindir}/sfntdiff
+%attr(755,root,root) %{_bindir}/sfntedit
+%attr(755,root,root) %{_bindir}/spot
+%attr(755,root,root) %{_bindir}/tx
+%attr(755,root,root) %{_bindir}/type1
+
diff --git a/antlr4-cpp-runtime-4.9.3.patch b/antlr4-cpp-runtime-4.9.3.patch
new file mode 100644
index 0000000..49064c3
--- /dev/null
+++ b/antlr4-cpp-runtime-4.9.3.patch
@@ -0,0 +1,21 @@
+diff -ur afdko-4.0.1.orig/CMakeLists.txt afdko-4.0.1/CMakeLists.txt
+--- afdko-4.0.1.orig/CMakeLists.txt 2024-01-17 05:55:45.000000000 +0530
++++ afdko-4.0.1/CMakeLists.txt 2024-06-19 22:56:00.654124920 +0530
+@@ -18,7 +18,7 @@
+ endif()
+ message(STATUS "Build type is ${CMAKE_BUILD_TYPE}")
+
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+
+ # scikit-build
+ if(SKBUILD)
+@@ -34,7 +34,7 @@
+ # encounter compiler problems and need to make small edits to compensate. Start
+ # with the Antlr project's sources, e.g.
+ # https://www.antlr.org/download/antlr4-cpp-runtime-4.9.3-source.zip
+-# set(ANTLR4_ZIP_REPOSITORY "/path_to_antlr4_archive/a4.zip")
++ set(ANTLR4_ZIP_REPOSITORY "${CMAKE_CURRENT_SOURCE_DIR}/antlr4-cpp-runtime-4.9.3-source.zip")
+
+ add_definitions(-DANTLR4CPP_STATIC)
+ set(ANTLR4_WITH_STATIC_CRT OFF)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adobe-afdko.git/commitdiff/f6870e916878328bf88a4f24b0b9e69f433e96e2
More information about the pld-cvs-commit
mailing list