Import print/opentype-sanitizer.

The OpenType Sanitizer (OTS) parses and serializes OpenType files (OTF, TTF)
and WOFF and WOFF2 font files, validating them and sanitizing them as it goes.

OK sthen@, rsadowski@
This commit is contained in:
fcambus
2026-02-27 10:20:55 +00:00
parent 4d52738787
commit ffa853d2a5
4 changed files with 49 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
COMMENT = sanitizer for OpenType fonts
V = 9.2.0
DISTNAME = ots-$V
PKGNAME = opentype-sanitizer-$V
CATEGORIES = print
HOMEPAGE = https://github.com/khaledhosny/ots
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c freetype lz4 m woff2dec z
SITES = https://github.com/khaledhosny/ots/releases/download/v$V/
EXTRACT_SUFX = .tar.xz
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c++
MODULES = devel/meson
BUILD_DEPENDS = devel/gtest
LIB_DEPENDS = archivers/lz4 \
archivers/woff2
# gtest requires C++14
CONFIGURE_ARGS = -Dcpp_std=c++14
.include <bsd.port.mk>
+2
View File
@@ -0,0 +1,2 @@
SHA256 (ots-9.2.0.tar.xz) = Gh5QzX7OonxO8ExbFJHCHnVVXzW/keJxA+3gTd0R4FM=
SIZE (ots-9.2.0.tar.xz) = 30675164
+2
View File
@@ -0,0 +1,2 @@
The OpenType Sanitizer (OTS) parses and serializes OpenType files (OTF, TTF)
and WOFF and WOFF2 font files, validating them and sanitizing them as it goes.
+10
View File
@@ -0,0 +1,10 @@
@bin bin/ots-idempotent
@bin bin/ots-perf
@bin bin/ots-sanitize
@bin bin/ots-side-by-side
@bin bin/ots-validator-checker
@man man/man1/ots-idempotent.1
@man man/man1/ots-perf.1
@man man/man1/ots-sanitize.1
@man man/man1/ots-side-by-side.1
@man man/man1/ots-validator-checker.1