summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-11-07 16:58:13 +0000
committertnn <tnn@pkgsrc.org>2015-11-07 16:58:13 +0000
commit02f16ff86b79901212040d0fee0b81d2ec77a26d (patch)
treeb434de5566777ecfc7881f6516de4fdebd811d62 /multimedia
parent650d984b132742f83c6240c8977698f49fd019f0 (diff)
downloadpkgsrc-02f16ff86b79901212040d0fee0b81d2ec77a26d.tar.gz
Add xcb option (X11 screen capture support using libxcb)
Not enabled by default since it implies X11 dependency and I'm not sure how people would feel about that.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/ffmpeg2/options.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/ffmpeg2/options.mk b/multimedia/ffmpeg2/options.mk
index 4258f7aff9e..e443c2db4da 100644
--- a/multimedia/ffmpeg2/options.mk
+++ b/multimedia/ffmpeg2/options.mk
@@ -1,10 +1,11 @@
-# $NetBSD: options.mk,v 1.8 2015/10/08 01:02:42 leot Exp $
+# $NetBSD: options.mk,v 1.9 2015/11/07 16:58:13 tnn Exp $
# Global and legacy options
PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg2
PKG_SUPPORTED_OPTIONS= ass faac fdk-aac fontconfig freetype gnutls lame \
- libvpx opencore-amr openssl theora vorbis x264 x265 xvid
+ libvpx opencore-amr openssl theora vorbis x264 x265 \
+ xcb xvid
PKG_SUGGESTED_OPTIONS= lame ass freetype fontconfig libvpx theora vorbis x264 \
xvid
@@ -172,3 +173,14 @@ CONFIGURE_ARGS+= --enable-libvpx
.else
CONFIGURE_ARGS+= --disable-libvpx
.endif
+
+# X11 screen capture support using libxcb
+.if !empty(PKG_OPTIONS:Mxcb)
+CONFIGURE_ARGS+= --enable-libxcb
+CONFIGURE_ARGS+= --enable-libxcb-shape
+CONFIGURE_ARGS+= --enable-libxcb-shm
+CONFIGURE_ARGS+= --enable-libxcb-xfixes
+.include "../../x11/libxcb/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-libxcb
+.endif