multimedia/openh264: update to 2.0.0

- Add symlinks for cliqz and thunderbird

Changes:	https://github.com/cisco/openh264/releases/tag/v2.0.0
ABI:		https://abi-laboratory.pro/tracker/timeline/openh264/
Reported by:	GitHub (watch releases)
This commit is contained in:
Jan Beich 2019-06-17 07:56:06 +00:00
parent acad0de691
commit edc42f3c38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504400
14 changed files with 69 additions and 32 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= electron
DISTVERSIONPREFIX= v
DISTVERSION= ${ELECTRON_VER:S/-beta./.b/}
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/tagattie/FreeBSD-Electron/releases/download/v4.1.0/:chromium \
https://commondatastorage.googleapis.com/chromium-nodejs/:chromium_node \

View File

@ -3,7 +3,7 @@
PORTNAME= ffmpeg
PORTVERSION= 4.1.3
PORTREVISION= 11
PORTREVISION= 12
PORTEPOCH= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= https://ffmpeg.org/releases/

View File

@ -0,0 +1,17 @@
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/d2f6facbfb89
gstopenh264enc.cpp:745:14: error: no member named 'bEnableSpsPpsIdAddition' in 'TagEncParamExt'
enc_params.bEnableSpsPpsIdAddition = 0;
~~~~~~~~~~ ^
--- ext/openh264/gstopenh264enc.cpp.orig 2018-03-23 20:45:15 UTC
+++ ext/openh264/gstopenh264enc.cpp
@@ -739,7 +739,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
enc_params.bEnableSceneChangeDetect = openh264enc->scene_change_detection;
enc_params.bEnableFrameSkip = openh264enc->enable_frame_skip;
enc_params.bEnableLongTermReference = 0;
-#if OPENH264_MINOR >= 4
+#if (OPENH264_MAJOR > 1 || (OPENH264_MAJOR == 1 && OPENH264_MINOR >= 4))
enc_params.eSpsPpsIdStrategy = CONSTANT_ID;
#else
enc_params.bEnableSpsPpsIdAddition = 0;

View File

@ -1,6 +1,6 @@
# $FreeBSD$
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= multimedia
COMMENT= GStreamer (openh264) plugin

View File

@ -2,6 +2,7 @@
PORTNAME= msopenh264
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= multimedia net
MASTER_SITES= https://www.linphone.org/releases/sources/plugins/msopenh264/

View File

