<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1514128e44679b140e03cccc0c27393bf866450b">https://github.com/macports/macports-ports/commit/1514128e44679b140e03cccc0c27393bf866450b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 1514128e44679b140e03cccc0c27393bf866450b
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Wed Aug 2 20:53:05 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> avidemux: update to 2.8.1, unbreak PowerPC
</span>---
multimedia/avidemux/Portfile | 70 +++++++++++++++-------
...0001-ADM_imageSave.cpp-add-missing-header.patch | 21 +++++++
.../0002-ADM_coreUtils.h-fix-symbols-export.patch | 26 ++++++++
.../files/0003-Fix-missing-ADM_swap64.patch | 22 +++++++
multimedia/avidemux/files/patch-cpuchecks.diff | 31 ++++++++++
5 files changed, 150 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/avidemux/Portfile b/multimedia/avidemux/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4460ad67942..1e55f97c082 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/multimedia/avidemux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/avidemux/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,17 +3,26 @@
</span> PortSystem 1.0
PortGroup cmake 1.1
PortGroup app 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # qt5.min_version ?? # Project does not indicate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.depends_component qttools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
name avidemux
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.7.6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.8.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories multimedia
platforms macosx
license GPL-2
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://avidemux.sourceforge.net/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://avidemux.sourceforge.net
</span>
description video editor designed for simple cutting, filtering and encoding tasks
long_description Avidemux is a free video editor designed for simple cutting, \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,14 +34,21 @@ long_description Avidemux is a free video editor designed for simple
</span> master_sites sourceforge:project/avidemux/avidemux/${version}
distname ${name}_${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 68f4037e10d0a10a7a1b3e2dea95e48506641908 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 9a88741f3535443d4bde35d4207ca2ff96d3b136db2e7232cb50dd6b4eb293cf \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 24372770
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c4c3591c880eb54f52f3cbcec601363839c8f295 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 77d9bdca8683ce57c192b69d207cfab7cf92a7759ce0f63fa37b5c8e42ad3da2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 26126065
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-admPlugins_VapourSynth.cmake.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-cpuchecks.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-admPlugins_VapourSynth.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/mean00/avidemux2/pull/500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append 0001-ADM_imageSave.cpp-add-missing-header.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-ADM_coreUtils.h-fix-symbols-export.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0003-Fix-missing-ADM_swap64.patch
</span>
depends_build-append port:bash \
port:gmake \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig \
</span> port:yasm
depends_lib-append port:fontconfig \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,10 +58,7 @@ depends_lib-append port:fontconfig \
</span> port:libmad \
port:zlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# qt5.min_version ?? # Project does not indicate
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-qt5.depends_component qttools
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants +aac +gettext +lame +opus +sqlite +twolame +vorbis +x264 +x265 +xvid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +aac +gettext +lame +opus +sqlite +twolame +vorbis +vpx +x264 +x265 +xvid
</span>
# only build with one job (otherwise it fails in avidemux_core)
use_parallel_build no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,6 +67,8 @@ use_parallel_build no
</span> compiler.c_standard 2011
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.set_cxx_standard yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.cxxflags-append -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1
configure.args-append -DCMAKE_C_COMPILER=${configure.cc} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,10 +80,8 @@ configure.args-append -DCMAKE_C_COMPILER=${configure.cc} \
</span>
# some default settings
configure.args-append -DGTK=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- -DASAN=True \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DENABLE_QT5=True \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DUSE_EXTERNAL_LIBASS=true \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -DUSE_EXTERNAL_LIBMAD=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_EXTERNAL_LIBASS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_EXTERNAL_LIBMAD=ON
</span>
# disable most options, enable them in variants
configure.args-append -DAFTEN=OFF \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -91,9 +104,23 @@ configure.args-append -DAFTEN=OFF \
</span> -DX265=OFF \
-DXVID=OFF
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DENABLE_QT4=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DENABLE_QT5=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append QT5_DIR=${qt_dir} QTDIR=${qt_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} in [list ppc ppc64]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DASAN=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DADM_CPU_ALTIVEC=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DASAN=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # make bundled copy of ffmpeg build verbosely
# configure.env-append V=1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.env-append QT5_DIR=${qt_dir} QTDIR=${qt_dir}
</span>
# build {
configure {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -118,6 +145,8 @@ configure {
</span>
# build avidemux core
process ${workpath} ${worksrcpath} avidemux_core build_core ""
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build avidemux GTK UI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #process ${workpath} ${worksrcpath} avidemux/gtk build_gtk "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-framework,Cocoa"
</span> # build avidemux QT UI
process ${workpath} ${worksrcpath} avidemux/qt4 build_qt4 ""
# build avidemux cli UI
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -150,6 +179,8 @@ variant gettext description {Support for gettext} {
</span> configure.args-replace -DGETTEXT=OFF -DGETTEXT=ON
}
variant jack description {Support for Jack audio device} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Do not make a default until this bug is fixed:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/jackaudio/jack2/issues/950
</span> depends_lib-append port:jack
configure.args-replace -DJACK=OFF -DJACK=ON
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -175,8 +206,7 @@ variant vorbis description {Support for Vorbis audio codec} {
</span> configure.args-replace -DLIBVORBIS=OFF -DLIBVORBIS=ON
}
variant vpx description {Support for VP8 video codec} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# libvpx is static only so can be considered a build dependency (#47934)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append path:lib/pkgconfig/vpx.pc:libvpx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:lib/pkgconfig/vpx.pc:libvpx
</span> configure.args-replace -DVPXDEC=OFF -DVPXDEC=ON
configure.args-replace -DVPXENC=OFF -DVPXENC=ON
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -195,7 +225,7 @@ variant xvid description {Support for XviD MPEG-4 video codec} {
</span>
# .app stuff
app.name Avidemux
<span style='display:block; white-space:pre;background:#ffe0e0;'>-app.executable Avidemux2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.executable Avidemux2.8
</span> app.use_launch_script yes
app.icon cmake/osx/avidemux.icns
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/avidemux/files/0001-ADM_imageSave.cpp-add-missing-header.patch b/multimedia/avidemux/files/0001-ADM_imageSave.cpp-add-missing-header.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e70c9167495
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/avidemux/files/0001-ADM_imageSave.cpp-add-missing-header.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,21 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 9fbbb99a48fce833e817deae78b49cfb13691e0d Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 2 Aug 2023 16:07:29 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1/3] ADM_imageSave.cpp: add missing header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ avidemux_core/ADM_coreImage/src/ADM_imageSave.cpp | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git avidemux_core/ADM_coreImage/src/ADM_imageSave.cpp avidemux_core/ADM_coreImage/src/ADM_imageSave.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6078181b1..4fe243cc9 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- avidemux_core/ADM_coreImage/src/ADM_imageSave.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ avidemux_core/ADM_coreImage/src/ADM_imageSave.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -8,6 +8,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "ADM_bitmap.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "DIA_coreToolkit.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "ADM_colorspace.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "ADM_coreUtils.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern "C" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "libavcodec/avcodec.h"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/avidemux/files/0002-ADM_coreUtils.h-fix-symbols-export.patch b/multimedia/avidemux/files/0002-ADM_coreUtils.h-fix-symbols-export.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..44fce1439fb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/avidemux/files/0002-ADM_coreUtils.h-fix-symbols-export.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 70c295ef096b31f49c518dca332272265ea8b4bf Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 2 Aug 2023 16:50:42 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2/3] ADM_coreUtils.h: fix symbols export
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ avidemux_core/ADM_coreUtils/include/ADM_coreUtils.h | 6 +++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 3 insertions(+), 3 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git avidemux_core/ADM_coreUtils/include/ADM_coreUtils.h avidemux_core/ADM_coreUtils/include/ADM_coreUtils.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 637c9a329..414431262 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- avidemux_core/ADM_coreUtils/include/ADM_coreUtils.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ avidemux_core/ADM_coreUtils/include/ADM_coreUtils.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,9 +26,9 @@ ADM_COREUTILS6_EXPORT uint32_t ADM_Fps1000FromUs(uint64_t us);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT bool ADM_computeAverageBitrateFromDuration(uint64_t duration, uint32_t sizeInMB, uint32_t *avgInKbits);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT ADM_ASPECT getAspectRatioFromAR(uint32_t width, uint32_t height,const char **s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT int32_t ADM_getNiceValue(uint32_t priorityLevel);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void Endian_AviMainHeader(MainAVIHeader *m);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void Endian_BitMapInfo( ADM_BITMAPINFOHEADER *b);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void Endian_AviStreamHeader(AVIStreamHeader *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ADM_COREUTILS6_EXPORT void Endian_AviMainHeader(MainAVIHeader *m);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ADM_COREUTILS6_EXPORT void Endian_BitMapInfo(ADM_BITMAPINFOHEADER *b);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ADM_COREUTILS6_EXPORT void Endian_AviStreamHeader(AVIStreamHeader *s);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT void Endian_WavHeader(WAVHeader *w);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT void printBih(ADM_BITMAPINFOHEADER *bi);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_COREUTILS6_EXPORT uint8_t mk_hex(uint8_t a, uint8_t b);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/avidemux/files/0003-Fix-missing-ADM_swap64.patch b/multimedia/avidemux/files/0003-Fix-missing-ADM_swap64.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e0dbff95bb2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/avidemux/files/0003-Fix-missing-ADM_swap64.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f10df2804df787707d80a1e1869400946d844eaf Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 2 Aug 2023 19:28:48 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 3/3] Fix missing ADM_swap64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ avidemux_core/ADM_core/include/ADM_assert.h | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git avidemux_core/ADM_core/include/ADM_assert.h avidemux_core/ADM_core/include/ADM_assert.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 4bb0e61ee..38d21f092 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- avidemux_core/ADM_core/include/ADM_assert.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ avidemux_core/ADM_core/include/ADM_assert.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -53,7 +53,7 @@ ADM_CORE6_EXPORT void *ADM_realloc(void *in,size_t size);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_CORE6_EXPORT void ADM_dezalloc(void *ptr);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_CORE6_EXPORT char *ADM_strdup( const char *in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Endianness stuff */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-uint64_t ADM_swap64(uint64_t in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ADM_CORE6_EXPORT uint64_t ADM_swap64(uint64_t in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_CORE6_EXPORT uint32_t ADM_swap32(uint32_t in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADM_CORE6_EXPORT uint16_t ADM_swap16(uint16_t in);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //static inline uint32_t dontswap(uint32_t in) {return in;};
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/multimedia/avidemux/files/patch-cpuchecks.diff b/multimedia/avidemux/files/patch-cpuchecks.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..91d9166b74b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/multimedia/avidemux/files/patch-cpuchecks.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/admDetermineSystem.cmake.orig 2022-09-17 21:59:17.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/admDetermineSystem.cmake 2023-08-02 15:34:17.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -52,12 +52,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Check CPU support
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ########################################
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF(NOT MSVC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PERFORM_SYSTEM_TEST(cpu_x86-64_check.cpp "x86 64-bit" X86_64_SUPPORTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(ADM_CPU_64BIT 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 8)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PERFORM_SYSTEM_TEST(cpu_x86-64_check.cpp "x86 64-bit" X86_64_SUPPORTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (X86_64_SUPPORTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(ADM_CPU_X86 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(ADM_CPU_X86_64 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -88,7 +88,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF (X86_64_SUPPORTED)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ IF (NOT ADM_CPU_X86_32 AND NOT ADM_CPU_X86_64 AND NOT ADM_CPU_ARMEL AND NOT ADM_CPU_ARM64 AND NOT ADM_CPU_RISCV AND NOT ADM_CPU_RISCV_64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MESSAGE(FATAL_ERROR "CPU not supported")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # Assume PowerPC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ IF (ADM_CPU_64BIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SET(ADM_CPU_PPC64 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ELSE (ADM_CPU_64BIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ SET(ADM_CPU_PPC 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ENDIF (ADM_CPU_64BIT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF (NOT ADM_CPU_X86_32 AND NOT ADM_CPU_X86_64 AND NOT ADM_CPU_ARMEL AND NOT ADM_CPU_ARM64 AND NOT ADM_CPU_RISCV AND NOT ADM_CPU_RISCV_64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
</span></pre><pre style='margin:0'>
</pre>