From amdmi3@amdmi3.ru  Thu Jun  5 13:45:22 2008
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CE45E1065678
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Jun 2008 13:45:22 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from cp65.agava.net (cp65.agava.net [89.108.66.215])
	by mx1.freebsd.org (Postfix) with ESMTP id 7D1A68FC31
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Jun 2008 13:45:22 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.63 (FreeBSD))
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1K4Ft1-000N1P-0J
	for FreeBSD-gnats-submit@freebsd.org; Thu, 05 Jun 2008 17:52:15 +0400
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id 61AF28EA5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Jun 2008 17:45:55 +0400 (MSD)
Received: by hades.panopticon (Postfix, from userid 1000)
	id DB6D91702F; Thu,  5 Jun 2008 17:45:33 +0400 (MSD)
Message-Id: <20080605134533.DB6D91702F@hades.panopticon>
Date: Thu,  5 Jun 2008 17:45:33 +0400 (MSD)
From: Dmitry Marakasov <amdmi3@amdmi3.ru>
Reply-To: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] www/webkit-gtk2: make video support optional
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         124302
>Category:       ports
>Synopsis:       [PATCH] www/webkit-gtk2: make video support optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 05 13:50:01 UTC 2008
>Closed-Date:    Sat Jan 10 05:58:40 UTC 2009
>Last-Modified:  Sat Jan 10 05:58:40 UTC 2009
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Apr 25 11:18:45 MSD 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Make video support optional, as it's not always needed and it brings in many useless dependencies.
>How-To-Repeat:
>Fix:

--- webkit-gtk2.patch begins here ---
diff -ruN webkit-gtk2.orig/Makefile webkit-gtk2/Makefile
--- webkit-gtk2.orig/Makefile	2008-06-05 14:24:22.000000000 +0400
+++ webkit-gtk2/Makefile	2008-06-05 14:25:48.000000000 +0400
@@ -27,21 +27,29 @@
 USE_PERL5=	yes
 USE_LDCONFIG=	yes
 USE_AUTOTOOLS=	autoconf:261 automake:110 libtool:15
-USE_GSTREAMER=	gnomevfs
+WANT_GSTREAMER=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 CONFIGURE_ARGS=	--with-webkit-target=x11 \
 		--enable-icon-database \
-		--enable-svg \
-		--enable-video
+		--enable-svg
 MAKEFILE=	GNUmakefile
 
+OPTIONS=	VIDEO	"Enable video support"	on
+
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 600000
 IGNORE=	Does not build
 .endif
 
+.if defined(WITHOUT_VIDEO)
+CONFIGURE_ARGS+=	--disable-video
+.else
+CONFIGURE_ARGS+=	--enable-video
+USE_GSTREAMER+=	gnomevfs
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|autoconf|${AUTOCONF}|g ; \
 		s|automake|${AUTOMAKE}|g ; s|aclocal|${ACLOCAL}|g ; \
--- webkit-gtk2.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jun 5 13:50:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: bug-followup@FreeBSD.org, gnome@FreeBSD.org
Cc:  
Subject: Re: ports/124302: [PATCH] www/webkit-gtk2: make video support
	optional
Date: Mon, 23 Jun 2008 15:40:30 +0400

 * FreeBSD-gnats-submit@FreeBSD.org (FreeBSD-gnats-submit@FreeBSD.org) wrote:
 
 > >Synopsis:       [PATCH] www/webkit-gtk2: make video support optional
 > >Arrival-Date:   Thu Jun 05 13:50:01 UTC 2008
 So, would there be any objections to this? Works without any problems
 for me with midori.
 
 -- 
 Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
 amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
State-Changed-From-To: open->patched  
State-Changed-By: ahze 
State-Changed-When: Sun Jul 27 20:07:51 UTC 2008 
State-Changed-Why:  
Mark patched, video is now optional in mcom cvs tree.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=124302 
State-Changed-From-To: patched->closed 
State-Changed-By: mezz 
State-Changed-When: Sat Jan 10 05:58:20 UTC 2009 
State-Changed-Why:  
It has been merged into FreeBSD ports. 

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