Revision: 98361 http://trac.macports.org//changeset/98361 Author: pixilla@macports.org Date: 2012-10-03 07:51:05 -0700 (Wed, 03 Oct 2012) Log Message: ----------- multimedia/mythtv-core.25: - Apple-gcc-4.2 produces runtime errors so blacklist it. - Add patches to fix PPC builds. Closes #36141 Modified Paths: -------------- trunk/dports/multimedia/mythtv-core.25/Portfile Added Paths: ----------- trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff Modified: trunk/dports/multimedia/mythtv-core.25/Portfile =================================================================== --- trunk/dports/multimedia/mythtv-core.25/Portfile 2012-10-03 14:38:04 UTC (rev 98360) +++ trunk/dports/multimedia/mythtv-core.25/Portfile 2012-10-03 14:51:05 UTC (rev 98361) @@ -76,11 +76,13 @@ patchfiles patch-bindings-python-mythtv-utility.diff \ patch-greedyh.asm.diff \ - patch-util-osx-objC.diff + patch-util-osx-objC.diff \ + patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff \ + patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff # See https://trac.macports.org/ticket/35934 compiler.blacklist llvm-gcc-4.2 macports-llvm-gcc-4.2 macports-clang-3.1 \ - dragonegg-3.0 dragonegg-3.1 + dragonegg-3.0 dragonegg-3.1 apple-gcc-4.2 compiler.fallback-append macports-clang-3.0 # Run time failures with XCode 4.4.x and 4.5.0 @@ -95,11 +97,6 @@ depends_skip_archcheck-append macports-clang-3.0 } -if {${configure.compiler} == "apple-gcc-4.2"} { - depends_build-append port:apple-gcc42 - depends_skip_archcheck-append apple-gcc42 -} - post-extract { file mkdir ${worksrcpath}/macports foreach {applescript} ${applescripts} { Added: trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff =================================================================== --- trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff (rev 0) +++ trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-NuppelVideoRecorder.cpp.diff 2012-10-03 14:51:05 UTC (rev 98361) @@ -0,0 +1,24 @@ +--- mythtv/libs/libmythtv/NuppelVideoRecorder.cpp 2012-09-18 17:58:13.000000000 -0700 ++++ mythtv/libs/libmythtv/NuppelVideoRecorder.cpp 2012-10-01 19:33:09.000000000 -0700 +@@ -33,10 +33,17 @@ + #include "vbitext/cc.h" + #include "vbitext/vbi.h" + +-#if HAVE_BIGENDIAN +-extern "C" { +-#include "byteswap.h" +-} ++#if HAVE_BYTESWAP_H ++#include <byteswap.h> ++#elif HAVE_SYS_ENDIAN_H ++#include <sys/endian.h> ++#elif CONFIG_DARWIN ++#include <libkern/OSByteOrder.h> ++#define bswap_16 OSSwapInt16 ++#define bswap_32 OSSwapInt32 ++#define bswap_64 OSSwapInt64 ++#elif HAVE_BIGENDIAN ++#error No bswap functions defined + #endif + + extern "C" { Added: trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff =================================================================== --- trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff (rev 0) +++ trunk/dports/multimedia/mythtv-core.25/files/patch-mythtv-libs-libmythtv-avformatwriter.cpp.diff 2012-10-03 14:51:05 UTC (rev 98361) @@ -0,0 +1,23 @@ +--- mythtv/libs/libmythtv/avformatwriter.cpp 2012-09-18 17:58:13.000000000 -0700 ++++ mythtv/libs/libmythtv/avformatwriter.cpp 2012-10-01 19:33:15.000000000 -0700 +@@ -24,10 +24,16 @@ + #include "NuppelVideoRecorder.h" + #include "avformatwriter.h" + +-#if HAVE_BIGENDIAN +-extern "C" { +-#include "byteswap.h" +-} ++#if HAVE_BYTESWAP_H ++#include <byteswap.h> ++#elif HAVE_SYS_ENDIAN_H ++#include <sys/endian.h> ++#elif CONFIG_DARWIN ++#include <libkern/OSByteOrder.h> ++#define bswap_16 OSSwapInt16 ++#define bswap_32 OSSwapInt32 ++#elif HAVE_BIGENDIAN ++#error No bswap functions defined + #endif + + #define LOC QString("AVFW(%1): ").arg(m_filename)