From william88@gmail.com  Thu Mar 21 22:56:56 2013
Return-Path: <william88@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 65597EE9
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Mar 2013 22:56:56 +0000 (UTC)
	(envelope-from william88@gmail.com)
Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233])
	by mx1.freebsd.org (Postfix) with ESMTP id 31C86FF8
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Mar 2013 22:56:56 +0000 (UTC)
Received: by mail-yh0-f51.google.com with SMTP id q1so26965yhf.38
        for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Mar 2013 15:56:55 -0700 (PDT)
Received: from localhost ([177.132.16.178])
        by mx.google.com with ESMTPS id v48sm816615yhi.26.2013.03.21.15.56.53
        (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 21 Mar 2013 15:56:54 -0700 (PDT)
Message-Id: <514b9036.4888ec0a.052c.4180@mx.google.com>
Date: Thu, 21 Mar 2013 15:56:54 -0700 (PDT)
From: William Grzybowski <william88@gmail.com>
Reply-To: William Grzybowski <william88@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] emulators/open-vm-tools: options ng
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         177213
>Category:       ports
>Synopsis:       [PATCH] emulators/open-vm-tools: options ng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    swills
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 21 23:00:00 UTC 2013
>Closed-Date:    Fri Jul 05 15:38:04 UTC 2013
>Last-Modified:  Fri Jul 05 15:38:04 UTC 2013
>Originator:     William Grzybowski
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
>Description:

	Convert to options ng

>How-To-Repeat:
>Fix:

	See attached patch


--- open-vm-tools.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 314859)
+++ Makefile	(working copy)
@@ -24,22 +24,29 @@
 USE_PKGCONFIG=		build
 CPPFLAGS+=		-Wno-deprecated-declarations
 
+OPTIONS_DEFINE=	X11 NOTIFY UNITY FUSE DNET ICU
+OPTIONS_DEFAULT=X11 NOTIFY FUSE DNET ICU
+
+DNET_DESC=	libdnet support
+
+.include <bsd.port.options.mk>
+
 CONFIGURE_ARGS+=	--without-procps --sysconfdir=${LOCALBASE}/etc
-.if defined(WITHOUT_X11)
+.if ! ${PORT_OPTIONS:MX11}
 LIB_DEPENDS+=		glib-2.0:${PORTSDIR}/devel/glib20
 CONFIGURE_ARGS+=	--without-x --without-gtk2 --without-gtkmm
 PLIST_SUB+=		X11="@comment "
 CONFLICTS=		open-vm-tools-[0-9]*
 .else
-.if !defined(WITHOUT_LIBNOTIFY)
+. if ${PORT_OPTIONS:MNOTIFY}
 LIB_DEPENDS+=		notify.4:${PORTSDIR}/devel/libnotify
-.endif
-.if defined(WITH_UNITY)
+. endif
+. if ${PORT_OPTIONS:MUNITY}
 CONFIGURE_ENV+=		CUSTOM_URIPARSER_CPPFLAGS="-I${LOCALBASE}/include/uriparser"
 LIB_DEPENDS+=		uriparser.1:${PORTSDIR}/net/uriparser
-.else
+. else
 CONFIGURE_ARGS+=	--disable-unity
-.endif
+. endif
 LIB_DEPENDS+=		gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
 CONFIGURE_ARGS+=	--with-x
 LDFLAGS+=		-L${LOCALBASE}/lib
@@ -50,7 +57,7 @@
 CONFLICTS=		open-vm-tools-nox11-[0-9]*
 .endif
 
-.if !defined(WITHOUT_FUSE)
+.if ${PORT_OPTIONS:MFUSE}
 USES=		fuse
 PLIST_SUB+=	FUSE=""
 .else
@@ -60,16 +67,16 @@
 CONFLICTS+=		vmware-guestd[0-9]* vmware-tools[0-9]*
 SUB_FILES=		pkg-message
 
-.if defined(WITHOUT_DNET)
+.if ${PORT_OPTIONS:MDNET}
+LIB_DEPENDS+=		dnet:${PORTSDIR}/net/libdnet
+.else
 CONFIGURE_ARGS+=	--without-dnet
-.else
-LIB_DEPENDS+=		dnet:${PORTSDIR}/net/libdnet
 .endif
 
-.if defined(WITHOUT_ICU)
+.if ${PORT_OPTIONS:MICU}
+LIB_DEPENDS+=		icuuc:${PORTSDIR}/devel/icu
+.else
 CONFIGURE_ARGS+=	--without-icu
-.else
-LIB_DEPENDS+=		icuuc:${PORTSDIR}/devel/icu
 .endif
 
 USE_RC_SUBR=		vmware-guestd vmware-kmod
--- open-vm-tools.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->swills 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Mar 21 23:00:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177213 
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Fri Jul 5 15:38:04 UTC 2013 
State-Changed-Why:  
Already committed by someone else 

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