aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2024-09-22 14:21:17 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-28 06:54:31 +0700
commit1521a2c0407204050267e23ea61632b7278d9bbf (patch)
tree10726faa4fd3e8e1c978388fd0ff5a99d96d6933
parent435964ecaab6f9b41669affecb92c87c5aa2665d (diff)
multimedia/minidlna: Updated for version 1.3.3.
Signed-off-by: Mario Preksavec <mario@slackware.hr> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--multimedia/minidlna/ffmpeg7.patch13
-rw-r--r--multimedia/minidlna/minidlna.SlackBuild9
-rw-r--r--multimedia/minidlna/minidlna.info6
3 files changed, 23 insertions, 5 deletions
diff --git a/multimedia/minidlna/ffmpeg7.patch b/multimedia/minidlna/ffmpeg7.patch
new file mode 100644
index 0000000000000..5d71664f66045
--- /dev/null
+++ b/multimedia/minidlna/ffmpeg7.patch
@@ -0,0 +1,13 @@
+diff --git a/libav.h b/libav.h
+index b69752c..aed9d18 100644
+--- a/libav.h
++++ b/libav.h
+@@ -174,7 +174,7 @@ lav_get_interlaced(AVStream *s)
+ #define lav_codec_tag(s) s->codecpar->codec_tag
+ #define lav_sample_rate(s) s->codecpar->sample_rate
+ #define lav_bit_rate(s) s->codecpar->bit_rate
+-#define lav_channels(s) s->codecpar->channels
++#define lav_channels(s) s->codecpar->ch_layout.nb_channels
+ #define lav_width(s) s->codecpar->width
+ #define lav_height(s) s->codecpar->height
+ #define lav_profile(s) s->codecpar->profile
diff --git a/multimedia/minidlna/minidlna.SlackBuild b/multimedia/minidlna/minidlna.SlackBuild
index 64ffce800be0d..ee245ca1dc392 100644
--- a/multimedia/minidlna/minidlna.SlackBuild
+++ b/multimedia/minidlna/minidlna.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for minidlna
# Copyright 2011-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
-# Copyright 2015, 2023 Mario Preksavec, Zagreb, Croatia
+# Copyright 2015, 2024 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=minidlna
-VERSION=${VERSION:-1.3.2}
+VERSION=${VERSION:-1.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,6 +80,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 {} \;
+# Fix build with ffmpeg 7
+case $(ffmpeg -version | awk '/^ffmpeg version/{print $3}') in
+ 7*) patch -p1 <$CWD/ffmpeg7.patch ;;
+esac
+
CFLAGS="$SLKCFLAGS -fcommon" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/multimedia/minidlna/minidlna.info b/multimedia/minidlna/minidlna.info
index 1a2714325e9b1..a5a11e1b403d4 100644
--- a/multimedia/minidlna/minidlna.info
+++ b/multimedia/minidlna/minidlna.info
@@ -1,8 +1,8 @@
PRGNAM="minidlna"
-VERSION="1.3.2"
+VERSION="1.3.3"
HOMEPAGE="http://minidlna.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/minidlna/minidlna-1.3.2.tar.gz"
-MD5SUM="9e4cc50a48b1b467a234b579b45457d0"
+DOWNLOAD="http://downloads.sourceforge.net/minidlna/minidlna-1.3.3.tar.gz"
+MD5SUM="a8b010d8803811f4e26e57894c30fa6c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""