aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-20 23:59:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-20 23:59:39 +0700
commitf64586a75c21523cf569b55008f55f25679001f9 (patch)
tree648c0f6e4876f6eb63cec25fc6877113c9a35bae
parent47c8d6436edfacbffa2383156dffad48affae066 (diff)
libraries/ffms2: Patched to build for newer ffmpeg.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/ffms2/586d87de3f896d0c4ff01b21f572375e11f9c3f1.patch27
-rw-r--r--libraries/ffms2/ffms2.SlackBuild10
2 files changed, 34 insertions, 3 deletions
diff --git a/libraries/ffms2/586d87de3f896d0c4ff01b21f572375e11f9c3f1.patch b/libraries/ffms2/586d87de3f896d0c4ff01b21f572375e11f9c3f1.patch
new file mode 100644
index 000000000000..bae70e486eb8
--- /dev/null
+++ b/libraries/ffms2/586d87de3f896d0c4ff01b21f572375e11f9c3f1.patch
@@ -0,0 +1,27 @@
+From 586d87de3f896d0c4ff01b21f572375e11f9c3f1 Mon Sep 17 00:00:00 2001
+From: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+Date: Tue, 4 May 2021 14:20:47 +0100
+Subject: [PATCH] configure: Remove deprecated API use
+
+Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b35ef80bcd..d19714d0f6 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -102,10 +102,10 @@ CFLAGS="$_CFLAGS $FFMPEG_CFLAGS"
+
+ AC_DEFUN([TEST_FFMPEG],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+- #include <libavcodec/avcodec.h>
++ #include <libavformat/avformat.h>
+ #include <libswscale/swscale.h>
+ ]],[[
+- avcodec_register_all();
++ avformat_network_init();
+ swscale_version();
+ ]])], [eval $1=yes], [eval $1=no])
+ ])
diff --git a/libraries/ffms2/ffms2.SlackBuild b/libraries/ffms2/ffms2.SlackBuild
index b4e0f38c1435..433793dd7168 100644
--- a/libraries/ffms2/ffms2.SlackBuild
+++ b/libraries/ffms2/ffms2.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2014-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2014-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ffms2
VERSION=${VERSION:-2.40}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,7 +75,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
-./autogen.sh \
+patch -p1 < $CWD/586d87de3f896d0c4ff01b21f572375e11f9c3f1.patch
+mkdir -p src/config
+autoreconf -fiv
+CXXFLAGS="$SLKCFLAGS -fpermissive" \
+./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \