summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libdlna')
-rw-r--r--media-libs/libdlna/Manifest1
-rw-r--r--media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch22
-rw-r--r--media-libs/libdlna/files/libdlna-0.2.4-libav9.patch11
-rw-r--r--media-libs/libdlna/libdlna-0.2.4.ebuild40
-rw-r--r--media-libs/libdlna/metadata.xml7
5 files changed, 81 insertions, 0 deletions
diff --git a/media-libs/libdlna/Manifest b/media-libs/libdlna/Manifest
new file mode 100644
index 000000000000..fb42cd6ef262
--- /dev/null
+++ b/media-libs/libdlna/Manifest
@@ -0,0 +1 @@
+DIST libdlna-0.2.4.tar.bz2 37579 SHA256 4b2787392ea5ff61c0056bbaa0bb00a2c83d595d20b5658741658cddd17678c5 SHA512 2d6185e0d7f9d449fe48e5e6c7331a46fb795794c6b8f229e730e47ae519e28d012a79227c2bb43d3a62442560e0d65c8a84ef48e714a99848b854495d6bf7e6 WHIRLPOOL c2977ca71891cd64b12342b6ceb509c7c03ddb3ae1cbda44c0517796e990c07c9306c7372fcd112d7f211d7f79ae476fe146eaf2197065d5aebf6ba7dc20fda9
diff --git a/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch b/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch
new file mode 100644
index 000000000000..1a908ac20c94
--- /dev/null
+++ b/media-libs/libdlna/files/libdlna-0.2.4-ffmpeg.patch
@@ -0,0 +1,22 @@
+Adapt to the latest ffmpeg API
+
+Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=540150
+Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
+
+Index: libdlna-0.2.4/src/profiles.c
+===================================================================
+--- libdlna-0.2.4.orig/src/profiles.c
++++ libdlna-0.2.4/src/profiles.c
+@@ -334,7 +334,12 @@ dlna_guess_media_profile (dlna_t *dlna,
+ p = p->next;
+ }
+
++#if LIBAVFORMAT_VERSION_MAJOR < 54
+ av_close_input_file (ctx);
++#else
++ avformat_close_input(&ctx);
++#endif
++
+ free (codecs);
+ return profile;
+ }
diff --git a/media-libs/libdlna/files/libdlna-0.2.4-libav9.patch b/media-libs/libdlna/files/libdlna-0.2.4-libav9.patch
new file mode 100644
index 000000000000..7b6deb055e75
--- /dev/null
+++ b/media-libs/libdlna/files/libdlna-0.2.4-libav9.patch
@@ -0,0 +1,11 @@
+--- a/src/profiles.c
++++ b/src/profiles.c
+@@ -287,7 +287,7 @@
+ return NULL;
+ }
+
+- if (av_find_stream_info (ctx) < 0)
++ if (avformat_find_stream_info (ctx, NULL) < 0)
+ {
+ if (dlna->verbosity)
+ fprintf (stderr, "can't find stream info\n");
diff --git a/media-libs/libdlna/libdlna-0.2.4.ebuild b/media-libs/libdlna/libdlna-0.2.4.ebuild
new file mode 100644
index 000000000000..702d5ddb1774
--- /dev/null
+++ b/media-libs/libdlna/libdlna-0.2.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A reference open-source implementation of DLNA (Digital Living Network Alliance) standards"
+HOMEPAGE="http://libdlna.geexbox.org"
+SRC_URI="http://libdlna.geexbox.org/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux"
+
+DEPEND=">=virtual/ffmpeg-0.6.90"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libav9.patch
+ # 540150
+ epatch "${FILESDIR}"/${P}-ffmpeg.patch
+
+ tc-export CC
+}
+
+src_configure() {
+ # I can't use econf
+ # --host is not implemented in ./configure file
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --disable-static \
+ || die
+}
+
+src_compile() {
+ # not parallel safe, error "cannot find -ldlna"
+ emake -j1
+}
diff --git a/media-libs/libdlna/metadata.xml b/media-libs/libdlna/metadata.xml
new file mode 100644
index 000000000000..1470e032181b
--- /dev/null
+++ b/media-libs/libdlna/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>