From owner-svn-ports-head@FreeBSD.ORG Mon Oct 28 14:17:39 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A3B5170F; Mon, 28 Oct 2013 14:17:39 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 825212214; Mon, 28 Oct 2013 14:17:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9SEHdXZ085561; Mon, 28 Oct 2013 14:17:39 GMT (envelope-from wg@svn.freebsd.org) Received: (from wg@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9SEHdNO085558; Mon, 28 Oct 2013 14:17:39 GMT (envelope-from wg@svn.freebsd.org) Message-Id: <201310281417.r9SEHdNO085558@svn.freebsd.org> From: William Grzybowski Date: Mon, 28 Oct 2013 14:17:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331858 - head/devel/libdlna/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 14:17:39 -0000 Author: wg Date: Mon Oct 28 14:17:38 2013 New Revision: 331858 URL: http://svnweb.freebsd.org/changeset/ports/331858 Log: devel/libdlna: fix build with newer ffmpeg Reported by: marino Approved by: portmgr (bapt, implicit) Added: head/devel/libdlna/files/ head/devel/libdlna/files/patch-ffmpeg-header-move (contents, props changed) head/devel/libdlna/files/patch-src-profiles.c (contents, props changed) Added: head/devel/libdlna/files/patch-ffmpeg-header-move ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libdlna/files/patch-ffmpeg-header-move Mon Oct 28 14:17:38 2013 (r331858) @@ -0,0 +1,71 @@ +diff -up configure.ff configure +--- configure.ff 2008-09-27 22:29:07.000000000 +0200 ++++ configure 2008-09-27 22:29:31.000000000 +0200 +@@ -607,12 +607,15 @@ fi + if [ -n "$ffmpegdir" ]; then + check_cflags -I$ffmpegdir + check_ldflags -L$ffmpegdir ++elif [ ! `pkg-config --exists libavcodec libavformat` ]; then ++ check_cflags `pkg-config --cflags libavcodec libavformat` ++ check_ldflags `pkg-config --libs-only-L libavcodec libavformat` + fi + + echolog "Checking for libavformat ..." +-check_lib ffmpeg/avformat.h av_register_all -lavformat || die "Error, can't find libavformat !" ++check_lib libavformat/avformat.h av_register_all -lavformat || die "Error, can't find libavformat !" + echolog "Checking for libavcodec ..." +-check_lib ffmpeg/avcodec.h avcodec_register_all -lavcodec || die "Error, can't find libavcodec !" ++check_lib libavcodec/avcodec.h avcodec_register_all -lavcodec || die "Error, can't find libavcodec !" + + ################################################# + # version +diff -up src/av_mpeg4_part10.c.ff src/av_mpeg4_part10.c +--- src/av_mpeg4_part10.c.ff 2007-11-26 21:47:43.000000000 +0100 ++++ src/av_mpeg4_part10.c 2008-09-27 22:29:07.000000000 +0200 +@@ -26,7 +26,7 @@ + #include + #include + +-#include ++#include + + #include "dlna_internals.h" + #include "profiles.h" +diff -up src/av_mpeg4_part2.c.ff src/av_mpeg4_part2.c +--- src/av_mpeg4_part2.c.ff 2007-11-26 21:47:43.000000000 +0100 ++++ src/av_mpeg4_part2.c 2008-09-27 22:29:07.000000000 +0200 +@@ -26,7 +26,7 @@ + #include + #include + +-#include ++#include + + #include "dlna_internals.h" + #include "profiles.h" +diff -up src/containers.c.ff src/containers.c +--- src/containers.c.ff 2007-11-26 21:47:43.000000000 +0100 ++++ src/containers.c 2008-09-27 22:29:07.000000000 +0200 +@@ -4,7 +4,7 @@ + #include + #include + +-#include ++#include + + #include "containers.h" + #include "profiles.h" +diff -up src/profiles.h.ff src/profiles.h +--- src/profiles.h.ff 2007-11-26 21:47:43.000000000 +0100 ++++ src/profiles.h 2008-09-27 22:29:07.000000000 +0200 +@@ -22,8 +22,8 @@ + #ifndef _PROFILES_H_ + #define _PROFILES_H_ + +-#include +-#include ++#include ++#include + + #include "dlna_internals.h" + #include "containers.h" Added: head/devel/libdlna/files/patch-src-profiles.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libdlna/files/patch-src-profiles.c Mon Oct 28 14:17:38 2013 (r331858) @@ -0,0 +1,45 @@ +--- 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 @@ + + for (i = 0; i < ctx->nb_streams; i++) + { ++#if LIBAVFORMAT_BUILD < 4621 + if (audio_stream == -1 && + ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) ++#else ++ if (audio_stream == -1 && ++ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) ++#endif + { + audio_stream = i; + continue; + } ++#if LIBAVFORMAT_BUILD < 4621 + else if (video_stream == -1 && + ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) ++#else ++ else if (video_stream == -1 && ++ ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) ++#endif + { + video_stream = i; + continue; +@@ -280,7 +290,7 @@ + if (!dlna->inited) + dlna = dlna_init (); + +- if (av_open_input_file (&ctx, filename, NULL, 0, NULL) != 0) ++ if (avformat_open_input (&ctx, filename, NULL, NULL) != 0) + { + if (dlna->verbosity) + fprintf (stderr, "can't open file: %s\n", filename); +@@ -334,7 +344,7 @@ + p = p->next; + } + +- av_close_input_file (ctx); ++ avformat_close_input (ctx); + free (codecs); + return profile; + }