svn commit: r400205 - head/emulators/dolphin-emu/files
Ganael LAPLANCHE
martymac at FreeBSD.org
Mon Oct 26 20:36:32 UTC 2015
Author: martymac
Date: Mon Oct 26 20:36:30 2015
New Revision: 400205
URL: https://svnweb.freebsd.org/changeset/ports/400205
Log:
Clean-up patches
Modified:
head/emulators/dolphin-emu/files/patch-CMakeTests-FindLibUSB.cmake
head/emulators/dolphin-emu/files/patch-Source-Core-Core-HW-SI_GCAdapter.cpp
Modified: head/emulators/dolphin-emu/files/patch-CMakeTests-FindLibUSB.cmake
==============================================================================
--- head/emulators/dolphin-emu/files/patch-CMakeTests-FindLibUSB.cmake Mon Oct 26 19:41:22 2015 (r400204)
+++ head/emulators/dolphin-emu/files/patch-CMakeTests-FindLibUSB.cmake Mon Oct 26 20:36:30 2015 (r400205)
@@ -1,19 +1,13 @@
Adapt libusb name for FreeBSD
---- CMakeTests/FindLibUSB.cmake.orig 2015-10-09 20:30:03.218968702 +0000
-+++ CMakeTests/FindLibUSB.cmake 2015-10-09 20:36:02.787944507 +0000
-@@ -23,7 +23,13 @@
+--- CMakeTests/FindLibUSB.cmake.orig 2015-07-31 10:04:05.000000000 +0000
++++ CMakeTests/FindLibUSB.cmake 2015-10-25 12:51:34.455592341 +0000
+@@ -23,7 +23,7 @@
/usr/local/include
)
- find_library(LIBUSB_LIBRARIES NAMES usb-1.0
-+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
-+ set(LIBUSB_LIBRARY "usb")
-+ else()
-+ set(LIBUSB_LIBRARY "usb-1.0")
-+ endif()
-+
-+ find_library(LIBUSB_LIBRARIES NAMES ${LIBUSB_LIBRARY}
++ find_library(LIBUSB_LIBRARIES NAMES usb-1.0 usb
PATHS
${LIBUSB_PKG_LIBRARY_DIRS}
/usr/lib
Modified: head/emulators/dolphin-emu/files/patch-Source-Core-Core-HW-SI_GCAdapter.cpp
==============================================================================
--- head/emulators/dolphin-emu/files/patch-Source-Core-Core-HW-SI_GCAdapter.cpp Mon Oct 26 19:41:22 2015 (r400204)
+++ head/emulators/dolphin-emu/files/patch-Source-Core-Core-HW-SI_GCAdapter.cpp Mon Oct 26 20:36:30 2015 (r400205)
@@ -6,7 +6,7 @@ Disable hotplug support for FreeBSD
static bool s_libusb_driver_not_supported = false;
static libusb_context* s_libusb_context = nullptr;
static bool s_libusb_hotplug_enabled = false;
-+#if !defined(__FreeBSD__)
++#if defined(LIBUSB_API_VERSION) && LIBUSB_API_VERSION >= 0x01000102
static libusb_hotplug_callback_handle s_hotplug_handle;
+#endif
@@ -16,7 +16,7 @@ Disable hotplug support for FreeBSD
}
}
-+#if !defined(__FreeBSD__)
++#if defined(LIBUSB_API_VERSION) && LIBUSB_API_VERSION >= 0x01000102
static int HotplugCallback(libusb_context* ctx, libusb_device* dev, libusb_hotplug_event event, void* user_data)
{
if (event == LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED)
@@ -31,7 +31,7 @@ Disable hotplug support for FreeBSD
Common::SetCurrentThreadName("GC Adapter Scanning Thread");
NOTICE_LOG(SERIALINTERFACE, "GC Adapter scanning thread started");
-+#if !defined(__FreeBSD__)
++#if defined(LIBUSB_API_VERSION) && LIBUSB_API_VERSION >= 0x01000102
s_libusb_hotplug_enabled = libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG) != 0;
if (s_libusb_hotplug_enabled)
{
@@ -47,7 +47,7 @@ Disable hotplug support for FreeBSD
void Shutdown()
{
StopScanThread();
-+#if !defined(__FreeBSD__)
++#if defined(LIBUSB_API_VERSION) && LIBUSB_API_VERSION >= 0x01000102
if (s_libusb_hotplug_enabled)
libusb_hotplug_deregister_callback(s_libusb_context, s_hotplug_handle);
+#endif
More information about the svn-ports-all
mailing list