Bug 134587 - Add an option to enable XvMC acceleration for MPlayer
Summary: Add an option to enable XvMC acceleration for MPlayer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-16 20:20 UTC by ume
Modified: 2009-05-17 10:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ume 2009-05-16 20:20:00 UTC
Though MPlayer supports XvMC acceleration, its port doesn't have an
option for enabling it.

Fix: Please apply following patch to multimedia/mplayer:



--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/--t9aewr7leVZtmQLGvkT7KsIHwv0B0dp2571qpGVHhrU8IJZz
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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
How-To-Repeat: There is no `xvmc' in the output of `mplayer -vo help'.
Comment 1 dfilter service freebsd_committer freebsd_triage 2009-05-17 09:50:31 UTC
miwi        2009-05-17 08:50:21 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/mplayer   Makefile 
  Log:
  - Add support for XvMC acceleration
  
  PR:             134587
  Submitted by:   Hajimu UMEMOTO <ume@mahoroba.org>
  Approved by:    maintainer implicit
  
  Revision  Changes    Path
  1.185     +5 -0      ports/multimedia/mplayer/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-05-17 09:50:34 UTC
State Changed
From-To: open->closed

Committed. Thanks!