ports/175640: [patch] print/freetype2: convert to optionsNG
Donald Stewart
dstewyls at gmail.com
Mon Jan 28 04:50:00 UTC 2013
>Number: 175640
>Category: ports
>Synopsis: [patch] print/freetype2: convert to optionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 28 04:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Donald Stewart
>Release: FreeBSD 7.4-RELEASE i386
>Organization:
>Environment:
>Description:
This makes LCD_FILTERING option more visible.
>How-To-Repeat:
>Fix:
--- optionsNG.diff begins here ---
Index: print/freetype2/Makefile
===================================================================
--- print/freetype2/Makefile (revision 310604)
+++ print/freetype2/Makefile (working copy)
@@ -27,11 +27,18 @@ USE_GNOME= pkgconfig ltverhack:9
LIBTOOLFILES= builds/unix/configure
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
-.if defined(WITH_LCD_FILTERING)
+OPTIONS_DEFINE= LCD_FILTERING
+#OPTIONS_DEFINE+=CJK
+CJK_DESC?= East Asian font enhancements
+LCD_FILTERING_DESC?= Sub-pixel rendering (patented)
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MLCD_FILTERING}
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif
-.if defined(WITH_CJK)
+.if ${PORT_OPTIONS:MCJK}
#PATCH_SITES+= http://lwj-hinet.myweb.hinet.net/ \
# ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ \
# http://bsdchat.com/dist/firefly-cjk-patchset/
@@ -40,7 +47,7 @@ CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif
pre-everything::
-.if !defined(WITH_LCD_FILTERING)
+.if ! ${PORT_OPTIONS:MLCD_FILTERING}
@${ECHO_MSG}
@${ECHO_MSG} "You may want to enable LCD filtering."
@${ECHO_MSG}
--- optionsNG.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list