about summary refs log tree commit diff
path: root/pkgs/applications/misc/huggle/00-remove-third-party.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/huggle/00-remove-third-party.patch')
-rw-r--r--pkgs/applications/misc/huggle/00-remove-third-party.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/misc/huggle/00-remove-third-party.patch b/pkgs/applications/misc/huggle/00-remove-third-party.patch
new file mode 100644
index 0000000000000..e1295e5f54fa7
--- /dev/null
+++ b/pkgs/applications/misc/huggle/00-remove-third-party.patch
@@ -0,0 +1,25 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index a37976e..5669366 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -59,16 +59,12 @@ if(NOT MINGW AND WIN32)
+     set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_BINARY_DIR}/Debug)
+ endif()
+ 
+-add_subdirectory(3rd/libirc/libirc libirc)
+-add_subdirectory(3rd/libirc/libircclient libircclient)
++include_directories(@libirc_includes@)
+ 
+ # YAML
+-option(YAML_CPP_BUILD_TOOLS "Disable tests" OFF)
+-option(YAML_CPP_BUILD_TESTS "Enable testing" OFF)
+-option(YAML_CPP_BUILD_TOOLS "Enable parse tools" OFF)
+-option(BUILD_SHARED_LIBS "Build as shared" ON)
+-include_directories("3rd/yaml-cpp/include/")
+-add_subdirectory(3rd/yaml-cpp)
++find_package(YAML-CPP 0.6.3 QUIET)
++include_directories(YAML_CPP_INCLUDE_DIR)
++
+ if (HUGGLE_EXT)
+     if(NOT MINGW AND WIN32)
+         set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_BINARY_DIR}/Release/extensions)