update yarn & npm

This commit is contained in:
2023-03-25 21:13:46 +02:00
parent 453f7f83f6
commit 7549364d58
16 changed files with 1115 additions and 228 deletions

View File

@@ -0,0 +1,47 @@
# Created by: jseger@FreeBSD.org
# $FreeBSD: head/print/freetype2/Makefile 435690 2017-03-08 15:26:28Z kwm $
PORTNAME= freetype2
PORTVERSION= 2.12.1
CATEGORIES= print
MASTER_SITES+= http://savannah.nongnu.org/download/freetype/
MASTER_SITES+= SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/
MASTER_SITES+= http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/
MASTER_SITES+= http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/
MASTER_SITES+= http://ftp.sunet.se/pub/text-processing/freetype/freetype2/
MASTER_SITES+= ftp://ftp.freetype.org/freetype/freetype2/
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
PKGNAMEPREFIX= lib
MAINTAINER= gnome@FreeBSD.org
COMMENT= Free and portable TrueType font rendering engine
USES= gmake tar:xz
MAKE_ENV= TOP=""
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-harfbuzz
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
SUB_FILES= pkg-message
CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
#SUBPIXEL_HINTING_DESC= Sub-pixel hinting support
#V38_DESC= v38 mode (Infinality code)
#V38_VARS= SUBPIXEL_HINTING_MODE+=1
#V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting, faster)
#V40_VARS= SUBPIXEL_HINTING_MODE+=2
.include <bsd.port.pre.mk>
post-configure:
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.*
.include <bsd.port.post.mk>
#EOF

View File

