diff options
author | JW(Shinichi Abe) <shin1.abe@nifty.com> | 2023-05-11 22:54:40 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-13 19:27:11 +0700 |
commit | a384058951513ce92021b128c91600ad87ac2162 (patch) | |
tree | f026906e1bee845f7cd4e87f45a52ec9695a9e70 /network/MEGAcmd | |
parent | b6e96728b92f9633aed4b61410dced45f21f1c01 (diff) |
network/MEGAcmd: Updated for version 1.6.3.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/MEGAcmd')
-rw-r--r-- | network/MEGAcmd/MEGAcmd.SlackBuild | 8 | ||||
-rw-r--r-- | network/MEGAcmd/MEGAcmd.info | 10 | ||||
-rw-r--r-- | network/MEGAcmd/fix-ffmpeg-compile.patch | 29 |
3 files changed, 39 insertions, 8 deletions
diff --git a/network/MEGAcmd/MEGAcmd.SlackBuild b/network/MEGAcmd/MEGAcmd.SlackBuild index b4123eb160770..2f36025842186 100644 --- a/network/MEGAcmd/MEGAcmd.SlackBuild +++ b/network/MEGAcmd/MEGAcmd.SlackBuild @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=MEGAcmd -VERSION=${VERSION:-1.6.1} -SDK=${SDK:-4.17.1a} +VERSION=${VERSION:-1.6.3} +SDK=${SDK:-4.17.1d} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -75,6 +75,9 @@ rm -rf $PRGNAM-${VERSION}_Linux tar xvf $CWD/$PRGNAM-${VERSION}_Linux.tar.?z cd $PRGNAM-${VERSION}_Linux/sdk tar --strip-components=1 -xvf $CWD/sdk-$SDK.tar.gz +# Apply fix-ffmpeg-compile.patch ; Thanks to Arch linux. +patch -p1 < $CWD/fix-ffmpeg-compile.patch + cd ../ chown -R root:root . find -L . \ @@ -92,7 +95,6 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --without-ffmpeg \ --build=$ARCH-slackware-linux make diff --git a/network/MEGAcmd/MEGAcmd.info b/network/MEGAcmd/MEGAcmd.info index 40f66ac5a25fa..9e2d7a195d76d 100644 --- a/network/MEGAcmd/MEGAcmd.info +++ b/network/MEGAcmd/MEGAcmd.info @@ -1,10 +1,10 @@ PRGNAM="MEGAcmd" -VERSION="1.6.1" +VERSION="1.6.3" HOMEPAGE="https://github.com/meganz/MEGAcmd" -DOWNLOAD="https://github.com/meganz/MEGAcmd/archive/1.6.1_Linux/MEGAcmd-1.6.1_Linux.tar.gz \ - https://github.com/meganz/sdk/archive/v4.17.1a/sdk-4.17.1a.tar.gz" -MD5SUM="1b416cdf5dd33390def1c03dca55887d \ - 940697fccabd974922235e6901381a39" +DOWNLOAD="https://github.com/meganz/MEGAcmd/archive/1.6.3_Linux/MEGAcmd-1.6.3_Linux.tar.gz \ + https://github.com/meganz/sdk/archive/v4.17.1d/sdk-4.17.1d.tar.gz" +MD5SUM="9d6d61f0dc029ccc5aceeb3fa643b1bd \ + 09e1926a06ab62ddef9b2dd3846c6ba7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="FreeImage libmediainfo" diff --git a/network/MEGAcmd/fix-ffmpeg-compile.patch b/network/MEGAcmd/fix-ffmpeg-compile.patch new file mode 100644 index 0000000000000..daa9fd72fe081 --- /dev/null +++ b/network/MEGAcmd/fix-ffmpeg-compile.patch @@ -0,0 +1,29 @@ +--- a/src/gfx/freeimage.cpp 2023-03-03 22:13:58.000000000 +0000 ++++ b/src/gfx/freeimage.cpp 2023-03-14 10:03:10.950216675 +0000 +@@ -212,7 +212,7 @@ + #ifdef AV_CODEC_CAP_TRUNCATED + #define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED + #else +-#define CAP_TRUNCATED CODEC_CAP_TRUNCATED ++#define CAP_TRUNCATED 0 + #endif + + const char *GfxProviderFreeImage::supportedformatsFfmpeg() +@@ -313,7 +313,7 @@ + + // Find decoder for video stream + AVCodecID codecId = codecParm->codec_id; +- AVCodec* decoder = avcodec_find_decoder(codecId); ++ auto decoder = avcodec_find_decoder(codecId); + if (!decoder) + { + LOG_warn << "Codec not found: " << codecId; +@@ -330,7 +330,6 @@ + + // Force seeking to key frames + formatContext->seek2any = false; +- videoStream->skip_to_keyframe = true; + if (decoder->capabilities & CAP_TRUNCATED) + { + codecContext->flags |= CAP_TRUNCATED; + |