pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mediatomb Tweak ffmpeg header paths, so med...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/74c14e8487eb
branches:  trunk
changeset: 553651:74c14e8487eb
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Tue Jan 27 04:05:50 2009 +0000

description:
Tweak ffmpeg header paths, so mediatomb actually enables it.

diffstat:

 multimedia/mediatomb/Makefile         |   9 ++++--
 multimedia/mediatomb/distinfo         |   4 ++-
 multimedia/mediatomb/patches/patch-ai |  46 +++++++++++++++++++++++++++++++++++
 multimedia/mediatomb/patches/patch-aj |  22 ++++++++++++++++
 4 files changed, 77 insertions(+), 4 deletions(-)

diffs (123 lines):

diff -r c2f1e400e8cb -r 74c14e8487eb multimedia/mediatomb/Makefile
--- a/multimedia/mediatomb/Makefile     Tue Jan 27 02:06:49 2009 +0000
+++ b/multimedia/mediatomb/Makefile     Tue Jan 27 04:05:50 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2009/01/05 12:28:32 jmcneill Exp $
+# $NetBSD: Makefile,v 1.8 2009/01/27 04:05:50 jmcneill Exp $
 
 DISTNAME=      mediatomb-0.11.0
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=mediatomb/}
 
@@ -12,7 +12,7 @@
 GNU_CONFIGURE= yes
 
 USE_LANGUAGES+=        c c++
-USE_TOOLS+=    pkg-config
+USE_TOOLS+=    pkg-config automake autoconf autoreconf
 USE_DIRS+=     xdg-1.4
 
 RCD_SCRIPTS=   mediatomb
@@ -46,6 +46,9 @@
        ${CP} ${FILESDIR}/config.xml.in ${WRKSRC}/config.xml
        ${CP} ${FILESDIR}/mediatomb.desktop.in ${WRKSRC}/mediatomb.desktop
 
+pre-configure:
+       cd ${WRKSRC} && autoreconf -i
+
 post-install:
        ${INSTALL_DATA_DIR} ${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/config.xml ${EGDIR}/config.xml
diff -r c2f1e400e8cb -r 74c14e8487eb multimedia/mediatomb/distinfo
--- a/multimedia/mediatomb/distinfo     Tue Jan 27 02:06:49 2009 +0000
+++ b/multimedia/mediatomb/distinfo     Tue Jan 27 04:05:50 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2009/01/09 10:17:35 tron Exp $
+$NetBSD: distinfo,v 1.5 2009/01/27 04:05:50 jmcneill Exp $
 
 SHA1 (mediatomb-0.11.0.tar.gz) = 1d7c86924686f9999a359ba96092aa36d30832a6
 RMD160 (mediatomb-0.11.0.tar.gz) = 11c53d5757da3a689c025107331526c0486befc4
@@ -11,3 +11,5 @@
 SHA1 (patch-af) = ec9261d2ec645a07144f8b927fd57a50175903ca
 SHA1 (patch-ag) = 932f8f4d2764c6cb098e0e78e7476527561b198e
 SHA1 (patch-ah) = 9b12a346a61bdeb7d5cc7a7289c0b4046a7a6255
+SHA1 (patch-ai) = e9cad8e72f7e4e9d6eb7448d1380da3bcc8c28df
+SHA1 (patch-aj) = b3893ec5c8fc518673a144cb74a12eaa7e34f008
diff -r c2f1e400e8cb -r 74c14e8487eb multimedia/mediatomb/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mediatomb/patches/patch-ai     Tue Jan 27 04:05:50 2009 +0000
@@ -0,0 +1,46 @@
+$NetBSD: patch-ai,v 1.1 2009/01/27 04:05:50 jmcneill Exp $
+
+--- configure.ac.orig  2009-01-26 22:50:22.000000000 -0500
++++ configure.ac       2009-01-26 22:50:40.000000000 -0500
+@@ -2327,7 +2327,7 @@ AC_LANG_C
+ if test "x$FFMPEG_OK" = xyes; then
+     if test -n "$FFMPEG_SEARCH_HEADERS" ; then
+         CPPFLAGS="-I$FFMPEG_SEARCH_HEADERS"
+-        AC_CHECK_HEADER($FFMPEG_SEARCH_HEADERS/ffmpeg/avformat.h,
++        AC_CHECK_HEADER($FFMPEG_SEARCH_HEADERS/libavformat/avformat.h,
+                 [
+                     FFMPEG_CXXFLAGS="-I$FFMPEG_SEARCH_HEADERS"
+                 ],
+@@ -2340,12 +2340,12 @@ if test "x$FFMPEG_OK" = xyes; then
+                 ]
+         )
+     else 
+-        AC_CHECK_HEADER(ffmpeg/avformat.h,
++        AC_CHECK_HEADER(libavformat/avformat.h,
+             [],
+             [
+                 CPPFLAGS="-I$SEARCH_DIR_HEADERS"
+                 unset ac_cv_header_ffmpeg_avformat_h
+-                AC_CHECK_HEADER($SEARCH_DIR_HEADERS/ffmpeg/avformat.h,
++                AC_CHECK_HEADER($SEARCH_DIR_HEADERS/libavformat/avformat.h,
+                     [
+                         FFMPEG_CXXFLAGS="-I$SEARCH_DIR_HEADERS"
+                     ],
+@@ -2447,7 +2447,7 @@ if test "x$FFMPEG_OK" = xyes; then
+             [
+                 #define __STDC_CONSTANT_MACROS
+                 #include <stdint.h>
+-                #include <ffmpeg/avformat.h>
++                #include <libavformat/avformat.h>
+             ],
+             [
+                 av_register_all();
+@@ -2462,7 +2462,7 @@ if test "x$FFMPEG_OK" = xyes; then
+                     #define __STDC_CONSTANT_MACROS
+                     #include <stdint.h>
+                     extern "C" {
+-                        #include <ffmpeg/avformat.h>
++                        #include <libavformat/avformat.h>
+                     }
+                 ],
+                 [
diff -r c2f1e400e8cb -r 74c14e8487eb multimedia/mediatomb/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mediatomb/patches/patch-aj     Tue Jan 27 04:05:50 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aj,v 1.1 2009/01/27 04:05:50 jmcneill Exp $
+
+--- src/metadata/ffmpeg_handler.cc.orig        2009-01-26 22:51:12.000000000 -0500
++++ src/metadata/ffmpeg_handler.cc     2009-01-26 22:51:27.000000000 -0500
+@@ -47,7 +47,7 @@
+ #ifdef HAVE_FFMPEG
+ 
+ // ffmpeg needs the following sources
+-// INT64_C is not defined in ffmpeg/avformat.h but is needed
++// INT64_C is not defined in libavformat/avformat.h but is needed
+ #define __STDC_CONSTANT_MACROS
+ #include <stdint.h>
+ 
+@@ -56,7 +56,7 @@ extern "C" 
+ {
+ #endif
+ 
+-#include <ffmpeg/avformat.h>
++#include <libavformat/avformat.h>
+ 
+ #ifdef FFMPEG_NEEDS_EXTERN_C
+ } // extern "C"



Home | Main Index | Thread Index | Old Index