@@ -0,0 +1,175 @@
#gmake[1]: Entering directory '/usr/ports/graph/libfreetype2new/work/freetype-2.12.1'
#
#FreeType build systemCONFIGURE_ARGS+= -- automatic system detection
#
#The following settings are used:
#
# platform unix
# compiler cc
# configuration directory ./builds/unix
# configuration rules ./builds/unix/unix.mk
#
#If this does not correspond to your system or settings please remove the file
#`config.mk' from this directory then read the INSTALL file for help.
#
#Otherwise, simply type `gmake' again to build the library,
#or `gmake refdoc' to build the API reference (this needs Python >= 3.5).
#
#cd builds/unix; \
# ./configure '--help'
#`configure' configures FreeType 2.12.1 to adapt to many kinds of systems.
#
#Usage: ./configure [OPTION]... [VAR=VALUE]...
#
#To assign environment variables (e.g., CC, CFLAGS...), specify them as
#VAR=VALUE. See below for descriptions of some of the useful variables.
#
#Defaults for the options are specified in brackets.
#
#Configuration:
# -h,CONFIGURE_ARGS+= --help display this help and exit
# CONFIGURE_ARGS+= --help=short display options specific to this package
# CONFIGURE_ARGS+= --help=recursive display the short help of all the included packages
# -V,CONFIGURE_ARGS+= --version display version information and exit
# -q,CONFIGURE_ARGS+= --quiet, --silent do not print `checking ...' messages
# CONFIGURE_ARGS+= --cache-file=FILE cache test results in FILE [disabled]
# -C,CONFIGURE_ARGS+= --config-cache alias for `--cache-file=config.cache'
# -n,CONFIGURE_ARGS+= --no-create do not create output files
# CONFIGURE_ARGS+= --srcdir=DIR find the sources in DIR [configure dir or `..']
#
#Installation directories:
# CONFIGURE_ARGS+= --prefix=PREFIX install architecture-independent files in PREFIX
# [/usr/local]
# CONFIGURE_ARGS+= --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
# [PREFIX]
#
#By default, `make install' will install all the files in
#`/usr/local/bin', `/usr/local/lib' etc. You can specify
#an installation prefix other than `/usr/local' using `--prefix',
#for instance `--prefix=$HOME'.
#
#For better control, use the options below.
#
#Fine tuning of the installation directories:
# CONFIGURE_ARGS+= --bindir=DIR user executables [EPREFIX/bin]
# CONFIGURE_ARGS+= --sbindir=DIR system admin executables [EPREFIX/sbin]
# CONFIGURE_ARGS+= --libexecdir=DIR program executables [EPREFIX/libexec]
# CONFIGURE_ARGS+= --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
# CONFIGURE_ARGS+= --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
# CONFIGURE_ARGS+= --localstatedir=DIR modifiable single-machine data [PREFIX/var]
# CONFIGURE_ARGS+= --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
# CONFIGURE_ARGS+= --libdir=DIR object code libraries [EPREFIX/lib]
# CONFIGURE_ARGS+= --includedir=DIR C header files [PREFIX/include]
# CONFIGURE_ARGS+= --oldincludedir=DIR C header files for non-gcc [/usr/include]
# CONFIGURE_ARGS+= --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
# CONFIGURE_ARGS+= --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
# CONFIGURE_ARGS+= --infodir=DIR info documentation [DATAROOTDIR/info]
# CONFIGURE_ARGS+= --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
# CONFIGURE_ARGS+= --mandir=DIR man documentation [DATAROOTDIR/man]
# CONFIGURE_ARGS+= --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
# CONFIGURE_ARGS+= --htmldir=DIR html documentation [DOCDIR]
# CONFIGURE_ARGS+= --dvidir=DIR dvi documentation [DOCDIR]
# CONFIGURE_ARGS+= --pdfdir=DIR pdf documentation [DOCDIR]
# CONFIGURE_ARGS+= --psdir=DIR ps documentation [DOCDIR]
#
#System types:
# CONFIGURE_ARGS+= --build=BUILD configure for building on BUILD [guessed]
# CONFIGURE_ARGS+= --host=HOST cross-compile to build programs to run on HOST [BUILD]
# CONFIGURE_ARGS+= --target=TARGET configure for building compilers for TARGET [HOST]
#
#Optional Features:
# CONFIGURE_ARGS+= --disable-option-checking ignore unrecognized --enable/--with options
# CONFIGURE_ARGS+= --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
# CONFIGURE_ARGS+= --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
# CONFIGURE_ARGS+= --enable-shared[=PKGS] build shared libraries [default=yes]
# CONFIGURE_ARGS+= --enable-static[=PKGS] build static libraries [default=yes]
# CONFIGURE_ARGS+= --enable-fast-install[=PKGS]
# optimize for fast installation [default=yes]
# CONFIGURE_ARGS+= --disable-libtool-lock avoid locking (might break parallel builds)
# CONFIGURE_ARGS+= --enable-freetype-config
# install freetype-config
# CONFIGURE_ARGS+= --disable-largefile omit support for large files
# CONFIGURE_ARGS+= --disable-mmap do not check mmap() and do not use
#
#Optional Packages:
# CONFIGURE_ARGS+= --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
# CONFIGURE_ARGS+= --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
# CONFIGURE_ARGS+= --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
# both]
# CONFIGURE_ARGS+= --with-aix-soname=aix|svr4|both
# shared library versioning (aka "SONAME") variant to
# provide on AIX, [default=aix].
# CONFIGURE_ARGS+= --with-gnu-ld assume the C compiler uses GNU ld [default=no]
# CONFIGURE_ARGS+= --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
# compiler's sysroot if not specified).
# CONFIGURE_ARGS+= --with-zlib=[yes|no|auto]
# use system zlib instead of internal library
# [default=auto]
# CONFIGURE_ARGS+= --with-bzip2=[yes|no|auto]
# support bzip2 compressed fonts [default=auto]
# CONFIGURE_ARGS+= --with-png=[yes|no|auto]
# support png compressed OpenType embedded bitmaps
# [default=auto]
CONFIGURE_ARGS+= --with-harfbuzz
=[yes|no|auto]
# improve auto-hinting of OpenType fonts
# [default=auto]
# CONFIGURE_ARGS+= --with-brotli=[yes|no|auto]
# support decompression of WOFF2 streams
# [default=auto]
# CONFIGURE_ARGS+= --with-librsvg=[yes|no|auto]
# support OpenType SVG fonts in FreeType demo programs
# [default=auto]
# CONFIGURE_ARGS+= --with-old-mac-fonts allow Mac resource-based fonts to be used
# CONFIGURE_ARGS+= --with-fsspec use obsolete FSSpec API of MacOS, if available
# (default=yes)
# CONFIGURE_ARGS+= --with-fsref use Carbon FSRef API of MacOS, if available
# (default=yes)
# CONFIGURE_ARGS+= --with-quickdraw-toolbox
# use MacOS QuickDraw in ToolBox, if available
# (default=yes)
# CONFIGURE_ARGS+= --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
# (default=yes)
# CONFIGURE_ARGS+= --with-ats use AppleTypeService, if available (default=yes)
#
#Some influential environment variables:
# CC C compiler command
# CFLAGS C compiler flags
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
# nonstandard directory <lib dir>
# LIBS libraries to pass to the linker, e.g. -l<library>
# CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
# you have headers in a nonstandard directory <include dir>
# CPP C preprocessor
# PKG_CONFIG path to pkg-config utility
# PKG_CONFIG_PATH
# directories to add to pkg-config's search path
# PKG_CONFIG_LIBDIR
# path overriding pkg-config's built-in search path
# LT_SYS_LIBRARY_PATH
# User-defined run-time library search path.
# ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
# ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
# BZIP2_CFLAGS
# C compiler flags for BZIP2, overriding pkg-config
# BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
# LIBPNG_CFLAGS
# C compiler flags for LIBPNG, overriding pkg-config
# LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
# HARFBUZZ_CFLAGS
# C compiler flags for HARFBUZZ, overriding pkg-config
# HARFBUZZ_LIBS
# linker flags for HARFBUZZ, overriding pkg-config
# BROTLI_CFLAGS
# C compiler flags for BROTLI, overriding pkg-config
# BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
# LIBRSVG_CFLAGS
# C compiler flags for LIBRSVG, overriding pkg-config
# LIBRSVG_LIBS
# linker flags for LIBRSVG, overriding pkg-config
#
#Use these variables to override the choices made by `configure' or to help
#it to find libraries and programs with nonstandard names/locations.
#
#Report bugs to <freetype@nongnu.org>.
#gmake[1]: Leaving directory '/usr/ports/graph/libfreetype2new/work/freetype-2.12.1'

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1679739349
SHA256 (freetype-2.12.1.tar.xz) = 4766f20157cc4cf0cd292f80bf917f92d1c439b243ac3018debf6b9140c41a7f
SIZE (freetype-2.12.1.tar.xz) = 2471916

