FreeBSD Bugzilla – Attachment 220792 Details for
Bug 251512
print/freetype2: Update to 2.11.0, convert to CMake and rearrange Makefile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for freetype2 v3
0001-freetype2.patch (text/plain), 8.89 KB, created by
Daniel Engberg
on 2020-12-21 21:43:43 UTC
(
hide
)
Description:
Patch for freetype2 v3
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2020-12-21 21:43:43 UTC
Size:
8.89 KB
patch
obsolete
>From 2c939fb7e33e153407863e87b0e25919764d1f91 Mon Sep 17 00:00:00 2001 >From: Daniel Engberg <daniel.engberg.lists@pyret.net> >Date: Mon, 21 Dec 2020 22:06:26 +0100 >Subject: [PATCH] freetype2 > >freetype2 > >Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> >--- > print/freetype2/Makefile | 87 ++++++++----------- > print/freetype2/files/patch-CMakeLists.txt | 28 ++++++ > .../files/patch-builds_unix_detect.mk | 26 ------ > print/freetype2/pkg-plist | 7 +- > 4 files changed, 69 insertions(+), 79 deletions(-) > create mode 100644 print/freetype2/files/patch-CMakeLists.txt > delete mode 100644 print/freetype2/files/patch-builds_unix_detect.mk > >diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile >index 27e99e699e05..c3a03ddc32a4 100644 >--- a/print/freetype2/Makefile >+++ b/print/freetype2/Makefile >@@ -3,13 +3,10 @@ > > PORTNAME= freetype2 > DISTVERSION= 2.10.4 >+PORTREVISION= 1 > CATEGORIES= print >-MASTER_SITES= http://savannah.nongnu.org/download/freetype/ \ >- SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ \ >- http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/ \ >- http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/ \ >- http://ftp.sunet.se/pub/text-processing/freetype/freetype2/ \ >- ftp://ftp.freetype.org/freetype/freetype2/ >+MASTER_SITES= SAVANNAH/${PORTNAME:S/2//} \ >+ SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ > DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION} > > MAINTAINER= desktop@FreeBSD.org >@@ -22,60 +19,63 @@ LICENSE_FILE_FTL= ${WRKSRC}/docs/FTL.TXT > LICENSE_FILE_GPLv2+ = ${WRKSRC}/docs/GPLv2.TXT > LICENSE_PERMS_FTL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > >-USES= cpe gmake libtool tar:xz >-MAKE_ENV= TOP="" >+USES= cmake cpe localbase pkgconfig tar:xz >+ >+CPE_PRODUCT= freetype >+CPE_VENDOR= freetype > USE_LDCONFIG= yes >-GNU_CONFIGURE= yes >-CONFIGURE_ARGS= --without-harfbuzz >-CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix >+ >+CMAKE_ON= BUILD_SHARED_LIBS \ >+ FT_WITH_BZIP2 \ >+ CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz \ >+ FT_WITH_ZLIB >+ >+CMAKE_OFF= FT_WITH_HARFBUZZ > > SUB_FILES= pkg-message > > PORTDOCS= reference CHANGES formats.txt LICENSE.TXT raster.txt > >-CPE_PRODUCT= freetype >-CPE_VENDOR= freetype >+OPTIONS_DEFINE= BROTLI DEBUG DOCS LONG_PCF_NAMES PNG TABLE_VALIDATION >+OPTIONS_DEFAULT= LCD_RENDERING LONG_PCF_NAMES PNG V40 >+OPTIONS_SUB= yes >+ >+OPTIONS_SINGLE= RENDERING >+OPTIONS_SINGLE_RENDERING= LCD_FILTERING LCD_RENDERING > >-OPTIONS_DEFINE= BROTLI CONFIG DEBUG DOCS LONG_PCF_NAMES PNG \ >- TABLE_VALIDATION > OPTIONS_GROUP= SUBPIXEL_HINTING > OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40 >-OPTIONS_SINGLE= RENDERING >-OPTIONS_SINGLE_RENDERING= LCD_FILTERING LCD_RENDERING >+ > OPTIONS_RADIO= SIZE_METRICS_CHOICE > OPTIONS_RADIO_SIZE_METRICS_CHOICE= FIX_SIZE_METRICS TT_SIZE_METRICS >-OPTIONS_DEFAULT= CONFIG LCD_RENDERING LONG_PCF_NAMES PNG V40 >-OPTIONS_SUB= yes >- >-BROTLI_CONFIGURE_WITH= brotli >-BROTLI_LIB_DEPENDS= libbrotlidec.so:archivers/brotli >-BROTLI_USES= pkgconfig >-CONFIG_DESC= Install freetype-config >-CONFIG_CONFIGURE_ENABLE=freetype-config >-PNG_DESC= Png compressed OpenType embedded bitmaps support >-PNG_LIB_DEPENDS= libpng.so:graphics/png >-PNG_CONFIGURE_WITH= png > >+LONG_PCF_NAMES_DESC= Enable long PCF family names > TABLE_VALIDATION_DESC= TrueType GX/AAT and OpenType table validation >- >+RENDERING_DESC= Rendering technology >+LCD_FILTERING_DESC= Subpixel rendering (patented) >+LCD_RENDERING_DESC= Harmony LCD rendering >+SUBPIXEL_HINTING_DESC= Subpixel hinting support >+V38_DESC= v38 mode (Infinality code) >+V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting, faster) > SIZE_METRICS_CHOICE_DESC= Size metrics for TrueType fonts > FIX_SIZE_METRICS_DESC= Fix metrics on size request for scalable fonts (alternative method) >-FIX_SIZE_METRICS_EXTRA_PATCHES= ${FILESDIR}/extra-patch-fix_size_metrics.diff > TT_SIZE_METRICS_DESC= TrueType-like size metrics for 'light' auto-hinting > >-RENDERING_DESC= Rendering technology >-LCD_FILTERING_DESC?= Subpixel rendering (patented) >-LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING >-LCD_RENDERING_DESC= Harmony LCD rendering >+BROTLI_LIB_DEPENDS= libbrotlidec.so:archivers/brotli >+BROTLI_CMAKE_BOOL= FT_WITH_BROTLI >+BROTLI_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_BrotliDec > >-LONG_PCF_NAMES_DESC= Enable long PCF family names >+PNG_LIB_DEPENDS= libpng.so:graphics/png >+PNG_CMAKE_BOOL= FT_WITH_PNG >+PNG_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_PNG >+ >+LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING > >-SUBPIXEL_HINTING_DESC= Subpixel 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 > >+FIX_SIZE_METRICS_EXTRA_PATCHES= ${FILESDIR}/extra-patch-fix_size_metrics.diff >+ > .include <bsd.port.pre.mk> > > SELECTED_MODE= \ >@@ -85,10 +85,6 @@ SELECTED_MODE= \ > done; \ > ${ECHO_CMD} $$r > >-pre-patch: >- @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ >- ${WRKSRC}/builds/unix/install.mk >- > post-patch: > .if defined(SUBPIXEL_HINTING_MODE) > @${REINPLACE_CMD} -i '.hinting.bak' \ >@@ -121,13 +117,6 @@ post-patch-TT_SIZE_METRICS-on: > -e 's|.*\(#define AF_CONFIG_OPTION_TT_SIZE_METRICS\).*|\1|' \ > ${WRKSRC}/include/freetype/config/ftoption.h > >-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.* >- > post-install-DOCS-on: > (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) > >diff --git a/print/freetype2/files/patch-CMakeLists.txt b/print/freetype2/files/patch-CMakeLists.txt >new file mode 100644 >index 000000000000..966dae1e1ed4 >--- /dev/null >+++ b/print/freetype2/files/patch-CMakeLists.txt >@@ -0,0 +1,28 @@ >+--- CMakeLists.txt.orig 2020-10-20 05:03:43 UTC >++++ CMakeLists.txt >+@@ -440,6 +440,7 @@ endif () >+ >+ >+ set(PKG_CONFIG_REQUIRED_PRIVATE "") >++set(PKG_CONFIG_LIBS_PRIVATE "") >+ >+ if (ZLIB_FOUND) >+ target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES}) >+@@ -449,7 +450,7 @@ endif () >+ if (BZIP2_FOUND) >+ target_link_libraries(freetype PRIVATE ${BZIP2_LIBRARIES}) >+ target_include_directories(freetype PRIVATE ${BZIP2_INCLUDE_DIR}) # not BZIP2_INCLUDE_DIRS >+- list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "bzip2") >++ list(APPEND PKG_CONFIG_LIBS_PRIVATE "-lbz2") >+ endif () >+ if (PNG_FOUND) >+ target_link_libraries(freetype PRIVATE ${PNG_LIBRARIES}) >+@@ -508,7 +509,7 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_AL >+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN}) >+ string(REPLACE "%REQUIRES_PRIVATE%" "${PKG_CONFIG_REQUIRED_PRIVATE}" >+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN}) >+- string(REPLACE "%LIBS_PRIVATE%" "" # All libs support pkg-config >++ string(REPLACE "%LIBS_PRIVATE%" "${PKG_CONFIG_LIBS_PRIVATE}" >+ FREETYPE2_PC_IN ${FREETYPE2_PC_IN}) >+ >+ set(FREETYPE2_PC_IN_NAME "${PROJECT_BINARY_DIR}/freetype2.pc") >diff --git a/print/freetype2/files/patch-builds_unix_detect.mk b/print/freetype2/files/patch-builds_unix_detect.mk >deleted file mode 100644 >index 57f9bd0fb712..000000000000 >--- a/print/freetype2/files/patch-builds_unix_detect.mk >+++ /dev/null >@@ -1,26 +0,0 @@ >---- builds/unix/detect.mk.orig 2019-02-23 09:06:06 UTC >-+++ builds/unix/detect.mk >-@@ -22,6 +22,9 @@ ifeq ($(PLATFORM),ansi) >- $(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 >-@@ -86,10 +89,10 @@ ifeq ($(PLATFORM),unix) >- 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/print/freetype2/pkg-plist b/print/freetype2/pkg-plist >index 88fbc75d09d2..5d922e6caef0 100644 >--- a/print/freetype2/pkg-plist >+++ b/print/freetype2/pkg-plist >@@ -1,4 +1,3 @@ >-%%CONFIG%%bin/freetype-config > include/freetype2/freetype/config/ftconfig.h > include/freetype2/freetype/config/ftheader.h > include/freetype2/freetype/config/ftmodule.h >@@ -52,10 +51,10 @@ include/freetype2/freetype/ttnameid.h > include/freetype2/freetype/tttables.h > include/freetype2/freetype/tttags.h > include/freetype2/ft2build.h >-lib/libfreetype.a >+lib/cmake/freetype/freetype-config-%%CMAKE_BUILD_TYPE%%.cmake >+lib/cmake/freetype/freetype-config-version.cmake >+lib/cmake/freetype/freetype-config.cmake > lib/libfreetype.so > lib/libfreetype.so.6 > lib/libfreetype.so.6.17.4 > libdata/pkgconfig/freetype2.pc >-%%CONFIG%%man/man1/freetype-config.1.gz >-share/aclocal/freetype2.m4 >-- >2.29.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251512
:
220147
|
220441
|
220792
|
226854
|
226941
|
227700