aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libav
diff options
context:
space:
mode:
authorMarcus von Appen <mva@FreeBSD.org>2014-01-02 10:17:37 +0000
committerMarcus von Appen <mva@FreeBSD.org>2014-01-02 10:17:37 +0000
commit003c3fd620eed2a0253c80fe9e05e19bc769301c (patch)
tree2ab3292cff1bed2a30502236d0a65d106c5bb2d7 /multimedia/libav
parente2036902ca311f7331a9f0612f528c33af16218e (diff)
downloadports-003c3fd620eed2a0253c80fe9e05e19bc769301c.tar.gz
ports-003c3fd620eed2a0253c80fe9e05e19bc769301c.zip
Notes
Diffstat (limited to 'multimedia/libav')
-rw-r--r--multimedia/libav/Makefile15
-rw-r--r--multimedia/libav/files/patch-libavfilter_vf_drawtext.c10
2 files changed, 20 insertions, 5 deletions
diff --git a/multimedia/libav/Makefile b/multimedia/libav/Makefile
index 466aff7591a9..e2a91b564afe 100644
--- a/multimedia/libav/Makefile
+++ b/multimedia/libav/Makefile
@@ -2,7 +2,7 @@
PORTNAME= libav
PORTVERSION= 9.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= http://libav.org/releases/
@@ -33,8 +33,8 @@ CONFIGURE_ARGS+= --prefix="${PREFIX}" \
OPTIONS_DEFINE= ALSA AMR_NB AMR_WB BZIP2 CDIO FAAC FDK_AAC FREETYPE FREI0R \
GNUTLS GSM ILBC JACK LAME OPENCV OPENJPEG OPENSSL OPUS \
- PULSEAUDIO RTMP SCHROEDINGER SPEEX THEORA V4L2 VAAPI VDPAU \
- VO_AACENC VO_AMRWBENC VORBIS VPX X264 XVID ZLIB
+ PULSEAUDIO RTMP SCHROEDINGER SPEEX THEORA V4L VAAPI VDPAU \
+ VO_AACENC VO_AMRWBENC VORBIS VPX X11GRAB X264 XVID ZLIB
OPTIONS_DEFAULT= BZIP2 FREETYPE FREI0R GNUTLS OPENCV SCHROEDINGER \
THEORA VO_AACENC VORBIS VPX X264 XVID ZLIB
@@ -42,6 +42,7 @@ OPTIONS_DEFAULT= BZIP2 FREETYPE FREI0R GNUTLS OPENCV SCHROEDINGER \
FDK_AAC_DESC= AAC audio encoding via Fraunhofer FDK
ILBC_DESC= iLBC en/decoding via libilbc
OPUS_DESC= Opus decoding with libopus
+X11GRAB_DESC= X11 grabbing
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ON= --enable-indev=alsa --enable-outdev=alsa
@@ -115,8 +116,8 @@ SPEEX_CONFIGURE_ENABLE= libspeex
THEORA_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora
THEORA_CONFIGURE_ENABLE= libtheora
-V4L2_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
-V4L2_CONFIGURE_ENABLE= indev=v4l2
+V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
+V4L_CONFIGURE_ENABLE= indev=v4l2
VAAPI_LIB_DEPENDS= libva.so:${PORTSDIR}/multimedia/libva
VAAPI_CONFIGURE_ENABLE= vaapi
@@ -136,6 +137,8 @@ VORBIS_CONFIGURE_ENABLE= libvorbis
VPX_LIB_DEPENDS= libvpx.so:${PORTSDIR}/multimedia/libvpx
VPX_CONFIGURE_ENABLE= libvpx
+X11GRAB_USE= XORG=x11 xext xfixes
+
X264_LIB_DEPENDS= libx264.so:${PORTSDIR}/multimedia/x264
X264_CONFIGURE_ENABLE= libx264
@@ -202,6 +205,8 @@ LICENSE= LGPL21
.endif
post-patch:
+ @${REINPLACE_CMD} -e 's|freetype/freetype.h|freetype2/freetype.h|' \
+ ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|gsm/gsm.h|gsm.h|' \
${WRKSRC}/configure \
${WRKSRC}/libavcodec/libgsm.c
diff --git a/multimedia/libav/files/patch-libavfilter_vf_drawtext.c b/multimedia/libav/files/patch-libavfilter_vf_drawtext.c
new file mode 100644
index 000000000000..69514ebbeca1
--- /dev/null
+++ b/multimedia/libav/files/patch-libavfilter_vf_drawtext.c
@@ -0,0 +1,10 @@
+--- libavfilter/vf_drawtext.c.orig 2014-01-01 12:39:17.000000000 +0100
++++ libavfilter/vf_drawtext.c 2014-01-01 12:39:32.000000000 +0100
+@@ -47,7 +47,6 @@
+ #include "video.h"
+
+ #include <ft2build.h>
+-#include <freetype/config/ftheader.h>
+ #include FT_FREETYPE_H
+ #include FT_GLYPH_H
+