diff options
author | Taner Tas <taner76@gmail.com> | 2018-02-21 16:33:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-02-28 12:53:05 +0000 |
commit | 24cdbb59afb3e0141401a09cc98c918283ccdc49 (patch) | |
tree | c18c934ec904845e8c95d4f52137960751faeec0 /testing/portmidi/00_cmake.patch | |
parent | 478a4a468ecf31c263b6c76dfab0f2332bc3365f (diff) | |
download | aports-24cdbb59afb3e0141401a09cc98c918283ccdc49.tar.bz2 aports-24cdbb59afb3e0141401a09cc98c918283ccdc49.tar.xz |
testing/portmidi: new aport
http://portmedia.sourceforge.net/
PortMidi is a platform independent library for MIDI input/output.
Diffstat (limited to 'testing/portmidi/00_cmake.patch')
-rw-r--r-- | testing/portmidi/00_cmake.patch | 33 |
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 |