aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpeg-devel
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2012-05-19 16:34:04 +0800
committermm <mm@FreeBSD.org>2012-05-19 16:34:04 +0800
commit1c23982321a695e36677d3228ffce126dd2ae41c (patch)
treea297d43012b1303a387da34b5dbad234c710129d /multimedia/ffmpeg-devel
parent0d8576fa31ccca557fa139f7b8b18d01f218e049 (diff)
downloadfreebsd-ports-gnome-1c23982321a695e36677d3228ffce126dd2ae41c.tar.gz
freebsd-ports-gnome-1c23982321a695e36677d3228ffce126dd2ae41c.tar.zst
freebsd-ports-gnome-1c23982321a695e36677d3228ffce126dd2ae41c.zip
Fix support for X11 grabbing
PR: ports/168120 Reported by: Baptiste Daroussin <bapt@freebsd.org>
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r--multimedia/ffmpeg-devel/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile
index c10cec7ef14d..11371c4616fb 100644
--- a/multimedia/ffmpeg-devel/Makefile
+++ b/multimedia/ffmpeg-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ffmpeg
DISTVERSION= 2012-04-25
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mm/ffmpeg
@@ -66,6 +66,7 @@ OPTIONS= AACPLUS "Enable aac via libaacplus" off \
VO_AMRWBENC "AMR Wide Band audio encoder (vo-amrwbenc)" off \
VORBIS "Vorbis encoder via libvorbis (implies OGG)" on \
VP8 "VP8 codec via libvpx" on \
+ X11GRAB "Enable x11grabbing" off \
X264 "H.264 encoder" on \
XVID "Xvid encoder via xvidcore" on
@@ -101,6 +102,11 @@ USE_OPENSSL= yes
FFMPEG_NONFREE= yes
.endif
+.if defined(WITH_X11GRAB)
+USE_XORG= x11 xext xfixes
+CONFIGURE_ARGS+= --enable-x11grab
+.endif
+
.include <bsd.port.pre.mk>
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
@@ -113,7 +119,6 @@ CONFIGURE_ARGS+=--prefix="${PREFIX}" \
--enable-postproc \
--enable-avfilter \
--enable-pthreads \
- --enable-x11grab \
--enable-memalign-hack \
--cc="${CC}" \
--extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \