ports/153728: [patch] multimedia/vlc: add VAAPI option

Anonymous swell.k at gmail.com
Thu Jan 6 13:20:07 UTC 2011


>Number:         153728
>Category:       ports
>Synopsis:       [patch] multimedia/vlc: add VAAPI option
>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 Jan 06 13:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
depends on ports/153725 (libva) and ports/153727 (vdpau-video)
>Description:
>How-To-Repeat:
$ cvlc --ffmpeg-hw ...

cf. ports/153725
>Fix:
--- a.diff begins here ---
Index: multimedia/vlc/Makefile
===================================================================
RCS file: /a/.cvsup/ports/multimedia/vlc/Makefile,v
retrieving revision 1.250
diff -u -p -r1.250 Makefile
--- multimedia/vlc/Makefile	30 Dec 2010 19:19:14 -0000	1.250
+++ multimedia/vlc/Makefile	5 Jan 2011 01:19:18 -0000
@@ -78,6 +78,7 @@ OPTIONS=	A52 "A52 DVD audio decoder" On 
 		TWOLAME "Twolame mpeg2 audio encoder support" On \
 		UPNP "Enable UPnP network device control" Off \
 		V4L "Enable Video for Linux & DVB support" On \
+		VAAPI "Support hardware decoding via VAAPI" off \
 		VCD "Video CD support" On \
 		VORBIS "Vorbis audio decoder support" On \
 		X264 "Enable H.264/AVC codec support" On \
@@ -139,6 +140,7 @@ WITHOUT_LUA=yes
 WITHOUT_QT4=yes
 WITH_RUNROOT=yes
 WITHOUT_V4L=yes
+WITHOUT_VAAPI=yes
 WITHOUT_XCB=yes
 .endif
 
@@ -605,6 +607,13 @@ BUILD_DEPENDS+=	v4l_compat>=1.0.20100321
 CONFIGURE_ARGS+=--enable-v4l --enable-dvb
 .endif
 
+.if defined(WITHOUT_VAAPI)
+CONFIGURE_ARGS+=--disable-libva
+.else
+LIB_DEPENDS+=	va.1:${PORTSDIR}/multimedia/libva
+CONFIGURE_ARGS+=--enable-libva
+.endif
+
 .if defined(WITHOUT_VCD)
 CONFIGURE_ARGS+=--disable-vcd --disable-libcddb
 .else
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list