Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 04:10:36 +0900
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        riggs@rrr.de, Hajimu UMEMOTO <ume@FreeBSD.org>
Subject:   ports/134587: Add an option to enable XvMC acceleration for MPlayer
Message-ID:  <ygeocts6ez7.wl%ume@mahoroba.org>
Resent-Message-ID: <200905161920.n4GJK0kr051596@freefall.freebsd.org>

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

>Number:         134587
>Category:       ports
>Synopsis:       Add an option to enable XvMC acceleration for MPlayer
>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:   Sat May 16 19:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hajimu UMEMOTO
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
Internet Mutual Aid Society Yokohama, Japan
>Environment:
System: FreeBSD yuga.mahoroba.org 7.2-RELEASE FreeBSD 7.2-RELEASE #4: Wed May 13 02:41:26 JST 2009 root@yuga.mahoroba.org:/usr/obj/usr/src/sys/YUGA i386

>Description:
Though MPlayer supports XvMC acceleration, its port doesn't have an
option for enabling it.

>How-To-Repeat:
There is no `xvmc' in the output of `mplayer -vo help'.

>Fix:
Please apply following patch to multimedia/mplayer:

Index: mplayer/Makefile
diff -u mplayer/Makefile.orig mplayer/Makefile
--- mplayer/Makefile.orig	2009-03-01 23:10:06.000000000 +0900
+++ mplayer/Makefile	2009-05-12 16:10:46.951063543 +0900
@@ -24,6 +24,7 @@
 OPTIONS+=	X11GL "X11 video drivers: OpenGL" on
 OPTIONS+=	X11XIN "X11 video drivers: Xinerama" on
 OPTIONS+=	X11VM "X11 VidMode support" on
+OPTIONS+=	X11XVMC "Enable XvMC acceleration" off
 OPTIONS+=	GUI "Enable GTK2 graphical user interface with X11" on
 OPTIONS+=	SDL "Enable SDL video output" off
 OPTIONS+=	VIDIX "Enable VIDIX video output on supported archs" on
@@ -150,6 +151,10 @@
 .else
 CONFIGURE_ARGS+=--disable-vm
 .endif
+.if defined(WITH_X11XVMC)
+USE_XORG+=	xvmc
+CONFIGURE_ARGS+=--enable-xvmc --with-xvmclib=XvMCW
+.endif
 .else				#WITHOUT_X11
 CONFIGURE_ARGS+=--disable-x11 \
 		--disable-fontconfig


--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygeocts6ez7.wl%ume>