From 4cf290fa92e70f748a39d669638ccade4b3ab634 Mon Sep 17 00:00:00 2001 From: ziggi Date: Sat, 24 Oct 2020 09:53:53 +0000 Subject: [PATCH] add libfreetype210 --- _alpha/libfreetype210/Makefile | 47 +++++++++++++++ _alpha/libfreetype210/distinfo | 3 + .../files/patch-x-builds-unix-configure | 20 +++++++ .../files/patch-x-builds-unix-configure.ac | 20 +++++++ .../files/patch-x-builds-unix-detect.mk | 26 ++++++++ .../files/patch-x-builds-unix-ltmain.sh | 36 +++++++++++ ...patch-x-include-freetype-config-ftoption.h | 22 +++++++ _alpha/libfreetype210/files/pkg-message.in | 19 ++++++ _alpha/libfreetype210/pkg-descr | 25 ++++++++ _alpha/libfreetype210/pkg-plist | 59 +++++++++++++++++++ 10 files changed, 277 insertions(+) create mode 100644 _alpha/libfreetype210/Makefile create mode 100644 _alpha/libfreetype210/distinfo create mode 100644 _alpha/libfreetype210/files/patch-x-builds-unix-configure create mode 100644 _alpha/libfreetype210/files/patch-x-builds-unix-configure.ac create mode 100644 _alpha/libfreetype210/files/patch-x-builds-unix-detect.mk create mode 100644 _alpha/libfreetype210/files/patch-x-builds-unix-ltmain.sh create mode 100644 _alpha/libfreetype210/files/patch-x-include-freetype-config-ftoption.h create mode 100644 _alpha/libfreetype210/files/pkg-message.in create mode 100644 _alpha/libfreetype210/pkg-descr create mode 100644 _alpha/libfreetype210/pkg-plist diff --git a/_alpha/libfreetype210/Makefile b/_alpha/libfreetype210/Makefile new file mode 100644 index 00000000..8f9e1e12 --- /dev/null +++ b/_alpha/libfreetype210/Makefile @@ -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.10.2 +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 + +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 +#EOF + diff --git a/_alpha/libfreetype210/distinfo b/_alpha/libfreetype210/distinfo new file mode 100644 index 00000000..9d7358e7 --- /dev/null +++ b/_alpha/libfreetype210/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1603530403 +SHA256 (freetype-2.10.2.tar.xz) = 1543d61025d2e6312e0a1c563652555f17378a204a61e99928c9fcef030a2d8b +SIZE (freetype-2.10.2.tar.xz) = 2404456 diff --git a/_alpha/libfreetype210/files/patch-x-builds-unix-configure b/_alpha/libfreetype210/files/patch-x-builds-unix-configure new file mode 100644 index 00000000..329a289a --- /dev/null +++ b/_alpha/libfreetype210/files/patch-x-builds-unix-configure @@ -0,0 +1,20 @@ +--- ./builds/unix/configure.orig 2018-05-01 23:34:47.000000000 +0200 ++++ ./builds/unix/configure 2019-03-30 22:49:46.389943000 +0200 +@@ -2501,7 +2501,7 @@ + + # Don't forget to update `docs/VERSIONS.TXT'! + +-version_info='23:2:17' ++version_info='13:0:13' + + ft_version=`echo $version_info | tr : .` + +@@ -14727,7 +14727,7 @@ + -e 's/ *$//' \ + -e 's/ */ /g'` + +-LIBSSTATIC_CONFIG="-lfreetype \ ++LIBSSTATIC_CONFIG="-lqtfreetype \ + $zlib_libsstaticconf \ + $bzip2_libsstaticconf \ + $libpng_libsstaticconf \ diff --git a/_alpha/libfreetype210/files/patch-x-builds-unix-configure.ac b/_alpha/libfreetype210/files/patch-x-builds-unix-configure.ac new file mode 100644 index 00000000..c013fcdb --- /dev/null +++ b/_alpha/libfreetype210/files/patch-x-builds-unix-configure.ac @@ -0,0 +1,20 @@ +--- ./builds/unix/configure.ac.orig 2018-05-01 23:34:44.000000000 +0200 ++++ ./builds/unix/configure.ac 2019-03-30 22:49:46.393311000 +0200 +@@ -17,7 +17,7 @@ + + # Don't forget to update `docs/VERSIONS.TXT'! + +-version_info='23:2:17' ++version_info='13:1:13' + AC_SUBST([version_info]) + ft_version=`echo $version_info | tr : .` + AC_SUBST([ft_version]) +@@ -983,7 +983,7 @@ + -e 's/ *$//' \ + -e 's/ */ /g'` + +-LIBSSTATIC_CONFIG="-lfreetype \ ++LIBSSTATIC_CONFIG="-lqtfreetype \ + $zlib_libsstaticconf \ + $bzip2_libsstaticconf \ + $libpng_libsstaticconf \ diff --git a/_alpha/libfreetype210/files/patch-x-builds-unix-detect.mk b/_alpha/libfreetype210/files/patch-x-builds-unix-detect.mk new file mode 100644 index 00000000..7dc7d45e --- /dev/null +++ b/_alpha/libfreetype210/files/patch-x-builds-unix-detect.mk @@ -0,0 +1,26 @@ +--- ./builds/unix/detect.mk.orig 2018-04-22 11:41:36.000000000 +0200 ++++ ./builds/unix/detect.mk 2019-03-30 22:49:46.396705000 +0200 +@@ -22,6 +22,9 @@ + $(wildcard /usr/sbin/init) \ + $(wildcard /dev/null) \ + $(wildcard /hurd/auth)) ++ # FreeBSD is "unix" so just mandate this to fix the build in ++ # jails that do not have init (see PR#113470). ++ is_unix := true + ifneq ($(is_unix),) + + PLATFORM := unix +@@ -80,10 +83,10 @@ + ifdef must_configure + ifneq ($(have_Makefile),) + # we are building FT2 not in the src tree +- $(TOP_DIR)/builds/unix/configure $(value CFG) ++# $(TOP_DIR)/builds/unix/configure $(value CFG) + else +- cd builds/unix; \ +- ./configure $(value CFG) ++# cd builds/unix; \ ++# ./configure $(value CFG) + endif + endif + diff --git a/_alpha/libfreetype210/files/patch-x-builds-unix-ltmain.sh b/_alpha/libfreetype210/files/patch-x-builds-unix-ltmain.sh new file mode 100644 index 00000000..175114fc --- /dev/null +++ b/_alpha/libfreetype210/files/patch-x-builds-unix-ltmain.sh @@ -0,0 +1,36 @@ +--- ./builds/unix/ltmain.sh.orig 2016-12-30 22:17:22.000000000 +0200 ++++ ./builds/unix/ltmain.sh 2017-05-03 15:42:25.006660000 +0200 +@@ -8805,13 +8805,13 @@ + # + case $version_type in + # correct linux to gnu/linux during the next big refactor +- darwin|freebsd-elf|linux|osf|windows|none) ++ darwin|linux|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 +@@ -8891,15 +8891,9 @@ + esac + ;; + +- freebsd-aout) ++ freebsd*) + major=.$current +- versuffix=.$current.$revision +- ;; +- +- freebsd-elf) +- func_arith $current - $age +- major=.$func_arith_result +- versuffix=$major.$age.$revision ++ versuffix=.$current + ;; + + irix | nonstopux) diff --git a/_alpha/libfreetype210/files/patch-x-include-freetype-config-ftoption.h b/_alpha/libfreetype210/files/patch-x-include-freetype-config-ftoption.h new file mode 100644 index 00000000..a05741a2 --- /dev/null +++ b/_alpha/libfreetype210/files/patch-x-include-freetype-config-ftoption.h @@ -0,0 +1,22 @@ +--- ./include/freetype/config/ftoption.h.orig 2020-01-19 18:02:27.000000000 +0200 ++++ ./include/freetype/config/ftoption.h 2020-10-24 11:02:14.679157000 +0200 +@@ -674,8 +674,8 @@ + * 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 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /************************************************************************** +@@ -932,7 +932,7 @@ + * + * This problematic commit is now reverted (more or less). + */ +-/* #define AF_CONFIG_OPTION_TT_SIZE_METRICS */ ++//#define AF_CONFIG_OPTION_TT_SIZE_METRICS + + /* */ + diff --git a/_alpha/libfreetype210/files/pkg-message.in b/_alpha/libfreetype210/files/pkg-message.in new file mode 100644 index 00000000..e4d90779 --- /dev/null +++ b/_alpha/libfreetype210/files/pkg-message.in @@ -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). diff --git a/_alpha/libfreetype210/pkg-descr b/_alpha/libfreetype210/pkg-descr new file mode 100644 index 00000000..fece4e3c --- /dev/null +++ b/_alpha/libfreetype210/pkg-descr @@ -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/ diff --git a/_alpha/libfreetype210/pkg-plist b/_alpha/libfreetype210/pkg-plist new file mode 100644 index 00000000..22a86d93 --- /dev/null +++ b/_alpha/libfreetype210/pkg-plist @@ -0,0 +1,59 @@ +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/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/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/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