NetBSD Problem Report #43658
From cheusov@tut.by Sat Jul 24 09:05:18 2010
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 65CC063BB26
for <gnats-bugs@gnats.netbsd.org>; Sat, 24 Jul 2010 09:05:18 +0000 (UTC)
Message-Id: <8739v9w8qj.fsf@asrock.chizhovka.net>
Date: Sat, 24 Jul 2010 12:05:08 +0300
From: cheusov@tut.by
To: gnats-bugs@gnats.NetBSD.org
Subject: VDPAU support for multimedia/mplayer [patch]
X-Send-Pr-Version: 3.95
>Number: 43658
>Category: pkg
>Synopsis: VDPAU support for multimedia/mplayer [patch]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Jul 24 09:10:01 +0000 2010
>Closed-Date: Wed Sep 01 20:57:13 +0000 2010
>Last-Modified: Wed Sep 01 21:00:05 +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:/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.
>How-To-Repeat:
>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)
# -------------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 01 Sep 2010 20:57:13 +0000
State-Changed-Why:
Committed, thanks!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43658 CVS commit: pkgsrc/multimedia/mplayer-share
Date: Wed, 1 Sep 2010 20:55:56 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Wed Sep 1 20:55:56 UTC 2010
Modified Files:
pkgsrc/multimedia/mplayer-share: options.mk
Log Message:
Add vdpau option, on the platforms where it is supported.
From Aleksey Cheusov in PR 43658.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 pkgsrc/multimedia/mplayer-share/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.