View File

@@ -0,0 +1,46 @@
# Fix metrics on size request for scalable fonts.
# Based on b0962ac34e66052ccfee7996e5468f30d4bd5a72 commit with changes for new version.
# Reverts bcc74f4dafee25ea89f1d3144646cba7e30f9908 commit for src/truetype/ttdriver.c file.
# Adapts 8ab08cff63eeb23b6c9f2c4470ae9809f2acf244 commit for src/truetype/ttobjs.c file.
--- src/truetype/ttdriver.c.orig 2017-04-29 04:38:17 UTC
+++ src/truetype/ttdriver.c
@@ -357,6 +357,8 @@
if ( FT_IS_SCALABLE( size->face ) )
{
error = tt_size_reset( ttsize, 0 );
+ if ( !error )
+ ttsize->root.metrics = *ttsize->metrics;
#ifdef TT_USE_BYTECODE_INTERPRETER
/* for the `MPS' bytecode instruction we need the point size */
--- src/truetype/ttobjs.c.orig 2017-05-07 11:05:56 UTC
+++ src/truetype/ttobjs.c
@@ -1262,6 +1262,13 @@
/* */
if ( face->header.Flags & 8 )
{
+ if ( !only_height )
+ {
+ size_metrics->x_scale = FT_DivFix( size_metrics->x_ppem << 6,
+ face->root.units_per_EM );
+ size_metrics->y_scale = FT_DivFix( size_metrics->y_ppem << 6,
+ face->root.units_per_EM );
+ }
/* the TT spec always asks for ROUND, not FLOOR or CEIL */
size_metrics->ascender = FT_PIX_ROUND(
FT_MulFix( face->root.ascender,
@@ -1283,11 +1290,12 @@
{
/* base scaling values on integer ppem values, */
/* as mandated by the TrueType specification */
+/*
size_metrics->x_scale = FT_DivFix( size_metrics->x_ppem << 6,
face->root.units_per_EM );
size_metrics->y_scale = FT_DivFix( size_metrics->y_ppem << 6,
face->root.units_per_EM );
-
+*/
size_metrics->max_advance = FT_PIX_ROUND(
FT_MulFix( face->root.max_advance_width,
size_metrics->x_scale ) );

View File

@@ -0,0 +1,11 @@
--- ./builds/unix/configure.orig 2022-05-01 07:25:05.000000000 +0200
+++ ./builds/unix/configure 2023-03-25 12:17:50.587558000 +0200
@@ -2735,7 +2735,7 @@
# Don't forget to update `docs/VERSIONS.TXT'!
-version_info='24:3:18'
+version_info='13:0:13'
ft_version=`echo $version_info | tr : .`

View File

@@ -0,0 +1,36 @@
--- ./builds/unix/ltmain.sh.orig 2022-05-01 07:25:04.000000000 +0200
+++ ./builds/unix/ltmain.sh 2023-03-25 12:18:56.314861000 +0200
@@ -9091,13 +9091,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
+ darwin|linux|midnightbsd-elf|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|qnx|sunos)
+ freebsd*|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -9177,15 +9177,9 @@
esac
;;
- freebsd-aout)
+ freebsd*)
major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf | midnightbsd-elf)
- func_arith $current - $age
- major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=.$current
;;
irix | nonstopux)

View File

