pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/50307: ffmpeg2 does not support libfreetype filters
>Number: 50307
>Category: pkg
>Synopsis: ffmpeg2 does not support libfreetype filters
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 06 23:05:00 +0000 2015
>Originator: Konrad Schroder
>Release: 2015Q3
>Organization:
University of Washington
>Environment:
NetBSD watchtower.coral.washington.edu 6.1_STABLE NetBSD 6.1_STABLE (WATCHTOWER) #0: Tue Sep 8 13:50:29 PDT 2015 root%watchtower.coral.washington.edu@localhost:/ovar/src-6/sys/arch/i386/compile/obj/WATCHTOWER i386
>Description:
multimedia/ffmpeg2 does not include options to build against libfreetype / fontconfig, which is required for the "drawtext" filter.
>How-To-Repeat:
/usr/pkg/bin/curl -i -s http://user:pass%my.camera.example.com@localhost/MJPEG.CGI | /usr/pkg/bin/ffmpeg2 -f mjpeg -re -y -i - -vcodec mpeg4 -an -vf drawtext='fontfile=/usr/X11R7/lib/X11/fonts/TTF/Vera.ttf:expansion=strftime:text=%{localtime\:%Y-%m-%d\\ %H\\:%M\\:%S:x=0:y=(H-text_h):fontcolor=white:box=1:boxcolor=0x000000ff@1' -loglevel fatal /var/cameras/data/test-osd.avi
>Fix:
Index: buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/buildlink3.mk,v
retrieving revision 1.4
diff -u -r1.4 buildlink3.mk
--- buildlink3.mk 1 Oct 2014 16:09:16 -0000 1.4
+++ buildlink3.mk 6 Oct 2015 22:58:20 -0000
@@ -14,6 +14,14 @@
.include "../../mk/bsd.fast.prefs.mk"
+.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mfreetype)
+. include "../../graphics/freetype2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mfontconfig)
+. include "../../fonts/fontconfig/buildlink3.mk"
+.endif
+
.if !empty(PKG_BUILD_OPTIONS.ffmpeg2:Mtheora)
. include "../../multimedia/libtheora/buildlink3.mk"
.endif
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/options.mk,v
retrieving revision 1.7
diff -u -r1.7 options.mk
--- options.mk 12 Feb 2015 08:54:15 -0000 1.7
+++ options.mk 6 Oct 2015 22:58:20 -0000
@@ -4,8 +4,8 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.ffmpeg2
PKG_SUPPORTED_OPTIONS= ass faac fdk-aac gnutls lame libvpx opencore-amr \
- openssl theora vorbis x264 x265 xvid
-PKG_SUGGESTED_OPTIONS= lame ass libvpx theora vorbis x264 xvid
+ openssl theora vorbis x264 x265 xvid freetype fontconfig
+PKG_SUGGESTED_OPTIONS= lame ass libvpx theora vorbis x264 xvid freetype fontconfig
# Add VDPAU if it is available
.include "../../multimedia/libvdpau/available.mk"
@@ -23,6 +23,24 @@
.include "../../mk/bsd.options.mk"
+# Fontconfig
+.if !empty(PKG_OPTIONS:Mfontconfig)
+USE_TOOLS+= pkg-config
+CONFIGURE_ARGS+= --enable-fontconfig
+.include "../../fonts/fontconfig/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-fontconfig
+.endif
+
+# freetype option
+.if !empty(PKG_OPTIONS:Mfreetype)
+USE_TOOLS+= pkg-config
+CONFIGURE_ARGS+= --enable-libfreetype
+.include "../../graphics/freetype2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-libfreetype
+.endif
+
# ass option
.if !empty(PKG_OPTIONS:Mass)
USE_TOOLS+= pkg-config
Home |
Main Index |
Thread Index |
Old Index