git: a24e226db33e - main - x11-fonts/afdko: Update to 5.0.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Sep 2026 19:28:12 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a24e226db33e407ddc8c242481a01d6f279569ed
commit a24e226db33e407ddc8c242481a01d6f279569ed
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:58:12 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:24:17 +0000
x11-fonts/afdko: Update to 5.0.1
- Update WWW
Changes: https://github.com/adobe-type-tools/afdko/releases
https://github.com/adobe-type-tools/afdko/blob/master/NEWS.md
---
x11-fonts/afdko/Makefile | 21 ++++++++++---
x11-fonts/afdko/distinfo | 6 ++--
x11-fonts/afdko/files/patch-CMakeLists.txt | 48 +++++++++++++++++++-----------
x11-fonts/afdko/files/patch-clang16 | 13 --------
x11-fonts/afdko/pkg-plist | 8 -----
5 files changed, 50 insertions(+), 46 deletions(-)
diff --git a/x11-fonts/afdko/Makefile b/x11-fonts/afdko/Makefile
index 5b863c05e594..480bfc550043 100644
--- a/x11-fonts/afdko/Makefile
+++ b/x11-fonts/afdko/Makefile
@@ -1,17 +1,30 @@
PORTNAME= afdko
-PORTVERSION= 4.0.3
+PORTVERSION= 5.0.1
CATEGORIES= x11-fonts
-MASTER_SITES= https://github.com/adobe-type-tools/afdko/releases/download/${PORTVERSION}/
+MASTER_SITES= PYPI \
+ https://github.com/adobe-type-tools/afdko/releases/download/${PORTVERSION}/
+DISTFILES= afdko-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Adobe Font Development Kit for OpenType (AFDKO)
-WWW= https://github.com/adobe-type-tools/afdko
+WWW= https://adobe-type-tools.github.io/afdko/ \
+ https://github.com/adobe-type-tools/afdko
LICENSE= APACHE20
-USES= cmake compiler:c++11-lang gnome
+LIB_DEPENDS= libantlr4-runtime.so:devel/antlr4-cpp-runtime
+
+USES= cmake compiler:c++11-lang gnome python:build
USE_GNOME= libxml2
+USE_PYTHON= cython
+CMAKE_ARGS= -DSKBUILD_PROJECT_VERSION=${PORTVERSION}
CMAKE_OFF= SKBUILD
+PLIST_FILES= ${PYTHON_SITELIBDIR}/afdko/_internal${PYTHON_TAG}.so
+
+post-patch:
+# Clean up bundled libraries
+ @${RM} -r ${WRKSRC}/third_party/
+
.include <bsd.port.mk>
diff --git a/x11-fonts/afdko/distinfo b/x11-fonts/afdko/distinfo
index 2def0b8cc0a5..51d3ddd6063e 100644
--- a/x11-fonts/afdko/distinfo
+++ b/x11-fonts/afdko/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1765032678
-SHA256 (afdko-4.0.3.tar.gz) = 5feed7c2468e25b25fce0479c04af07f4ed2680bc9251bb4c4aef9ec2fba5720
-SIZE (afdko-4.0.3.tar.gz) = 17922308
+TIMESTAMP = 1790682878
+SHA256 (afdko-5.0.1.tar.gz) = 083b504a1cd865e8bfbb42134a34318ce42ef5130daebfc5b0e2f2fb444326c5
+SIZE (afdko-5.0.1.tar.gz) = 17353747
diff --git a/x11-fonts/afdko/files/patch-CMakeLists.txt b/x11-fonts/afdko/files/patch-CMakeLists.txt
index f3020c030537..f03a337955dc 100644
--- a/x11-fonts/afdko/files/patch-CMakeLists.txt
+++ b/x11-fonts/afdko/files/patch-CMakeLists.txt
@@ -1,32 +1,44 @@
---- CMakeLists.txt.orig 2025-12-05 00:32:05 UTC
+--- CMakeLists.txt.orig 2022-11-09 12:37:21 UTC
+++ CMakeLists.txt
-@@ -27,24 +27,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_D
+@@ -29,20 +29,22 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_D
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+ # Antlr 4 configuration
--# Antlr 4 configuration
--
-# This is an alternate way of supplying the Antlr 4 sources that will override
-# the git clone of the tag listed below. This is especially useful if you
-# 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")
--
--add_definitions(-DANTLR4CPP_STATIC)
++find_path(ANTLR4_INCLUDE_DIR
++ NAMES antlr4-runtime.h
++ PATH_SUFFIXES antlr4-runtime
++ REQUIRED
++)
++find_library(ANTLR4_LIBRARY
++ NAMES antlr4-runtime
++ REQUIRED
++)
++add_library(afdko::antlr4 SHARED IMPORTED GLOBAL)
++set_target_properties(afdko::antlr4 PROPERTIES
++ IMPORTED_LOCATION "${ANTLR4_LIBRARY}"
++ INTERFACE_INCLUDE_DIRECTORIES "${ANTLR4_INCLUDE_DIR}"
++)
+
-set(ANTLR4_WITH_STATIC_CRT OFF)
-# set(ANTLR4_TAG tags/4.13.2)
-# This is a more recent commit than 4.13.2 that addresses a missing
-# include directive needed in more recent Visual Studio releases
-set(ANTLR4_TAG df4d68c09cdef73e023b8838a8bc7ca4dff1d1de)
--include(ExternalAntlr4Cpp)
--
--
- if (DEFINED ENV{FORCE_BUILD_LIBXML2})
- set(BUILD_STATIC_LIBXML2 TRUE)
- else()
-@@ -109,4 +91,3 @@ add_subdirectory(c/type1/source)
- add_subdirectory(c/spot/source)
- add_subdirectory(c/tx/source)
- add_subdirectory(c/type1/source)
--add_subdirectory(c/makeotf)
+-set(LIBXML2_TAG tags/v2.9.13)
+-add_subdirectory(third_party)
++find_package(LibXml2 REQUIRED)
+
+ # ============================================================================
+ # Version Generation
+@@ -140,4 +142,4 @@ endif()
+ target_link_libraries(_internal PRIVATE Threads::Threads)
+ endif()
+
+-install(TARGETS _internal LIBRARY DESTINATION afdko)
++install(TARGETS _internal LIBRARY DESTINATION ${Python_SITELIB}/afdko)
diff --git a/x11-fonts/afdko/files/patch-clang16 b/x11-fonts/afdko/files/patch-clang16
deleted file mode 100644
index 63fb8afe7412..000000000000
--- a/x11-fonts/afdko/files/patch-clang16
+++ /dev/null
@@ -1,13 +0,0 @@
---- c/shared/source/tx_shared/tx_shared.c.orig 2023-06-13 21:30:33 UTC
-+++ c/shared/source/tx_shared/tx_shared.c
-@@ -523,8 +523,8 @@ void stmInit(txCtx h) {
- h->cb.stm.open = stm_open;
- h->cb.stm.seek = stm_seek;
- h->cb.stm.tell = stm_tell;
-- h->cb.stm.read = stm_read;
-- h->cb.stm.xml_read = stm_xml_read;
-+ h->cb.stm.read = (size_t (*)(ctlStreamCallbacks *, void *, char **)) stm_read;
-+ h->cb.stm.xml_read = (size_t (*)(ctlStreamCallbacks *, void *, xmlDocPtr *)) stm_xml_read;
- h->cb.stm.write = stm_write;
- h->cb.stm.status = stm_status;
- h->cb.stm.close = stm_close;
diff --git a/x11-fonts/afdko/pkg-plist b/x11-fonts/afdko/pkg-plist
deleted file mode 100644
index b6d4a04009ec..000000000000
--- a/x11-fonts/afdko/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-bin/detype1
-bin/mergefonts
-bin/rotatefont
-bin/sfntdiff
-bin/sfntedit
-bin/spot
-bin/tx
-bin/type1