@@ -0,0 +1,29 @@
--- ./include/freetype/config/ftoption.h~ 2022-01-27 09:43:19.000000000 +0200
+++ ./include/freetype/config/ftoption.h 2023-03-25 12:32:46.321565000 +0200
@@ -706,7 +706,7 @@
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
*/
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */
@@ -868,7 +868,7 @@
* between the two engines using the `hinting-engine` property of the 'cff'
* driver module.
*/
-/* #define CFF_CONFIG_OPTION_OLD_ENGINE */
+#define CFF_CONFIG_OPTION_OLD_ENGINE
/*************************************************************************/
@@ -946,7 +946,7 @@
*
* This problematic commit is now reverted (more or less).
*/
-/* #define AF_CONFIG_OPTION_TT_SIZE_METRICS */
+#define AF_CONFIG_OPTION_TT_SIZE_METRICS
/* */

View File

@@ -0,0 +1,19 @@
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).
The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:
FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(%%DOCSDIR%%/reference/ft2-toc.html, if documentation was installed).

View File

@@ -0,0 +1,25 @@
FreeType is a freely available software library to render fonts.
It is written in C, designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images) of most vector and bitmap font formats.
Some products that use FreeType for rendering fonts on screen or on paper, either exclusively or partially:
---
The FreeType engine is a free and portable font rendering
engine, developed to provide advanced font support for a variety of
platforms and environments. FreeType is a library which can open and
manages font files as well as efficiently load, hint and render
individual glyphs. FreeType is not a font server or a complete
text-rendering library.
----
This includes some tools that are in FreeType 1's contrib directory.
ttf2pfb: Converting TrueType fonts to the Postscript Type 1 format.
ttf2pk: A simple conversion tool to bring TrueType quality to the
TeX world.
ttf2bdf: Produce bitmapped fonts from TrueType files for your X11
applications.
ttfbanner: make posters using a TrueType font
WWW: http://www.freetype.org/

View File

@@ -0,0 +1,64 @@
include/freetype2/freetype/config/ftconfig.h
include/freetype2/freetype/config/ftheader.h
include/freetype2/freetype/config/ftmodule.h
include/freetype2/freetype/config/ftoption.h
include/freetype2/freetype/config/ftstdlib.h
include/freetype2/freetype/config/integer-types.h
include/freetype2/freetype/config/mac-support.h
include/freetype2/freetype/config/public-macros.h
include/freetype2/freetype/freetype.h
include/freetype2/freetype/ftadvanc.h
include/freetype2/freetype/ftbbox.h
include/freetype2/freetype/ftbdf.h
include/freetype2/freetype/ftbitmap.h
include/freetype2/freetype/ftbzip2.h
include/freetype2/freetype/ftcache.h
include/freetype2/freetype/ftchapters.h
include/freetype2/freetype/ftcid.h
include/freetype2/freetype/ftcolor.h
include/freetype2/freetype/ftdriver.h
include/freetype2/freetype/fterrdef.h
include/freetype2/freetype/fterrors.h
include/freetype2/freetype/ftfntfmt.h
include/freetype2/freetype/ftgasp.h
include/freetype2/freetype/ftglyph.h
include/freetype2/freetype/ftgxval.h
include/freetype2/freetype/ftgzip.h
include/freetype2/freetype/ftimage.h
include/freetype2/freetype/ftincrem.h
include/freetype2/freetype/ftlcdfil.h
include/freetype2/freetype/ftlist.h
include/freetype2/freetype/ftlogging.h
include/freetype2/freetype/ftlzw.h
include/freetype2/freetype/ftmac.h
include/freetype2/freetype/ftmm.h
include/freetype2/freetype/ftmodapi.h
include/freetype2/freetype/ftmoderr.h
include/freetype2/freetype/ftotval.h
include/freetype2/freetype/ftoutln.h
include/freetype2/freetype/ftparams.h
include/freetype2/freetype/ftpfr.h
include/freetype2/freetype/ftrender.h
include/freetype2/freetype/ftsizes.h
include/freetype2/freetype/ftsnames.h
include/freetype2/freetype/ftstroke.h
include/freetype2/freetype/ftsynth.h
include/freetype2/freetype/ftsystem.h
include/freetype2/freetype/fttrigon.h
include/freetype2/freetype/fttypes.h
include/freetype2/freetype/ftwinfnt.h
include/freetype2/freetype/otsvg.h
include/freetype2/freetype/t1tables.h
include/freetype2/freetype/ttnameid.h
include/freetype2/freetype/tttables.h
include/freetype2/freetype/tttags.h
include/freetype2/ft2build.h
lib/libfreetype.a
lib/libfreetype.la
lib/libfreetype.so
lib/libfreetype.so.13
lib/pkgconfig/freetype2.pc
share/aclocal/freetype2.m4
@dir include/freetype2/freetype/config
@dir include/freetype2/freetype
@dir include/freetype2