pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libdlna libdlna: Switch to ffmpeg4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37ab5bd4b7a9
branches:  trunk
changeset: 427999:37ab5bd4b7a9
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 23 15:24:00 2020 +0000

description:
libdlna: Switch to ffmpeg4

diffstat:

 net/libdlna/Makefile                              |   6 ++--
 net/libdlna/distinfo                              |  19 ++++++++++++-
 net/libdlna/patches/patch-src_audio__aac.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__ac3.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__amr.c        |  24 ++++++++++++++++
 net/libdlna/patches/patch-src_audio__atrac3.c     |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__g726.c       |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__lpcm.c       |  17 +++++++++++
 net/libdlna/patches/patch-src_audio__mp2.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__mp3.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_audio__wma.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_av__mpeg1.c         |  24 ++++++++++++++++
 net/libdlna/patches/patch-src_av__mpeg2.c         |  33 +++++++++++++++++++++++
 net/libdlna/patches/patch-src_av__mpeg4__part10.c |  15 ++++++++++
 net/libdlna/patches/patch-src_av__mpeg4__part2.c  |  27 ++++++++++++++++++
 net/libdlna/patches/patch-src_av__wmv9.c          |  15 ++++++++++
 net/libdlna/patches/patch-src_image__jpeg.c       |  21 ++++++++++++++
 net/libdlna/patches/patch-src_image__png.c        |  15 ++++++++++
 net/libdlna/patches/patch-src_profiles.c          |  24 ++++++++++++++++
 19 files changed, 341 insertions(+), 4 deletions(-)

diffs (truncated from 437 to 300 lines):

diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/Makefile
--- a/net/libdlna/Makefile      Thu Apr 23 15:07:46 2020 +0000
+++ b/net/libdlna/Makefile      Thu Apr 23 15:24:00 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2020/01/26 17:31:50 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2020/04/23 15:24:00 nia Exp $
 
 DISTNAME=      libdlna-0.2.4
-PKGREVISION=   8
+PKGREVISION=   9
 CATEGORIES=    net
 MASTER_SITES=  http://libdlna.geexbox.org/releases/
 EXTRACT_SUFX=  .tar.bz2
@@ -28,5 +28,5 @@
 SUBST_FILES.config=    configure
 SUBST_SED.config=      -e 's,/usr/bin/install,${INSTALL},'
 
-.include "../../multimedia/ffmpeg1/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/distinfo
--- a/net/libdlna/distinfo      Thu Apr 23 15:07:46 2020 +0000
+++ b/net/libdlna/distinfo      Thu Apr 23 15:24:00 2020 +0000
@@ -1,7 +1,24 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 00:35:08 agc Exp $
+$NetBSD: distinfo,v 1.4 2020/04/23 15:24:00 nia Exp $
 
 SHA1 (libdlna-0.2.4.tar.bz2) = 5e86f4443eeb9e7194c808301efeb78611a9e8b3
 RMD160 (libdlna-0.2.4.tar.bz2) = 6083bdcb7b5bc048f5b81373ef452145ba913861
 SHA512 (libdlna-0.2.4.tar.bz2) = 2d6185e0d7f9d449fe48e5e6c7331a46fb795794c6b8f229e730e47ae519e28d012a79227c2bb43d3a62442560e0d65c8a84ef48e714a99848b854495d6bf7e6
 Size (libdlna-0.2.4.tar.bz2) = 37579 bytes
 SHA1 (patch-af) = b34c260bf86062d268a8f113df17e285ed6ecdb7
