tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

multimedia/ffmpeg2 and https:// support (gnutls option)



Hello tech-pkg@,
the attached patch add a "gnutls" option to ffmpeg2 (*not* enabled by
default).

This is particular useful with multimedia/mpv with "lua" option that is
able to play video invoking net/youtube-dl... These days it seems that
at least YouTube URLs are all https:// (and so playable only if ffmpeg2
supports https://). Probably there are also other possible useful
use-cases that I am not aware. :)

I added a "gnutls" and not an "ssl" option (and so one that uses
security/openssl instead of security/gnutls) because in that case during
the configure phase ffmpeg2 complains regarding licensing issues (this
can be ignored if and only if "--enable-nonfree" it is provided).


Thank you for your attention!
Ciao,
L.
Index: multimedia/ffmpeg2/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/options.mk,v
retrieving revision 1.5
diff -u -r1.5 options.mk
--- multimedia/ffmpeg2/options.mk	30 Nov 2014 19:08:50 -0000	1.5
+++ multimedia/ffmpeg2/options.mk	10 Feb 2015 17:40:09 -0000
@@ -3,7 +3,7 @@
 # Global and legacy options
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.ffmpeg2
-PKG_SUPPORTED_OPTIONS=	ass faac fdk-aac lame libvpx opencore-amr theora \
+PKG_SUPPORTED_OPTIONS=	ass faac fdk-aac gnutls lame libvpx opencore-amr theora \
 			vorbis x264 x265 xvid
 PKG_SUGGESTED_OPTIONS=	lame ass libvpx theora vorbis x264 xvid
 
@@ -52,6 +52,13 @@
 .include "../../audio/fdk-aac/buildlink3.mk"
 .endif
 
+# SSL support
+.if !empty(PKG_OPTIONS:Mgnutls)
+.include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-gnutls
+CONFIGURE_ARGS+=	--enable-protocol=https
+.endif
+
 # opencore-amr option
 .if !empty(PKG_OPTIONS:Mopencore-amr)
 CONFIGURE_ARGS+=	--enable-libopencore-amrnb


Home | Main Index | Thread Index | Old Index