[Bug 211201] print/freetype2: update to 2.6.5, replace LCD_FILTERING with V40 code

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 23 16:00:05 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211201

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

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

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

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

  .if defined(.PARSEDIR)

  V38_VARS=     SUBPIXEL_HINTING_MODE+=1
  V38_CFLAGS=  
-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=$$$((${SUBPIXEL_HINTING_MODE:ts|}))
  V40_VARS=     SUBPIXEL_HINTING_MODE+=2
  V40_CFLAGS=  
-DTT_CONFIG_OPTION_SUBPIXEL_HINTING=$$$((${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+=      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3
  .elif ${PORT_OPTIONS:MV40}
  CFLAGS+=      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=2
  .elif ${PORT_OPTIONS:MV38}
  CFLAGS+=      -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=1
  .endif

  .endif # .PARSEDIR

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


More information about the freebsd-gnome mailing list