From owner-svn-ports-head@freebsd.org Wed Mar 8 15:26:30 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DB35D02C08; Wed, 8 Mar 2017 15:26:30 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CB7A1470; Wed, 8 Mar 2017 15:26:30 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v28FQTCp009084; Wed, 8 Mar 2017 15:26:29 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v28FQSl4009076; Wed, 8 Mar 2017 15:26:28 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201703081526.v28FQSl4009076@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Wed, 8 Mar 2017 15:26:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r435690 - in head: graphics/inventor print/freetype2 print/freetype2/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 15:26:30 -0000 Author: kwm Date: Wed Mar 8 15:26:28 2017 New Revision: 435690 URL: https://svnweb.freebsd.org/changeset/ports/435690 Log: Update freetype2 to 2.7.1. * List licenses * Add DEBUG, DOCS, TABLE_VALIDATION and SUBPIXEL_HINTING options. * Sort options lines by name. * Add pkg-message describing how certain options can be overwritten at run time, like the subpixel hinting engine. * Fix the build of graphics/inventor. PR: ports/211201 Submitted by: Piotr Kubaj Discussed with: jbeigh@, lightside@gmx.com Exp-run: antoine@ (earlier version) Added: head/print/freetype2/files/pkg-message.in (contents, props changed) Modified: head/graphics/inventor/Makefile head/print/freetype2/Makefile head/print/freetype2/distinfo head/print/freetype2/files/patch-builds_unix_detect.mk head/print/freetype2/pkg-descr head/print/freetype2/pkg-plist Modified: head/graphics/inventor/Makefile ============================================================================== --- head/graphics/inventor/Makefile Wed Mar 8 15:13:55 2017 (r435689) +++ head/graphics/inventor/Makefile Wed Mar 8 15:26:28 2017 (r435690) @@ -3,7 +3,7 @@ PORTNAME= inventor PORTVERSION= 2.1.5.p10 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= graphics MASTER_SITES= ftp://oss.sgi.com/projects/inventor/download/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-/} @@ -45,6 +45,9 @@ DEBUG_MAKE_ENV= LIBTYPE=debug LDFLAGS+= -Wl,--add-needed post-patch: +# Fix for print/freetype2 v2.7, where FT_Done_GlyphSlot function is not exported + @${REINPLACE_CMD} -e '/FT_Done_GlyphSlot/s|^|//|' \ + ${WRKSRC}/libFL/ang/flfreetype.c @${REINPLACE_CMD} 's|/usr\(/include/freetype2\)|${LOCALBASE}\1|' \ ${WRKSRC}/libFL/ang/GNUmakefile @${REINPLACE_CMD} -e 's|%%ICONV_LIB%%|${ICONV_LIB}|' \ Modified: head/print/freetype2/Makefile ============================================================================== --- head/print/freetype2/Makefile Wed Mar 8 15:13:55 2017 (r435689) +++ head/print/freetype2/Makefile Wed Mar 8 15:26:28 2017 (r435690) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= freetype2 -PORTVERSION= 2.6.3 +PORTVERSION= 2.7.1 CATEGORIES= print MASTER_SITES= http://savannah.nongnu.org/download/freetype/ \ SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ \ @@ -15,6 +15,13 @@ DISTNAME= ${PORTNAME:S/2//}-${PORTVERSIO MAINTAINER= gnome@FreeBSD.org COMMENT= Free and portable TrueType font rendering engine +LICENSE= FTL GPLv2+ +LICENSE_COMB= dual +LICENSE_NAME_FTL= The FreeType Project license +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:bzip2 MAKE_ENV= TOP="" USE_LDCONFIG= yes @@ -22,23 +29,71 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-harfbuzz CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix +SUB_FILES= pkg-message + +PORTDOCS= reference CHANGES formats.txt LICENSE.TXT raster.txt + CPE_PRODUCT= freetype CPE_VENDOR= freetype -OPTIONS_DEFINE= LCD_FILTERING PNG -OPTIONS_DEFAULT= LCD_FILTERING -LCD_FILTERING_DESC?= Sub-pixel rendering (patented) +OPTIONS_DEFINE= DEBUG DOCS LCD_FILTERING PNG TABLE_VALIDATION +OPTIONS_GROUP= SUBPIXEL_HINTING +OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40 +OPTIONS_DEFAULT= LCD_FILTERING V40 + PNG_DESC= Png compressed OpenType embedded bitmaps support +PNG_LIB_DEPENDS= libpng.so:graphics/png +PNG_CONFIGURE_WITH= png +TABLE_VALIDATION_DESC= TrueType GX/AAT and OpenType table validation + +LCD_FILTERING_DESC?= Sub-pixel rendering (patented) LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING -PNG_LIB_DEPENDS= libpng.so:graphics/png -PNG_CONFIGURE_OFF= --without-png +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 + +SELECTED_MODE= \ + r=0; \ + for m in ${SUBPIXEL_HINTING_MODE}; \ + do r=$$(($$r | $$m)); \ + done; \ + ${ECHO_CMD} $$r pre-patch: @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ ${WRKSRC}/builds/unix/install.mk +post-patch: +# Check defined TT_CONFIG_OPTION_SUBPIXEL_HINTING + @${REINPLACE_CMD} -e 's|^#if \(TT_CONFIG_OPTION_SUBPIXEL_HINTING\)\(.*\)|#if defined(\1) \&\& (\1\2)|' \ + ${WRKSRC}/include/freetype/config/ftoption.h +.if defined(SUBPIXEL_HINTING_MODE) + @${REINPLACE_CMD} -i '.hinting.bak' \ + -e 's|^\(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\).*|\1 \ + ${SELECTED_MODE:sh}|' \ + ${WRKSRC}/include/freetype/config/ftoption.h +.else + @${REINPLACE_CMD} -i '.hinting.bak' \ + -e 's|^\(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING.*\)|/* \1 */|' \ + ${WRKSRC}/include/freetype/config/ftoption.h +.endif + +post-patch-DEBUG-on: + @${REINPLACE_CMD} -i '.debug.bak' \ + -e 's|.*\(#define FT_DEBUG_LEVEL_TRACE\).*|\1|' \ + -e 's|.*\(#define FT_DEBUG_MEMORY\).*|\1|' \ + ${WRKSRC}/include/freetype/config/ftoption.h + +post-patch-TABLE_VALIDATION-on: + @${REINPLACE_CMD} -e '/valid$$/s|#.*\(AUX_MODULES\)|\1|' \ + ${WRKSRC}/modules.cfg + post-configure: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) @@ -46,4 +101,7 @@ post-configure: post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* -.include +post-install-DOCS-on: + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) + +.include Modified: head/print/freetype2/distinfo ============================================================================== --- head/print/freetype2/distinfo Wed Mar 8 15:13:55 2017 (r435689) +++ head/print/freetype2/distinfo Wed Mar 8 15:26:28 2017 (r435690) @@ -1,2 +1,3 @@ -SHA256 (freetype-2.6.3.tar.bz2) = 371e707aa522acf5b15ce93f11183c725b8ed1ee8546d7b3af549863045863a2 -SIZE (freetype-2.6.3.tar.bz2) = 1753083 +TIMESTAMP = 1483129043 +SHA256 (freetype-2.7.1.tar.bz2) = 3a3bb2c4e15ffb433f2032f50a5b5a92558206822e22bfe8cbe339af4aa82f88 +SIZE (freetype-2.7.1.tar.bz2) = 1825107 Modified: head/print/freetype2/files/patch-builds_unix_detect.mk ============================================================================== --- head/print/freetype2/files/patch-builds_unix_detect.mk Wed Mar 8 15:13:55 2017 (r435689) +++ head/print/freetype2/files/patch-builds_unix_detect.mk Wed Mar 8 15:26:28 2017 (r435690) @@ -1,6 +1,6 @@ ---- builds/unix/detect.mk.orig 2015-09-25 07:58:57.000000000 +0200 -+++ builds/unix/detect.mk 2015-10-04 12:35:05.733855000 +0200 -@@ -22,6 +22,9 @@ +--- builds/unix/detect.mk.orig 2016-02-03 18:13:58 UTC ++++ builds/unix/detect.mk +@@ -22,6 +22,9 @@ ifeq ($(PLATFORM),ansi) $(wildcard /usr/sbin/init) \ $(wildcard /dev/null) \ $(wildcard /hurd/auth)) @@ -10,7 +10,7 @@ ifneq ($(is_unix),) PLATFORM := unix -@@ -80,10 +83,10 @@ +@@ -80,10 +83,10 @@ ifeq ($(PLATFORM),unix) ifdef must_configure ifneq ($(have_Makefile),) # we are building FT2 not in the src tree Added: head/print/freetype2/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/freetype2/files/pkg-message.in Wed Mar 8 15:26:28 2017 (r435690) @@ -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). Modified: head/print/freetype2/pkg-descr ============================================================================== --- head/print/freetype2/pkg-descr Wed Mar 8 15:13:55 2017 (r435689) +++ head/print/freetype2/pkg-descr Wed Mar 8 15:26:28 2017 (r435690) @@ -1,3 +1,18 @@ +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. Modified: head/print/freetype2/pkg-plist ============================================================================== --- head/print/freetype2/pkg-plist Wed Mar 8 15:13:55 2017 (r435689) +++ head/print/freetype2/pkg-plist Wed Mar 8 15:26:28 2017 (r435690) @@ -53,7 +53,7 @@ include/freetype2/ft2build.h lib/libfreetype.a lib/libfreetype.so lib/libfreetype.so.6 -lib/libfreetype.so.6.12.3 +lib/libfreetype.so.6.13.0 libdata/pkgconfig/freetype2.pc man/man1/freetype-config.1.gz share/aclocal/freetype2.m4