aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2015-07-03 21:36:06 +0000
committerThomas Zander <riggs@FreeBSD.org>2015-07-03 21:36:06 +0000
commit07276bf06bcf600f3a1f9ee69f8c6275e6342584 (patch)
treea1582fb1db5321caf14882691e88df8657c7b035
parentf0fcb336d9b03d21f2002e93e180ac9b5b957578 (diff)
Notes
-rw-r--r--devel/libdlna/Makefile4
-rw-r--r--devel/libdlna/files/patch-src-profiles.c18
2 files changed, 14 insertions, 8 deletions
diff --git a/devel/libdlna/Makefile b/devel/libdlna/Makefile
index 480204d16ab6..44804e0c33f0 100644
--- a/devel/libdlna/Makefile
+++ b/devel/libdlna/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libdlna
PORTVERSION= 0.2.3
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= http://libdlna.geexbox.org/releases/ \
LOCAL/ehaupt
@@ -25,8 +25,6 @@ CONFIGURE_ARGS+= --prefix="${PREFIX}" --disable-optimize \
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-BROKEN= Does not build with ffmpeg-2.7
-
post-patch:
@${REINPLACE_CMD} -e \
's#\(PKGCONFIG_DIR = \).*#\1${STAGEDIR}${PREFIX}/libdata/pkgconfig#' \
diff --git a/devel/libdlna/files/patch-src-profiles.c b/devel/libdlna/files/patch-src-profiles.c
index c6a4ea7bb252..68bc9f5bbe89 100644
--- a/devel/libdlna/files/patch-src-profiles.c
+++ b/devel/libdlna/files/patch-src-profiles.c
@@ -1,6 +1,6 @@
---- src/profiles.c.orig 2012-10-30 14:12:10.000000000 -0600
-+++ src/profiles.c 2012-10-30 14:13:49.000000000 -0600
-@@ -204,14 +204,24 @@
+--- src/profiles.c.orig 2007-11-26 21:47:43.000000000 +0100
++++ src/profiles.c 2015-07-03 22:44:50.380315167 +0200
+@@ -204,14 +204,24 @@ av_profile_get_codecs (AVFormatContext *
for (i = 0; i < ctx->nb_streams; i++)
{
@@ -25,7 +25,7 @@
{
video_stream = i;
continue;
-@@ -280,7 +290,7 @@
+@@ -280,14 +290,14 @@ dlna_guess_media_profile (dlna_t *dlna,
if (!dlna->inited)
dlna = dlna_init ();
@@ -34,7 +34,15 @@
{
if (dlna->verbosity)
fprintf (stderr, "can't open file: %s\n", filename);
-@@ -334,7 +344,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");
+@@ -334,7 +344,7 @@ dlna_guess_media_profile (dlna_t *dlna,
p = p->next;
}