From nobody@FreeBSD.org  Wed Nov 21 22:26:21 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id AF48211B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 22:26:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 96E3D8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 22:26:21 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qALMQLL8078563
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 22:26:21 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qALMQLTb078562;
	Wed, 21 Nov 2012 22:26:21 GMT
	(envelope-from nobody)
Message-Id: <201211212226.qALMQLTb078562@red.freebsd.org>
Date: Wed, 21 Nov 2012 22:26:21 GMT
From: Chris Petrik <c.petrik.sosa@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] audio/hawkvoice optionsng
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173798
>Category:       ports
>Synopsis:       [PATCH] audio/hawkvoice optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jgh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 22:30:01 UTC 2012
>Closed-Date:    Fri Mar 15 01:18:51 UTC 2013
>Last-Modified:  Fri Mar 15 01:20:00 UTC 2013
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
OptionsNG Changes
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: hawkvoice/Makefile
===================================================================
--- hawkvoice/Makefile  (revision 305743)
+++ hawkvoice/Makefile  (working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   hawkvoice
-# Date created:                2006-03-05
-# Whom:                        Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
-#
+# Created by:  Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
 # $FreeBSD$
-#

 PORTNAME=      hawkvoice
 PORTVERSION=   0.91
@@ -27,15 +23,15 @@

 WRKSRC=        ${WRKDIR}/HawkVoiceDI/src

-OPTIONS=       OPTIMIZATION    "Enable optimization"   off
+OPTIONS_DEFINE=        OPTIMIZED_CFLAGS

-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>

 .if ${ARCH} == "amd64" || ${ARCH} == "ia64"
 CFLAGS+=       -fPIC -DPIC
 .endif

-.if defined(WITH_OPTIMIZATION)
+.if ${PORT_OPTIONS:MOPTIMIZE_CFLAGS}
 CFLAGS+=       -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
 .endif

@@ -50,4 +46,4 @@
 .endfor
 .endif

-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->acm 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Nov 21 22:30:24 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173798 
State-Changed-From-To: open->closed 
State-Changed-By: jgh 
State-Changed-When: Fri Mar 15 01:18:49 UTC 2013 
State-Changed-Why:  
Committed, with minor changes. Thanks! 


Responsible-Changed-From-To: acm->jgh 
Responsible-Changed-By: jgh 
Responsible-Changed-When: Fri Mar 15 01:18:49 UTC 2013 
Responsible-Changed-Why:  
Committed, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/173798: commit references a PR
Date: Fri, 15 Mar 2013 01:18:19 +0000 (UTC)

 Author: jgh
 Date: Fri Mar 15 01:18:05 2013
 New Revision: 314209
 URL: http://svnweb.freebsd.org/changeset/ports/314209
 
 Log:
   - adopt optionsNG
   
   PR:		173798
   Submitted by:	c.petrik.sosa@gmail.com
   Approved by:	portmgr (miwi)
 
 Modified:
   head/audio/hawkvoice/Makefile
 
 Modified: head/audio/hawkvoice/Makefile
 ==============================================================================
 --- head/audio/hawkvoice/Makefile	Fri Mar 15 00:58:09 2013	(r314208)
 +++ head/audio/hawkvoice/Makefile	Fri Mar 15 01:18:05 2013	(r314209)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	hawkvoice
 -# Date created:		2006-03-05
 -# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
 -#
 +# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
  # $FreeBSD$
 -#
  
  PORTNAME=	hawkvoice
  PORTVERSION=	0.91
 @@ -27,27 +23,27 @@ MAKE_ENV=	MAKE="${GMAKE}"
  
  WRKSRC=	${WRKDIR}/HawkVoiceDI/src
  
 -OPTIONS=	OPTIMIZATION	"Enable optimization"	off
 +OPTIONS_DEFINE=	OPTIMIZED_CFLAGS
  
 -.include <bsd.port.pre.mk>
 +.include <bsd.port.options.mk>
  
  .if ${ARCH} == "amd64" || ${ARCH} == "ia64"
  CFLAGS+=	-fPIC -DPIC
  .endif
  
 -.if defined(WITH_OPTIMIZATION)
 +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
  CFLAGS+=	-funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
  .endif
  
  post-patch:
 -	${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;
 +	@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;
  
  post-install:
 -.if !defined(NOPORTDOCS)
 +.if ${PORT_OPTIONS:MDOCS}
  	@${MKDIR} ${DOCSDIR}
  .for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt
  	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
  .endfor
  .endif
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 _______________________________________________
 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:
