Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  5 Jun 2008 17:45:33 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/124302: [PATCH] www/webkit-gtk2: make video support optional
Message-ID:  <20080605134533.DB6D91702F@hades.panopticon>
Resent-Message-ID: <200806051350.m55Do15F044352@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124302
>Category:       ports
>Synopsis:       [PATCH] www/webkit-gtk2: make video support optional
>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:   Thu Jun 05 13:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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