summaryrefslogtreecommitdiff
path: root/libre/clementine-libre/imobiledevice.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-12 22:37:15 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-12 22:37:15 -0300
commit14d1956e0bc3b5d1da3ad5701031efdfde243d62 (patch)
treef10cd8e309d290b0fd00102ed4c412ccf4fcc8e5 /libre/clementine-libre/imobiledevice.patch
parentae07f81713e7e883f6966fc00c179d0580fe2d1e (diff)
downloadabslibre-14d1956e0bc3b5d1da3ad5701031efdfde243d62.tar.gz
abslibre-14d1956e0bc3b5d1da3ad5701031efdfde243d62.tar.bz2
abslibre-14d1956e0bc3b5d1da3ad5701031efdfde243d62.zip
clementine-libre-1.0.1-7: updating revision
Diffstat (limited to 'libre/clementine-libre/imobiledevice.patch')
-rw-r--r--libre/clementine-libre/imobiledevice.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/libre/clementine-libre/imobiledevice.patch b/libre/clementine-libre/imobiledevice.patch
new file mode 100644
index 000000000..9d387fd2f
--- /dev/null
+++ b/libre/clementine-libre/imobiledevice.patch
@@ -0,0 +1,50 @@
+--- clementine-1.0.1/src/CMakeLists.txt.orig 2012-04-12 09:26:47.932990539 +0100
++++ clementine-1.0.1/src/CMakeLists.txt 2012-04-12 09:28:40.553993173 +0100
+@@ -17,6 +17,10 @@
+ include_directories(../3rdparty/qtwin)
+ endif(WIN32)
+
++if(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_VERSION VERSION_GREATER 1.1.1)
++ set(IMOBILEDEVICE_USES_UDIDS ON)
++endif()
++
+ include_directories(${CMAKE_BINARY_DIR})
+ include_directories(${GLIB_INCLUDE_DIRS})
+ include_directories(${LIBXML_INCLUDE_DIRS})
+@@ -1008,6 +1012,7 @@
+ ${USBMUXD_LIBRARIES}
+ gstafcsrc
+ )
++ link_directories(${IMOBILEDEVICE_LIBRARY_DIRS})
+ link_directories(${USBMUXD_LIBRARY_DIRS})
+ endif(HAVE_IMOBILEDEVICE)
+
+--- clementine-1.0.1/src/config.h.in.orig 2011-12-02 21:24:43.000000000 +0000
++++ clementine-1.0.1/src/config.h.in 2012-04-12 09:28:40.554993154 +0100
+@@ -38,6 +38,7 @@
+ #cmakedefine HAVE_SPOTIFY
+ #cmakedefine HAVE_STATIC_SQLITE
+ #cmakedefine HAVE_WIIMOTEDEV
++#cmakedefine IMOBILEDEVICE_USES_UDIDS
+ #cmakedefine LEOPARD
+ #cmakedefine SNOW_LEOPARD
+ #cmakedefine USE_INSTALL_PREFIX
+--- clementine-1.0.1/src/devices/ilister.cpp.orig 2012-04-12 09:28:38.407993781 +0100
++++ clementine-1.0.1/src/devices/ilister.cpp 2012-04-12 09:28:40.554993154 +0100
+@@ -1,3 +1,4 @@
++#include "config.h"
+ #include "ilister.h"
+ #include "imobiledeviceconnection.h"
+
+@@ -17,7 +18,11 @@
+ void iLister::EventCallback(const idevice_event_t* event, void* context) {
+ iLister* me = reinterpret_cast<iLister*>(context);
+
++#ifdef IMOBILEDEVICE_USES_UDIDS
++ const char* uuid = event->udid;
++#else
+ const char* uuid = event->uuid;
++#endif
+
+ switch (event->event) {
+ case IDEVICE_DEVICE_ADD: