summaryrefslogtreecommitdiff
path: root/multimedia/hwdecode-demos
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-12-02 15:50:35 +0000
committercheusov <cheusov@pkgsrc.org>2012-12-02 15:50:35 +0000
commit410b7f60bc9a33294c10d8337b5317949b927821 (patch)
treeb9b508d1998ec8c7e863bf539d60980cdf7cb0f3 /multimedia/hwdecode-demos
parentba1b74d63e748238b562239e2c91e1a100ba2ca3 (diff)
downloadpkgsrc-410b7f60bc9a33294c10d8337b5317949b927821.tar.gz
Enable VDPAU if it available. Tested on RHEL
Diffstat (limited to 'multimedia/hwdecode-demos')
-rw-r--r--multimedia/hwdecode-demos/Makefile16
-rw-r--r--multimedia/hwdecode-demos/PLIST6
2 files changed, 19 insertions, 3 deletions
diff --git a/multimedia/hwdecode-demos/Makefile b/multimedia/hwdecode-demos/Makefile
index f5b07839ce7..2efbb5788ff 100644
--- a/multimedia/hwdecode-demos/Makefile
+++ b/multimedia/hwdecode-demos/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2012/10/08 09:21:04 asau Exp $
+# $NetBSD: Makefile,v 1.6 2012/12/02 15:50:35 cheusov Exp $
#
DISTNAME= hwdecode-demos-0.9.4
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= http://www.splitted-desktop.com/~gbeauchesne/hwdecode-demos/
@@ -15,6 +15,18 @@ GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config gmake
USE_LIBTOOL= yes
+PLIST_VARS+= vdpau
+
+.include "../../multimedia/libvdpau/buildlink3.mk"
+.if ${VDPAU_AVAILABLE} == yes
+PLIST.vdpau= yes
+.else
+CONFIGURE_ARGS+= --disable-vdpau
+.endif
+
+.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../multimedia/libva/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/hwdecode-demos/PLIST b/multimedia/hwdecode-demos/PLIST
index 71440b6e2a1..3e6b5297622 100644
--- a/multimedia/hwdecode-demos/PLIST
+++ b/multimedia/hwdecode-demos/PLIST
@@ -1,8 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2011/01/19 04:19:08 jmcneill Exp $
+@comment $NetBSD: PLIST,v 1.2 2012/12/02 15:50:35 cheusov Exp $
bin/vaapi_h264
bin/vaapi_mpeg2
bin/vaapi_mpeg4
bin/vaapi_vc1
+${PLIST.vdpau}bin/vdpau_h264
+${PLIST.vdpau}bin/vdpau_mpeg2
+${PLIST.vdpau}bin/vdpau_mpeg4
+${PLIST.vdpau}bin/vdpau_vc1
share/hwdecode-demos/h264.mp4
share/hwdecode-demos/mpeg2.m2v
share/hwdecode-demos/mpeg4.mp4