@ -0,0 +1,35 @@
src/msopenh264dec.cpp:67:11: error: no member named 'eOutputColorFormat' in 'TagSVCDecodingParam'
params.eOutputColorFormat = videoFormatI420;
~~~~~~ ^
src/msopenh264enc.cpp:134:29: error: no member named 'sSliceCfg' in 'SSpatialLayerConfig'
params.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_DYN_SLICE;
~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/msopenh264enc.cpp:134:53: error: use of undeclared identifier 'SM_DYN_SLICE'
params.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_DYN_SLICE;
^
src/msopenh264enc.cpp:135:29: error: no member named 'sSliceCfg' in 'SSpatialLayerConfig'
params.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceSizeConstraint = ms_factory_get_payload_max_size(mFilter->factory);
~~~~~~~~~~~~~~~~~~~~~~~~ ^
--- src/msopenh264dec.cpp.orig 2016-10-19 15:32:52 UTC
+++ src/msopenh264dec.cpp
@@ -62,7 +62,7 @@ void MSOpenH264Decoder::initialize()
mUnpacker=rfc3984_new();
if (mDecoder != 0) {
SDecodingParam params = { 0 };
-#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
+#if (OPENH264_MAJOR > 1) || ((OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6))
#else
params.eOutputColorFormat = videoFormatI420;
#endif
--- src/msopenh264enc.cpp.orig 2017-07-20 13:56:32 UTC
+++ src/msopenh264enc.cpp
@@ -127,7 +127,7 @@ void MSOpenH264Encoder::initialize()
params.sSpatialLayers[0].iSpatialBitrate = targetBitrate;
params.sSpatialLayers[0].iMaxSpatialBitrate = maxBitrate;
-#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
+#if (OPENH264_MAJOR > 1) || ((OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6))
params.sSpatialLayers[0].sSliceArgument.uiSliceMode = SM_SIZELIMITED_SLICE;
params.sSpatialLayers[0].sSliceArgument.uiSliceSizeConstraint = ms_factory_get_payload_max_size(mFilter->factory);
#else

View File

@ -1,8 +1,8 @@
# $FreeBSD$
PORTNAME= openh264
PORTVERSION= 1.8.0
DISTVERSIONPREFIX=v
DISTVERSION= 2.0.0
PORTEPOCH= 2
CATEGORIES= multimedia

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1530063403
SHA256 (cisco-openh264-v1.8.0_GH0.tar.gz) = 08670017fd0bb36594f14197f60bebea27b895511251c7c64df6cd33fc667d34
SIZE (cisco-openh264-v1.8.0_GH0.tar.gz) = 38695675
TIMESTAMP = 1557299237
SHA256 (cisco-openh264-v2.0.0_GH0.tar.gz) = 73c35f80cc487560d11ecabb6d31ad828bd2f59d412f9cd726cc26bfaf4561fd
SIZE (cisco-openh264-v2.0.0_GH0.tar.gz) = 60216105

View File

@ -1,22 +0,0 @@
Based on https://github.com/cisco/openh264/pull/2877
--- codec/common/arm64/arm_arch64_common_macro.S.orig 2018-06-27 01:36:43 UTC
+++ codec/common/arm64/arm_arch64_common_macro.S
@@ -52,13 +52,17 @@ ret
.align 2
.global \funcName
.type \funcName, %function
+#ifndef __clang__
.func \funcName
+#endif
\funcName:
.endm
.macro WELS_ASM_AARCH64_FUNC_END
ret
+#ifndef __clang__
.endfunc
+#endif
.endm
#endif

View File

@ -3,16 +3,20 @@ include/wels/codec_app_def.h
include/wels/codec_def.h
include/wels/codec_ver.h
%%PLUGINS%%%%WEBPLUGIN_DIR%%/gmpopenh264.info
%%PLUGINS%%@rmtry lib/cliqz/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/firefox-nightly/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/firefox/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/seamonkey/defaults/pref/gmpopenh264.js
%%PLUGINS%%@rmtry lib/thunderbird/defaults/pref/gmpopenh264.js
%%PLUGINS%%%%WEBPLUGIN_DIR%%/gmpopenh264.js
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/cliqz/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/firefox-nightly/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/firefox/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/seamonkey/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%@postexec ln -sf %D/%F %D/lib/thunderbird/defaults/pref/ 2>/dev/null || true
%%PLUGINS%%%%WEBPLUGIN_DIR%%/libgmpopenh264.so
lib/libopenh264.a
lib/libopenh264.so
lib/libopenh264.so.%%PORTVERSION%%
lib/libopenh264.so.4
lib/libopenh264.so.5
libdata/pkgconfig/openh264.pc

View File

@ -3,7 +3,7 @@
PORTNAME= freerdp
DISTVERSION= 2.0.0-rc4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net comms ipv6
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/

View File

@ -2,7 +2,7 @@
PORTNAME= pjsip
PORTVERSION= 2.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.pjsip.org/release/${PORTVERSION}/
DISTNAME= pjproject-${DISTVERSION}

View File

@ -3,6 +3,7 @@
PORTNAME= chromium
PORTVERSION= 75.0.3770.90
PORTREVISION= 1
CATEGORIES?= www
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \
LOCAL/cpm/chromium/:fonts

View File

@ -3,7 +3,7 @@
PORTNAME= iridium
PORTVERSION= 2018.5.67
PORTREVISION= 10
PORTREVISION= 11
CATEGORIES= www
MASTER_SITES= https://downloads.iridiumbrowser.de/source/
PKGNAMESUFFIX= -browser