diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/minidlna')
-rw-r--r-- | meta-multimedia/recipes-multimedia/minidlna/minidlna.inc | 8 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Add-compatibility-with-FFMPEG-7.0.patch | 49 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Update-Gettext-version.patch | 32 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-configure.ac-drop-non-standard-checks.patch | 37 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.3.bb (renamed from meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.0.bb) | 2 |
5 files changed, 55 insertions, 73 deletions
diff --git a/meta-multimedia/recipes-multimedia/minidlna/minidlna.inc b/meta-multimedia/recipes-multimedia/minidlna/minidlna.inc index aabf81dce0..cb2a1865e8 100644 --- a/meta-multimedia/recipes-multimedia/minidlna/minidlna.inc +++ b/meta-multimedia/recipes-multimedia/minidlna/minidlna.inc | |||
@@ -11,17 +11,19 @@ inherit gettext autotools-brokensep update-rc.d systemd | |||
11 | SRC_URI = "git://git.code.sf.net/p/minidlna/git;branch=master;module=git \ | 11 | SRC_URI = "git://git.code.sf.net/p/minidlna/git;branch=master;module=git \ |
12 | file://minidlna-daemon.init.d \ | 12 | file://minidlna-daemon.init.d \ |
13 | file://minidlna.service \ | 13 | file://minidlna.service \ |
14 | file://0001-Update-Gettext-version.patch \ | ||
15 | file://0001-configure-Check-for-clock_gettime-seprately-from-__N.patch \ | 14 | file://0001-configure-Check-for-clock_gettime-seprately-from-__N.patch \ |
16 | file://0001-configure.ac-drop-non-standard-checks.patch \ | 15 | file://0001-Add-compatibility-with-FFMPEG-7.0.patch \ |
17 | " | 16 | " |
18 | 17 | ||
19 | S = "${WORKDIR}/git" | ||
20 | 18 | ||
21 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid | 19 | # This remove "--exclude=autopoint" option from autoreconf argument to avoid |
22 | # configure.ac:30: error: required file './ABOUT-NLS' not found | 20 | # configure.ac:30: error: required file './ABOUT-NLS' not found |
23 | EXTRA_AUTORECONF = "" | 21 | EXTRA_AUTORECONF = "" |
24 | 22 | ||
23 | # Reproducibility: force os-name and os-version to constants to avoid host | ||
24 | # related build differences | ||
25 | EXTRA_OECONF = "--with-os-name='${DISTRO_NAME}' --with-os-version=''" | ||
26 | |||
25 | do_install:append(){ | 27 | do_install:append(){ |
26 | install -d ${D}${sysconfdir} | 28 | install -d ${D}${sysconfdir} |
27 | install -m 0755 minidlna.conf ${D}${sysconfdir} | 29 | install -m 0755 minidlna.conf ${D}${sysconfdir} |
diff --git a/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Add-compatibility-with-FFMPEG-7.0.patch b/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Add-compatibility-with-FFMPEG-7.0.patch new file mode 100644 index 0000000000..f9d9c694bc --- /dev/null +++ b/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Add-compatibility-with-FFMPEG-7.0.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From 92f8b94c697c225fb31062586f817c4fc3df8c2a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 29 Aug 2024 13:22:33 -0700 | ||
4 | Subject: [PATCH] Add compatibility with FFMPEG 7.0 | ||
5 | |||
6 | channel_layout has been replaced with ch_layout | ||
7 | |||
8 | Upstream-Status: Submitted [https://sourceforge.net/p/minidlna/git/merge-requests/59/] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | libav.h | 9 +++++++++ | ||
12 | 1 file changed, 9 insertions(+) | ||
13 | |||
14 | diff --git a/libav.h b/libav.h | ||
15 | index b69752c..a3153bd 100644 | ||
16 | --- a/libav.h | ||
17 | +++ b/libav.h | ||
18 | @@ -58,6 +58,7 @@ | ||
19 | #endif | ||
20 | |||
21 | #define USE_CODECPAR LIBAVFORMAT_VERSION_INT >= ((57<<16)+(50<<8)+100) | ||
22 | +#define USE_CH_LAYOUT (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 28, 100)) | ||
23 | |||
24 | #ifndef FF_PROFILE_H264_BASELINE | ||
25 | #define FF_PROFILE_H264_BASELINE 66 | ||
26 | @@ -174,7 +175,11 @@ lav_get_interlaced(AVStream *s) | ||
27 | #define lav_codec_tag(s) s->codecpar->codec_tag | ||
28 | #define lav_sample_rate(s) s->codecpar->sample_rate | ||
29 | #define lav_bit_rate(s) s->codecpar->bit_rate | ||
30 | +#if USE_CH_LAYOUT | ||
31 | +#define lav_channels(s) s->codecpar->ch_layout.nb_channels | ||
32 | +#else | ||
33 | #define lav_channels(s) s->codecpar->channels | ||
34 | +#endif | ||
35 | #define lav_width(s) s->codecpar->width | ||
36 | #define lav_height(s) s->codecpar->height | ||
37 | #define lav_profile(s) s->codecpar->profile | ||
38 | @@ -186,7 +191,11 @@ lav_get_interlaced(AVStream *s) | ||
39 | #define lav_codec_tag(s) s->codec->codec_tag | ||
40 | #define lav_sample_rate(s) s->codec->sample_rate | ||
41 | #define lav_bit_rate(s) s->codec->bit_rate | ||
42 | +#if USE_CH_LAYOUT | ||
43 | +#define lav_channels(s) s->codec->ch_layout.nb_channels | ||
44 | +#else | ||
45 | #define lav_channels(s) s->codec->channels | ||
46 | +#endif | ||
47 | #define lav_width(s) s->codec->width | ||
48 | #define lav_height(s) s->codec->height | ||
49 | #define lav_profile(s) s->codec->profile | ||
diff --git a/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Update-Gettext-version.patch b/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Update-Gettext-version.patch deleted file mode 100644 index 6100da3581..0000000000 --- a/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-Update-Gettext-version.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From a4290bf1887f9203288858ca76bdd20b2edf337a Mon Sep 17 00:00:00 2001 | ||
2 | From: Baptiste Durand <baptiste.durand@gmail.com> | ||
3 | Date: Sun, 9 Sep 2018 20:50:41 +0200 | ||
4 | Subject: [PATCH] Update Gettext version | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | |||
8 | Signed-off-by: Baptiste Durand <baptiste.durand@gmail.com> | ||
9 | --- | ||
10 | configure.ac | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | --- a/configure.ac | ||
14 | +++ b/configure.ac | ||
15 | @@ -14,7 +14,7 @@ | ||
16 | # License along with MiniDLNA; if not, write to the Free Software | ||
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | ||
18 | # USA. | ||
19 | -AC_INIT(MiniDLNA,1.1.3,,minidlna) | ||
20 | +AC_INIT(MiniDLNA,1.2.1,,minidlna) | ||
21 | #LT_INIT | ||
22 | |||
23 | AC_CANONICAL_TARGET | ||
24 | @@ -28,7 +28,7 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC | ||
25 | |||
26 | AM_ICONV | ||
27 | AM_GNU_GETTEXT([external]) | ||
28 | -AM_GNU_GETTEXT_VERSION(0.18) | ||
29 | +AM_GNU_GETTEXT_VERSION(0.20) | ||
30 | |||
31 | # Checks for programs. | ||
32 | AC_PROG_AWK | ||
diff --git a/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-configure.ac-drop-non-standard-checks.patch b/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-configure.ac-drop-non-standard-checks.patch deleted file mode 100644 index 93334b7dab..0000000000 --- a/meta-multimedia/recipes-multimedia/minidlna/minidlna/0001-configure.ac-drop-non-standard-checks.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 83425344b2d7339e8f5b0ad230c51278d330d613 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Sat, 22 Jan 2022 11:41:50 +0100 | ||
4 | Subject: [PATCH] configure.ac: drop non-standard checks | ||
5 | |||
6 | Not sure what upstream is trying to do here but it does not work | ||
7 | with the latest autoconf. | ||
8 | |||
9 | Upstream-Status: Inactive-Upstream | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | configure.ac | 5 ----- | ||
13 | 1 file changed, 5 deletions(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index aa7dd1c..858db52 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -418,7 +418,6 @@ for dir in "" /usr/local $SEARCH_DIR; do | ||
20 | AC_CHECK_LIB([id3tag -lz], [id3_file_open], [LIBID3TAG_LIBS="-lid3tag -lz"], [unset ac_cv_lib_id3tag_id3_file_open; LDFLAGS="$LDFLAGS_SAVE"; continue]) | ||
21 | break | ||
22 | done | ||
23 | -test x"$ac_cv_lib_id3tag__lz___id3_file_open" = x"yes" || AC_MSG_ERROR([Could not find libid3tag]) | ||
24 | AC_SUBST(LIBID3TAG_LIBS) | ||
25 | |||
26 | LDFLAGS_SAVE="$LDFLAGS" | ||
27 | @@ -444,10 +443,6 @@ for dir in "" /usr/local $SEARCH_DIR; do | ||
28 | [unset ac_cv_lib_avformat_av_open_input_file; unset ac_cv_lib_avformat_avformat_open_input; LDFLAGS="$LDFLAGS_SAVE"; continue])]) | ||
29 | break | ||
30 | done | ||
31 | -if test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___av_open_input_file" != x"yes" && | ||
32 | - test x"$ac_cv_lib_avformat__lavcodec__lavutil__lz___avformat_open_input" != x"yes"; then | ||
33 | - AC_MSG_ERROR([Could not find libavformat - part of ffmpeg]) | ||
34 | -fi | ||
35 | AC_SUBST(LIBAVFORMAT_LIBS) | ||
36 | |||
37 | AC_CHECK_LIB(pthread, pthread_create) | ||
diff --git a/meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.0.bb b/meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.3.bb index 4238918c97..da0d90a993 100644 --- a/meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.0.bb +++ b/meta-multimedia/recipes-multimedia/minidlna/minidlna_1.3.3.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require ${BPN}.inc | 1 | require ${BPN}.inc |
2 | 2 | ||
3 | SRCREV = "109d63cb11ac207c18a784556834eb054b34b00b" | 3 | SRCREV = "1a9b32ee7a1c89e54e9f148199b73f9b33ad45ba" |
4 | LIC_FILES_CHKSUM = "file://LICENCE.miniupnpd;md5=b0dabf9d8e0f871554e309d62ead8d2b" | 4 | LIC_FILES_CHKSUM = "file://LICENCE.miniupnpd;md5=b0dabf9d8e0f871554e309d62ead8d2b" |