contribs: reflect an API change in 10.4, which leads to compilation errors within...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 26 Dec 2008 23:51:45 +0000 (00:51 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 26 Dec 2008 23:51:45 +0000 (00:51 +0100)
additionally, fixed the libmodplug patch

extras/contrib/src/Makefile
extras/contrib/src/Patches/libcdio-modernOSX.patch [new file with mode: 0644]
extras/contrib/src/Patches/libmodplug-gccllvm42.patch

index eab3661..683b316 100644 (file)
@@ -1501,6 +1501,9 @@ libcdio-$(CDIO_VERSION).tar.gz:
 libcdio: libcdio-$(CDIO_VERSION).tar.gz
        $(EXTRACT_GZ)
        patch -p0 < Patches/libcdio-install-cdparanoia-pc.patch
+ifdef HAVE_DARWIN_OS
+       patch -p0 < Patches/libcdio-modernOSX.patch
+endif
 
 .cdio: libcdio
        (cd $<; sed -e 's%@ENABLE_CPP_TRUE@SUBDIRS = C++%@ENABLE_CPP_TRUE@SUBDIRS = %' -i.orig example/Makefile.in && autoreconf -fisv && ./configure --prefix=$(PREFIX) --without-vcdinfo --disable-shared && make && make install)
diff --git a/extras/contrib/src/Patches/libcdio-modernOSX.patch b/extras/contrib/src/Patches/libcdio-modernOSX.patch
new file mode 100644 (file)
index 0000000..7dce6bd
--- /dev/null
@@ -0,0 +1,20 @@
+--- libcdio-orig/lib/driver/osx.c      2007-08-12 14:38:25.000000000 +0200
++++ libcdio/lib/driver/osx.c   2008-12-27 00:38:21.000000000 +0100
+@@ -58,7 +58,7 @@
+ #include <mach/mach.h>
+ #include <Carbon/Carbon.h>
+-#include <IOKit/scsi-commands/SCSITaskLib.h>
++#include <IOKit/scsi/SCSITaskLib.h>
+ #include <IOKit/IOCFPlugIn.h>
+ #include <mach/mach_error.h>
+@@ -77,7 +77,7 @@
+ #include <CoreFoundation/CoreFoundation.h>
+ #include <IOKit/IOKitLib.h>
+ #include <IOKit/IOBSD.h>
+-#include <IOKit/scsi-commands/IOSCSIMultimediaCommandsDevice.h>
++#include <IOKit/scsi/IOSCSIMultimediaCommandsDevice.h>
+ #include <IOKit/storage/IOCDTypes.h>
+ #include <IOKit/storage/IODVDTypes.h>
+ #include <IOKit/storage/IOMedia.h>
index 8a686be..e3f3522 100644 (file)
@@ -6,7 +6,7 @@ diff -ru libmodplug-orig/src/load_abc.cpp libmodplug/src/load_abc.cpp
  #include "load_pat.h"
  
 +#ifndef uint
-+#typedef uint unsigned int
++#define uint unsigned int
 +#endif
 +
  #define MAXABCINCLUDES        8
@@ -20,7 +20,7 @@ diff -ru libmodplug-orig/src/load_mid.cpp libmodplug/src/load_mid.cpp
  #include "load_pat.h"
  
 +#ifndef uint
-+#typedef uint unsigned int
++#define uint unsigned int
 +#endif
 +
  #define ROWSPERNOTE 16
@@ -34,7 +34,7 @@ diff -ru libmodplug-orig/src/load_pat.cpp libmodplug/src/load_pat.cpp
  #include "load_pat.h"
  
 +#ifndef uint
-+#typedef uint unsigned int
++#define uint unsigned int
 +#endif
 +
  #ifdef MSC_VER