summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg010
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2013-04-14 00:59:50 +0000
committercheusov <cheusov@pkgsrc.org>2013-04-14 00:59:50 +0000
commitee0539fda82de9dbaf738db67942c1459acf1791 (patch)
tree7b07dee76f6c978df3bb1a22130b107586fe1dcd /multimedia/ffmpeg010
parenta6bc0aca0ce59ea5043fd050b870e9f116aa0a3b (diff)
downloadpkgsrc-ee0539fda82de9dbaf738db67942c1459acf1791.tar.gz
Add option vaapi and enable it if it is supported.
Explicitely add --enable-vdpau if "vdpau" option is turned on. ++pkgrevision.
Diffstat (limited to 'multimedia/ffmpeg010')
-rw-r--r--multimedia/ffmpeg010/Makefile4
-rw-r--r--multimedia/ffmpeg010/options.mk26
2 files changed, 26 insertions, 4 deletions
diff --git a/multimedia/ffmpeg010/Makefile b/multimedia/ffmpeg010/Makefile
index 467cf7b79d8..d4f4e9ebba5 100644
--- a/multimedia/ffmpeg010/Makefile
+++ b/multimedia/ffmpeg010/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2013/04/11 11:26:23 drochner Exp $
+# $NetBSD: Makefile,v 1.11 2013/04/14 00:59:50 cheusov Exp $
PKGNAME= ffmpeg010-20130410.${DISTVERSION}
-
+PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
COMMENT= Decoding, encoding and streaming software
diff --git a/multimedia/ffmpeg010/options.mk b/multimedia/ffmpeg010/options.mk
index d5fa81b7ece..d31cd42fa18 100644
--- a/multimedia/ffmpeg010/options.mk
+++ b/multimedia/ffmpeg010/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.4 2012/12/01 10:15:53 ryoon Exp $
+# $NetBSD: options.mk,v 1.5 2013/04/14 00:59:50 cheusov Exp $
# Global and legacy options
@@ -8,13 +8,21 @@ PKG_SUGGESTED_OPTIONS= lame libvpx theora vorbis x264 xvid
#PKG_OPTIONS_OPTIONAL_GROUPS= aac-decoder
#PKG_OPTIONS_GROUP.aac-decoder= faac
-### Add vdpau if it is available
+### Add VDPAU if it is available
.include "../../multimedia/libvdpau/available.mk"
.if ${VDPAU_AVAILABLE} == "yes"
PKG_SUPPORTED_OPTIONS+= vdpau
PKG_SUGGESTED_OPTIONS+= vdpau
.endif
+### Add VAAPI if it is available
+.include "../../multimedia/libva/available.mk"
+.if ${VAAPI_AVAILABLE} == "yes"
+PKG_SUPPORTED_OPTIONS+= vaapi
+PKG_SUGGESTED_OPTIONS+= vaapi
+.endif
+
+###
.include "../../mk/bsd.options.mk"
###
@@ -101,11 +109,25 @@ CONFIGURE_ARGS+= --disable-libx264
### VDPAU support
###
.if !empty(PKG_OPTIONS:Mvdpau)
+CONFIGURE_ARGS+= --enable-vdpau
.include "../../multimedia/libvdpau/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-vdpau
.endif
+###
+### VAAPI support
+###
+.if !empty(PKG_OPTIONS:Mvaapi)
+CONFIGURE_ARGS+= --enable-vaapi
+.include "../../multimedia/libva/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-vaapi
+.endif
+
+###
+### VPX support
+###
.if !empty(PKG_OPTIONS:Mlibvpx)
CONFIGURE_ARGS+= --enable-libvpx
.include "../../multimedia/libvpx/buildlink3.mk"