aboutsummaryrefslogtreecommitdiffstats
path: root/testing/portmidi/00_cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/portmidi/00_cmake.patch')
-rw-r--r--testing/portmidi/00_cmake.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/portmidi/00_cmake.patch b/testing/portmidi/00_cmake.patch
new file mode 100644
index 0000000000..af8062c0ef
--- /dev/null
+++ b/testing/portmidi/00_cmake.patch
@@ -0,0 +1,33 @@
+--- a/pm_dylib/CMakeLists.txt
++++ b/pm_dylib/CMakeLists.txt
+@@ -115,13 +115,14 @@
+
+ add_library(portmidi-dynamic SHARED ${LIBSRC})
+ set_target_properties(portmidi-dynamic PROPERTIES OUTPUT_NAME "portmidi")
++set_target_properties(portmidi-dynamic PROPERTIES VERSION "0.0.0" SOVERSION "0")
+ target_link_libraries(portmidi-dynamic ${PM_NEEDED_LIBS})
+
+ # install the libraries (Linux and Mac OS X command line)
+ if(UNIX)
+ INSTALL(TARGETS portmidi-dynamic
+- LIBRARY DESTINATION /usr/local/lib
+- ARCHIVE DESTINATION /usr/local/lib)
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ INSTALL(FILES ../pm_common/portmidi.h ../porttime/porttime.h
+- DESTINATION /usr/local/include)
++ DESTINATION include)
+ endif(UNIX)
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4919b78..4067a5a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,6 +4,8 @@
+
+ cmake_minimum_required(VERSION 2.6)
+
++include(GNUInstallDirs)
++
+ if(UNIX)
+ # allow user to set Release or Debug
+ set(CMAKE_BUILD_TYPE Release CACHE STRING