ports/124302: [PATCH] www/webkit-gtk2: make video support optional

Dmitry Marakasov amdmi3 at amdmi3.ru
Thu Jun 5 13:50:01 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list