ports/173783: [PATCH] audio/aumix optionsng
    Chris Petrik 
    c.petrik.sosa at gmail.com
       
    Wed Nov 21 22:00:25 UTC 2012
    
    
  
>Number:         173783
>Category:       ports
>Synopsis:       [PATCH] audio/aumix 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:   Wed Nov 21 22:00:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Chris Petrik
>Release:        
>Organization:
na
>Environment:
>Description:
OptionsNG Changes
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: aumix/Makefile
===================================================================
--- aumix/Makefile	(revision 305743)
+++ aumix/Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	aumix
-# Date created:        21 May 1999
-# Whom:                Chris Piazza <cpiazza at FreeBSD.org>
-#
+# Created by: Chris Piazza <cpiazza at FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	aumix
 PORTVERSION=	2.9.1
@@ -34,11 +30,12 @@
 PLIST_FILES+=	share/aumix/${ii}
 .endfor
 
-OPTIONS=	NLS	"Enable NLS support" on \
-		GTK2	"Enable GTK2 gui" off
+.include <bsd.port.options.mk>
 
-.include <bsd.port.pre.mk>
-.if defined(WITHOUT_NLS)
+OPTIONS_DEFINE=	NLS GTK2
+OPTIONS_DEFAULT=	NLS
+
+.if ${PORT_OPTIONS:MNLS}
 CONFIGURE_ARGS+=--disable-nls
 .else
 USE_GETTEXT=	yes
@@ -48,14 +45,14 @@
 .endfor
 .endif
 
-pre-patch:
-	@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[ch]
-
-.if defined(WITH_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
 PKGNAMESUFFIX=	-gtk
 USE_GNOME=	gtk20
 .else
 CONFIGURE_ARGS+=--without-gtk
 .endif
 
-.include <bsd.port.post.mk>
+pre-patch:
+	@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[ch]
+
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
    
    
More information about the freebsd-ports-bugs
mailing list