From root@cyberbotx.com  Tue Oct 30 05:45:03 2012
Return-Path: <root@cyberbotx.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9B147128
	for <freebsd-gnats-submit@freebsd.org>; Tue, 30 Oct 2012 05:45:03 +0000 (UTC)
	(envelope-from root@cyberbotx.com)
Received: from qmta07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:64])
	by mx1.freebsd.org (Postfix) with ESMTP id 8028B8FC08
	for <freebsd-gnats-submit@freebsd.org>; Tue, 30 Oct 2012 05:45:03 +0000 (UTC)
Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44])
	by qmta07.emeryville.ca.mail.comcast.net with comcast
	id HHLF1k0010x6nqcA7Hl3D5; Tue, 30 Oct 2012 05:45:03 +0000
Received: from kirby.cyberbotx.com ([69.244.146.119])
	by omta12.emeryville.ca.mail.comcast.net with comcast
	id HHl11k00C2anbQt8YHl22A; Tue, 30 Oct 2012 05:45:02 +0000
Received: by kirby.cyberbotx.com (Postfix, from userid 0)
	id E55BB2845D; Tue, 30 Oct 2012 01:45:00 -0400 (EDT)
Message-Id: <20121030054500.E55BB2845D@kirby.cyberbotx.com>
Date: Tue, 30 Oct 2012 01:45:00 -0400 (EDT)
From: Naram Qashat <cyberbotx@cyberbotx.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] emulators/zsnes: update to OptionsNG
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         173203
>Category:       ports
>Synopsis:       [MAINTAINER] emulators/zsnes: update to OptionsNG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 30 05:50:00 UTC 2012
>Closed-Date:    Tue Oct 30 15:27:50 UTC 2012
>Last-Modified:  Tue Oct 30 15:27:50 UTC 2012
>Originator:     Naram Qashat
>Release:        FreeBSD 8.3-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD kirby.cyberbotx.com 8.3-RELEASE-p4 FreeBSD 8.3-RELEASE-p4 #4: Mon Oct  1 19:56:21 EDT
>Description:
- Update to OptionsNG.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- zsnes-1.51_8,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/emulators/zsnes/Makefile ./Makefile
--- /usr/ports/emulators/zsnes/Makefile	2012-10-07 17:07:44.000000000 -0400
+++ ./Makefile	2012-10-29 22:07:00.000000000 -0400
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	zsnes
-# Date created:				Fri May  4 13:10:11 CEST 2001
-# Whom:					Stijn Hoop <stijn@win.tue.nl>
-#
+# Created by: Stijn Hoop <stijn@win.tue.nl>
 # $FreeBSD: head/emulators/zsnes/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	zsnes
 PORTVERSION=	1.51
@@ -25,11 +21,11 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
 
-OPTIONS=	X11 "Enable X11 video driver" on \
-		OPENGL "Enable OpenGL video driver" off \
-		DEBUGGER "Enable ZSNES debugger" off \
-		JMA "Enable JMA support" on \
-		LIBAO "Enable libao support" off
+NO_OPTIONS_SORT=	yes
+OPTIONS_DEFINE=	X11 OPENGL DEBUGGER JMA AO
+OPTIONS_DEFAULT=	X11 JMA
+DEBUGGER_DESC=	ZSNES Debugger
+JMA_DESC=	JMA support
 
 USE_BZIP2=	yes
 USE_SDL=	sdl
@@ -46,34 +42,34 @@
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_DEBUGGER)
+.if ${PORT_OPTIONS:MDEBUGGER}
 CONFIGURE_ARGS+=	--enable-debugger
 .else
 CONFIGURE_ARGS+=	--disable-debugger
 .endif
 
-.if defined(WITH_JMA)
+.if ${PORT_OPTIONS:MJMA}
 CONFIGURE_ARGS+=	--enable-jma
 .else
 CONFIGURE_ARGS+=	--disable-jma
 .endif
 
-.if defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
+CONFIGURE_ARGS+=	--with-x
+.else
 CONFIGURE_ARGS+=	--without-x
 PKGNAMESUFFIX=	-nox11
-.else
-CONFIGURE_ARGS+=	--with-x
 .endif
 
-.if defined(WITH_OPENGL)
+.if ${PORT_OPTIONS:MOPENGL}
 USE_GL=		yes
 CONFIGURE_ARGS+=	--enable-opengl
 .else
 CONFIGURE_ARGS+=	--disable-opengl
 .endif
 
-.if defined(WITH_LIBAO)
-LIB_DEPENDS+=	ao.4:${PORTSDIR}/audio/libao
+.if ${PORT_OPTIONS:MAO}
+LIB_DEPENDS+=	ao:${PORTSDIR}/audio/libao
 CONFIGURE_ARGS+=	--enable-libao
 .else
 CONFIGURE_ARGS+=	--disable-libao
--- zsnes-1.51_8,1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jhale 
Responsible-Changed-By: jhale 
Responsible-Changed-When: Tue Oct 30 14:34:02 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173203 
State-Changed-From-To: open->closed 
State-Changed-By: jhale 
State-Changed-When: Tue Oct 30 15:27:50 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173203 
>Unformatted:
