Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2016 16:00:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 211201] print/freetype2: update to 2.6.5, replace LCD_FILTERING with V40 code
Message-ID:  <bug-211201-6497-FszObp4MVF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211201-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211201-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211201

--- Comment #23 from Jan Beich <jbeich@FreeBSD.org> ---
Comment on attachment 172896
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172896
Proposed patch (since 412348 revision)

> +V38_DESC=3D	v38 mode (Infinality code)
> +V38_VARS=3D	SUBPIXEL_HINTING_MODE=3D1
> +V40_DESC=3D	v40 mode (minimal code, a.k.a. ClearType hinting)
> +V40_VARS=3D	SUBPIXEL_HINTING_MODE=3D2
> +
> +.include <bsd.port.options.mk>
> +
> +.if defined(SUBPIXEL_HINTING_MODE)
> +.if ${PORT_OPTIONS:MV38} && ${PORT_OPTIONS:MV40}
> +SUBPIXEL_HINTING_MODE=3D3
> +.endif
> +CFLAGS+=3D	-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D${SUBPIXEL_HINTING_MODE}
> +.endif

SUBPIXEL_HINTING_MODE is unnecessary distraction in your case. The variable=
 can
still be kept for bmake simplification.

  V38_DESC=3D     v38 mode (Infinality code)
  V40_DESC=3D     v40 mode (minimal code, a.k.a. ClearType hinting)

  .if defined(.PARSEDIR)

  V38_VARS=3D     SUBPIXEL_HINTING_MODE+=3D1
  V38_CFLAGS=3D=20=20
-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D$$$((${SUBPIXEL_HINTING_MODE:ts|}))
  V40_VARS=3D     SUBPIXEL_HINTING_MODE+=3D2
  V40_CFLAGS=3D=20=20
-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D$$$((${SUBPIXEL_HINTING_MODE:ts|}))

  .else # XXX Drop once /stable/9 hits EOL
  .include <bsd.port.options.mk>

  .if ${PORT_OPTIONS:MV38} && ${PORT_OPTIONS:MV40}
  CFLAGS+=3D      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D3
  .elif ${PORT_OPTIONS:MV40}
  CFLAGS+=3D      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D2
  .elif ${PORT_OPTIONS:MV38}
  CFLAGS+=3D      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3D1
  .endif

  .endif # .PARSEDIR

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211201-6497-FszObp4MVF>