From dstewyls@gmail.com  Mon Jan 28 04:43:15 2013
Return-Path: <dstewyls@gmail.com>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id C86C7F42
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Jan 2013 04:43:15 +0000 (UTC)
	(envelope-from dstewyls@gmail.com)
Received: from mail-ie0-x241.google.com (mail-ie0-x241.google.com [IPv6:2607:f8b0:4001:c03::241])
	by mx1.freebsd.org (Postfix) with ESMTP id 92850901
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Jan 2013 04:43:15 +0000 (UTC)
Received: by mail-ie0-f193.google.com with SMTP id c14so253125ieb.0
        for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Jan 2013 20:43:15 -0800 (PST)
Received: by 10.42.150.69 with HTTP; Sun, 27 Jan 2013 20:43:15 -0800 (PST)
Message-Id: <CAAQhUC2xd8AD8v2DENJdz+N9LmuhE=Q5w6s6g6W9EtbuM4pRcQ@mail.gmail.com>
Date: Mon, 28 Jan 2013 04:43:15 +0000
From: Donald Stewart <dstewyls@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] print/freetype2: convert to optionsNG

>Number:         175640
>Category:       ports
>Synopsis:       [patch] print/freetype2: convert to optionsNG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 28 04:50:00 UTC 2013
>Closed-Date:    Wed Mar 20 00:31:22 UTC 2013
>Last-Modified:  Wed Mar 20 00:40:00 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jan 28 04:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175640 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Wed Mar 20 00:31:10 UTC 2013 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175640 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/175640: commit references a PR
Date: Wed, 20 Mar 2013 00:31:07 +0000 (UTC)

 Author: mezz
 Date: Wed Mar 20 00:30:59 2013
 New Revision: 314701
 URL: http://svnweb.freebsd.org/changeset/ports/314701
 
 Log:
   -OPTIONSng and remove pre-everything.
   -Remove the CJK stuff since it has been disabled for very long time.
   
   PR:		ports/175640
   Submitted by:	Donald Stewart <dstewyls@gmail.com>
 
 Modified:
   head/print/freetype2/Makefile
 
 Modified: head/print/freetype2/Makefile
 ==============================================================================
 --- head/print/freetype2/Makefile	Tue Mar 19 22:48:44 2013	(r314700)
 +++ head/print/freetype2/Makefile	Wed Mar 20 00:30:59 2013	(r314701)
 @@ -27,28 +27,13 @@ USE_GNOME=	ltverhack:9
  LIBTOOLFILES=	builds/unix/configure
  CONFIGURE_WRKSRC=	${WRKSRC}/builds/unix
  
 -.if defined(WITH_LCD_FILTERING)
 -CFLAGS+=	-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
 -.endif
 +OPTIONS_DEFINE=		LCD_FILTERING
 +LCD_FILTERING_DESC?=	Sub-pixel rendering (patented)
  
 -.if defined(WITH_CJK)
 -#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/
 -#PATCHFILES+=	cjk-freetype-2.1.10-20051219.patch.gz
 -#PATCH_DIST_STRIP+=	-p1
 -.endif
 +.include <bsd.port.options.mk>
  
 -pre-everything::
 -.if !defined(WITH_LCD_FILTERING)
 -	@${ECHO_MSG}
 -	@${ECHO_MSG} "You may want to enable LCD filtering."
 -	@${ECHO_MSG}
 -	@${ECHO_MSG} "Hit Ctrl-C now and use \"make WITH_LCD_FILTERING=yes\""
 -	@${ECHO_MSG}
 -	@${ECHO_MSG} "Note that there are possible patent issues related to the"
 -	@${ECHO_MSG} "use of the LCD filtering technology."
 -	@${ECHO_MSG}
 +.if ${PORT_OPTIONS:MLCD_FILTERING}
 +CFLAGS+=	-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
  .endif
  
  pre-patch:
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
