Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2012 09:37:24 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308067 - head/games/xbill
Message-ID:  <201212010937.qB19bOsf075812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Dec  1 09:37:23 2012
New Revision: 308067
URL: http://svnweb.freebsd.org/changeset/ports/308067

Log:
  - OptionsNG
  - Trim header
  
  Feature safe:	yes

Modified:
  head/games/xbill/Makefile

Modified: head/games/xbill/Makefile
==============================================================================
--- head/games/xbill/Makefile	Sat Dec  1 09:07:39 2012	(r308066)
+++ head/games/xbill/Makefile	Sat Dec  1 09:37:23 2012	(r308067)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for:  xbill
-# Date created:			  12 September 1995
-# Whom:				  asami
-#
+# Created by: asami
 # $FreeBSD$
-#
 
 PORTNAME=	xbill
 PORTVERSION=	2.1
@@ -32,25 +27,27 @@ DESKTOP_ENTRIES="xBill" \
 		"Game;ArcadeGame;" \
 		false
 
-OPTIONS=	ATHENA	"Build with Athena widget set" off \
-		GTK	"Build with GTK widget set" on \
-		MOTIF	"Build with Motif widget set" off
+OPTIONS_SINGLE=	WIDGETSET
+OPTIONS_SINGLE_WIDGETSET=	ATHENA GTK MOTIF
+OPTIONS_DEFAULT=	GTK
+
+ATHENA_DESC=	Athena widget set
+GTK_DESC=	GTK widget set
+MOTIF_DESC=	Motif widget set
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_ATHENA) && !defined(WITH_GTK) && !defined(WITH_MOTIF)
+.if ${PORT_OPTIONS:MATHENA}
 CONFIGURE_ARGS+=	--disable-gtk --disable-motif
 USE_XORG=	xaw xmu xt x11 sm ice
-.elif !defined(WITH_ATHENA) && defined(WITH_GTK) && !defined(WITH_MOTIF)
-CONFIGURE_ARGS+=	--disable-athena --disable-motif
-USE_GNOME=	gtk12
-USE_XORG=	sm ice
-.elif !defined(WITH_ATHENA) && !defined(WITH_GTK) && defined(WITH_MOTIF)
+.elif ${PORT_OPTIONS:MMOTIF}
 CONFIGURE_ARGS+=	--disable-athena --disable-gtk
 USE_XORG=	xt x11 sm ice xpm
 USE_MOTIF=	yes
-.else
-IGNORE=		can't be build: please rerun 'make config' and chose exactly one widget set
+.else # ${PORT_OPTIONS:MGTK}
+CONFIGURE_ARGS+=	--disable-athena --disable-motif
+USE_GNOME=	gtk12
+USE_XORG=	sm ice
 .endif
 
 post-patch:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212010937.qB19bOsf075812>