summaryrefslogtreecommitdiffstats
path: root/games/odamex/use_bundled_portmidi.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/odamex/use_bundled_portmidi.diff')
-rw-r--r--games/odamex/use_bundled_portmidi.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/odamex/use_bundled_portmidi.diff b/games/odamex/use_bundled_portmidi.diff
new file mode 100644
index 0000000000..2fffcc2737
--- /dev/null
+++ b/games/odamex/use_bundled_portmidi.diff
@@ -0,0 +1,20 @@
+diff -Naur odamex-src-0.9.5/client/CMakeLists.txt odamex-src-0.9.5.patched/client/CMakeLists.txt
+--- odamex-src-0.9.5/client/CMakeLists.txt 2021-09-08 23:18:23.000000000 -0400
++++ odamex-src-0.9.5.patched/client/CMakeLists.txt 2022-01-01 14:36:43.305448361 -0500
+@@ -65,8 +65,6 @@
+
+ # PortMidi
+ if(ENABLE_PORTMIDI)
+- find_package(PortMidi)
+- if(NOT PORTMIDI_FOUND)
+ # build the PortMidi library
+ set(PORTMIDI_LIBRARY "portmidi")
+ set(PORTMIDI_LIBRARIES ${PORTMIDI_LIBRARY})
+@@ -107,7 +105,6 @@
+ add_library(${PORTMIDI_LIBRARY} STATIC ${PORTMIDI_SOURCES} ${PORTMIDI_HEADERS})
+ target_link_libraries(${PORTMIDI_LIBRARY} ${PM_NEEDED_LIBS})
+ message(STATUS "portmidi will be built and staticaly linked when compiling the client application.")
+- endif()
+
+ add_definitions(-DPORTMIDI)
+ include_directories(${PORTMIDI_INCLUDE_DIR})