+SHA1 (patch-src_audio__aac.c) = c44296b8da285f3c041e5c199983d2dd1b5a4394
+SHA1 (patch-src_audio__ac3.c) = fb54bddd790d1ab8341f65e457448775cad3a9ab
+SHA1 (patch-src_audio__amr.c) = 918b1b2fbfb4120e7b0942e50df63c8b589cff69
+SHA1 (patch-src_audio__atrac3.c) = aa6ad2cbc2189a204b883324f9b92173dfd6a868
+SHA1 (patch-src_audio__g726.c) = 938efd2964b78bb041695b6d1a626fb7a536348e
+SHA1 (patch-src_audio__lpcm.c) = f372362128418caab966e619c793b0cf59934fc2
+SHA1 (patch-src_audio__mp2.c) = 3daaa90ace01b34436b80d3c39acf065e48a14ac
+SHA1 (patch-src_audio__mp3.c) = 5945d9e8b742b51dc4dc61c9a31eeb634e3b565a
+SHA1 (patch-src_audio__wma.c) = a94755a9d1e201415a45b1d85f531868c7d004da
+SHA1 (patch-src_av__mpeg1.c) = e47cc6113895a8f7fc6ab1e90d066514894ef659
+SHA1 (patch-src_av__mpeg2.c) = 73397901c6931a761669d2f76d32a0b99f92f2e6
+SHA1 (patch-src_av__mpeg4__part10.c) = 4269b7f5fffc10fe591c8f4db191a6c101a371f0
+SHA1 (patch-src_av__mpeg4__part2.c) = b47f21ce41f900981b667caf2032126a3fe21507
+SHA1 (patch-src_av__wmv9.c) = 19fe459f154ed65f2dd67b2a681392ff201c5bc0
+SHA1 (patch-src_image__jpeg.c) = c378670db980613ea5c23909febb8b640c08a1e4
+SHA1 (patch-src_image__png.c) = d82725b1c86ef8dac18e86ca1689e6c2bc98336a
+SHA1 (patch-src_profiles.c) = 77ad202651d164dc58f38a6b486c4069eadc56f4
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__aac.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__aac.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__aac.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_aac.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_aac.c
+@@ -311,7 +311,7 @@ audio_profile_guess_aac_priv (AVCodecCon
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for AAC variants codec */
+-  if (ac->codec_id != CODEC_ID_AAC)
++  if (ac->codec_id != AV_CODEC_ID_AAC)
+     return AUDIO_PROFILE_INVALID;
+   
+   switch (type)
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__ac3.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__ac3.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__ac3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_ac3.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_ac3.c
+@@ -39,7 +39,7 @@ audio_profile_guess_ac3 (AVCodecContext 
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for AC3 codec */
+-  if (ac->codec_id != CODEC_ID_AC3)
++  if (ac->codec_id != AV_CODEC_ID_AC3)
+     return AUDIO_PROFILE_INVALID;
+   
+   /* supported channels: 1/0, 2/0, 3/0, 2/1, 3/1, 2/2, 3/2 */
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__amr.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__amr.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_audio__amr.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_amr.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_amr.c
+@@ -53,7 +53,7 @@ audio_is_valid_amr (AVCodecContext *ac)
+   if (!ac)
+     return 0;
+ 
+-  if (ac->codec_id != CODEC_ID_AMR_NB)
++  if (ac->codec_id != AV_CODEC_ID_AMR_NB)
+     return 0;
+   
+   /* only mono is supported */
+@@ -89,7 +89,7 @@ audio_is_valid_amr_wb (AVCodecContext *a
+   if (!ac)
+     return 0;
+ 
+-  if (ac->codec_id != CODEC_ID_AMR_WB)
++  if (ac->codec_id != AV_CODEC_ID_AMR_WB)
+     return 0;
+   
+   /* valid sampling rates: 8, 16, 24, 32 and 48 kHz */
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__atrac3.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__atrac3.c     Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__atrac3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_atrac3.c.orig    2012-02-26 19:34:00.000000000 +0000
++++ src/audio_atrac3.c
+@@ -39,7 +39,7 @@ audio_profile_guess_atrac (AVCodecContex
+     return AUDIO_PROFILE_INVALID;
+ 
+ #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
+-  if (ac->codec_id == CODEC_ID_ATRAC3)
++  if (ac->codec_id == AV_CODEC_ID_ATRAC3)
+     return AUDIO_PROFILE_ATRAC;
+ #endif
+ 
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__g726.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__g726.c       Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__g726.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_g726.c.orig      2012-02-26 19:34:00.000000000 +0000
++++ src/audio_g726.c
+@@ -31,7 +31,7 @@ audio_profile_guess_g726 (AVCodecContext
+   if (!ac)
+     return AUDIO_PROFILE_INVALID;
+ 
+-  if (ac->codec_id != CODEC_ID_ADPCM_G726)
++  if (ac->codec_id != AV_CODEC_ID_ADPCM_G726)
+     return AUDIO_PROFILE_INVALID;
+   
+   if (ac->channels != 1)
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__lpcm.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__lpcm.c       Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_audio__lpcm.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_lpcm.c.orig      2012-02-26 19:34:00.000000000 +0000
++++ src/audio_lpcm.c
+@@ -45,8 +45,8 @@ audio_profile_guess_lpcm (AVCodecContext
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* check for 16-bit signed network-endian PCM codec  */
+-  if (ac->codec_id != CODEC_ID_PCM_S16BE &&
+-      ac->codec_id != CODEC_ID_PCM_S16LE)
++  if (ac->codec_id != AV_CODEC_ID_PCM_S16BE &&
++      ac->codec_id != AV_CODEC_ID_PCM_S16LE)
+     return AUDIO_PROFILE_INVALID;
+ 
+   /* supported channels: mono or stereo */
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__mp2.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__mp2.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__mp2.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_mp2.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_mp2.c
+@@ -31,7 +31,7 @@ audio_profile_guess_mp2 (AVCodecContext 
+   if (!ac)
+     return AUDIO_PROFILE_INVALID;
+ 
+-  if (ac->codec_id != CODEC_ID_MP2)
++  if (ac->codec_id != AV_CODEC_ID_MP2)
+     return AUDIO_PROFILE_INVALID;
+   
+   if (ac->channels > 5)
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__mp3.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__mp3.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__mp3.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_mp3.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_mp3.c
+@@ -47,7 +47,7 @@ audio_is_valid_mp3_common (AVCodecContex
+     return 0;
+ 
+   /* check for MP3 codec */
+-  if (ac->codec_id != CODEC_ID_MP3)
++  if (ac->codec_id != AV_CODEC_ID_MP3)
+     return 0;
+   
+   /* only mono and stereo are supported */
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_audio__wma.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_audio__wma.c        Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_audio__wma.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/audio_wma.c.orig       2012-02-26 19:34:00.000000000 +0000
++++ src/audio_wma.c
+@@ -55,7 +55,7 @@ audio_profile_guess_wma (AVCodecContext 
+     return ap;
+ 
+   /* check for WMA codec */
+-  if (ac->codec_id != CODEC_ID_WMAV1 && ac->codec_id != CODEC_ID_WMAV2)
++  if (ac->codec_id != AV_CODEC_ID_WMAV1 && ac->codec_id != AV_CODEC_ID_WMAV2)
+     return ap;
+ 
+   if (ac->sample_rate <= 48000)
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_av__mpeg1.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_av__mpeg1.c Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_av__mpeg1.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg1.c.orig        2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg1.c
+@@ -42,7 +42,7 @@ probe_mpeg1 (AVFormatContext *ctx dlna_u
+     return NULL;
+   
+   /* check for MPEG-1 video codec */
+-  if (codecs->vc->codec_id != CODEC_ID_MPEG1VIDEO)
++  if (codecs->vc->codec_id != AV_CODEC_ID_MPEG1VIDEO)
+     return NULL;
+ 
+   /* video bitrate must be CBR at 1,151,929.1 bps */
+@@ -72,7 +72,7 @@ probe_mpeg1 (AVFormatContext *ctx dlna_u
+     return NULL;
+ 
+   /* check for MPEG-1 Layer-2 audio codec */
+-  if (codecs->ac->codec_id != CODEC_ID_MP2)
++  if (codecs->ac->codec_id != AV_CODEC_ID_MP2)
+     return NULL;
+   
+   /* supported channels: stereo only */
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_av__mpeg2.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_av__mpeg2.c Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_av__mpeg2.c,v 1.1 2020/04/23 15:24:00 nia Exp $
+
+Fix build with newer ffmpeg.
+
+--- src/av_mpeg2.c.orig        2012-02-26 19:34:00.000000000 +0000
++++ src/av_mpeg2.c
+@@ -453,7 +453,7 @@ probe_mpeg_ts (AVFormatContext *ctx,
+   int i;
+   
+   /* check for MPEG-2 MP@LL profile */
+-  if (codecs->ac->codec_id == CODEC_ID_AAC)
++  if (codecs->ac->codec_id == AV_CODEC_ID_AAC)
+   {
+     /* 352x288 only */
+     if (codecs->vc->width != 352 && codecs->vc->height != 288)
+@@ -535,7 +535,7 @@ probe_mpeg_ts (AVFormatContext *ctx,
+   if (ctx->bit_rate > 19392700)
+     return NULL;
+ 
+-  if (codecs->ac->codec_id != CODEC_ID_AC3)
++  if (codecs->ac->codec_id != AV_CODEC_ID_AC3)
+     return NULL;
+ 
+   /* 48 KHz only */
+@@ -615,7 +615,7 @@ probe_mpeg2 (AVFormatContext *ctx,
+     return NULL;
+   
+   /* check for MPEG-2 video codec */
+-  if (codecs->vc->codec_id != CODEC_ID_MPEG2VIDEO)
++  if (codecs->vc->codec_id != AV_CODEC_ID_MPEG2VIDEO)
+     return NULL;
+ 
+   switch (st)
diff -r 6d6addc3992b -r 37ab5bd4b7a9 net/libdlna/patches/patch-src_av__mpeg4__part10.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdlna/patches/patch-src_av__mpeg4__part10.c Thu Apr 23 15:24:00 2020 +0000
@@ -0,0 +1,15 @@



Home | Main Index | Thread Index | Old Index