pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43658: VDPAU support for multimedia/mplayer [patch]



>Number:         43658
>Category:       pkg
>Synopsis:       VDPAU support for multimedia/mplayer [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 24 09:10:01 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #1: Mon 
Jun 28 00:06:07 EEST 2010 
cheusov%asrock.chizhovka.net@localhost:/srv/obj/sys/arch/amd64/compile/GENERIC 
amd64
Architecture: x86_64
Machine: amd64
>Description:
The following patch enables VDPAU in mplayer under FreeBSD, Linux and 
[Open]Solaris.
It was successfully tested (works fine, not only built) on OpenSolaris.

This patch assumes libvdpau is in wip/. Of course it should
be imported to pkgsrc first. See pkg/43657.

>Fix:
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/mplayer-share/options.mk,v
retrieving revision 1.39
diff -u -r1.39 options.mk
--- options.mk  4 Nov 2009 16:00:54 -0000       1.39
+++ options.mk  24 Jul 2010 09:01:05 -0000
@@ -7,6 +7,7 @@
 PKG_OPTIONS_VAR=       PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
 
 .include "../../mk/oss.buildlink3.mk"
+.include "../../wip/libvdpau/available.mk"
 
 # -------------------------------------------------------------------------
 # Define PKG_SUPPORTED_OPTIONS based on the current package and system.
@@ -27,6 +28,10 @@
 .if !empty(PKGNAME:M*mplayer*)
 PKG_SUPPORTED_OPTIONS+=        aalib esound ggi mplayer-menu nas pulseaudio sdl
 
+.if ${VDPAU_AVAILABLE} == "yes"
+PKG_SUPPORTED_OPTIONS+=        vdpau
+.endif
+
 .  if ${OPSYS} != "SunOS"
 PKG_SUPPORTED_OPTIONS+=        arts
 .  endif
@@ -76,7 +81,7 @@
 .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \
            lame mad mplayer-menu mplayer-real \
            mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \
-           nas oss pulseaudio png sdl theora vorbis x264 xvid
+           nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau
 .  if !empty(PKG_SUPPORTED_OPTIONS:M${_o_})
 PKG_SUGGESTED_OPTIONS+=        ${_o_}
 .  endif
@@ -319,6 +324,12 @@
 CONFIGURE_ARGS+=       --disable-ssse3
 .endif
 
+.if !empty(PKG_OPTIONS:Mvdpau)
+.  include "../../multimedia/libvdpau/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-vdpau
+.endif
+
 # -------------------------------------------------------------------------
 # Handle extra libraries (part 1)
 # -------------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index