80 lines
2.7 KiB
Text
80 lines
2.7 KiB
Text
--- CMakeLists.txt.orig 2018-11-25 16:14:19 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -25,7 +25,7 @@ endif()
|
|
project(DRUMSTICK)
|
|
|
|
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
|
|
- set(_INIT_LIB_SUFFIX "64")
|
|
+ set(_INIT_LIB_SUFFIX "")
|
|
else()
|
|
set(_INIT_LIB_SUFFIX "")
|
|
endif()
|
|
@@ -72,7 +72,7 @@ set(_DBUS_INIT OFF)
|
|
|
|
# User options
|
|
option(STATIC_DRUMSTICK "Build static libraries instead of dynamic" OFF)
|
|
-option(USE_DBUS "Include DBus support (required for RealtimeKit)" ${_DBUS_INIT})
|
|
+#option(USE_DBUS "Include DBus support (required for RealtimeKit)" ${_DBUS_INIT})
|
|
|
|
message(STATUS "Build configuration: ${CMAKE_BUILD_TYPE}")
|
|
|
|
@@ -100,8 +100,8 @@ else()
|
|
message(FATAL_ERROR "Program pkg-config not found")
|
|
endif()
|
|
|
|
-if(${CMAKE_SYSTEM} MATCHES "Linux")
|
|
- pkg_check_modules(ALSA alsa>=1.0.0)
|
|
+if(${CMAKE_SYSTEM} MATCHES "Linux|FreeBSD")
|
|
+ #pkg_check_modules(ALSA alsa>=1.0.0)
|
|
if(ALSA_FOUND)
|
|
set(ALSA_LIBS ${ALSA_LIBRARIES})
|
|
list(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR})
|
|
@@ -111,7 +111,9 @@ if(${CMAKE_SYSTEM} MATCHES "Linux")
|
|
endif()
|
|
endif()
|
|
|
|
-pkg_check_modules(PULSE libpulse-simple)
|
|
+if (USE_PULSEAUDIO)
|
|
+ pkg_check_modules(PULSE libpulse-simple)
|
|
+endif()
|
|
if(NOT PULSE_FOUND)
|
|
message(STATUS "Warning: PulseAudio library not found.")
|
|
endif()
|
|
@@ -134,7 +136,7 @@ if(BUILD_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
-if(${CMAKE_SYSTEM} MATCHES "Linux")
|
|
+if(${CMAKE_SYSTEM} MATCHES "Linux|FreeBSD")
|
|
find_package(Doxygen)
|
|
if(DOXYGEN_FOUND)
|
|
configure_file(
|
|
@@ -145,12 +147,14 @@ if(${CMAKE_SYSTEM} MATCHES "Linux")
|
|
${DOXYGEN} Doxyfile
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
endif()
|
|
- add_subdirectory(doc)
|
|
- configure_file(drumstick-alsa.pc.in drumstick-alsa.pc IMMEDIATE @ONLY)
|
|
+ if (BUILD_DOCS)
|
|
+ add_subdirectory(doc)
|
|
+ endif()
|
|
+ #configure_file(drumstick-alsa.pc.in drumstick-alsa.pc IMMEDIATE @ONLY)
|
|
configure_file(drumstick.spec.in drumstick.spec IMMEDIATE @ONLY)
|
|
- install(FILES
|
|
- ${CMAKE_CURRENT_BINARY_DIR}/drumstick-alsa.pc
|
|
- DESTINATION lib${LIB_SUFFIX}/pkgconfig )
|
|
+ #install(FILES
|
|
+ # ${CMAKE_CURRENT_BINARY_DIR}/drumstick-alsa.pc
|
|
+ # DESTINATION lib${LIB_SUFFIX}/pkgconfig )
|
|
# XML mime types
|
|
set( SHARED_MIME_INFO_MINIMUM_VERSION "0.30" )
|
|
set( XDG_MIME_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages" )
|
|
@@ -180,7 +184,7 @@ configure_file(
|
|
add_custom_target( uninstall
|
|
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
|
|
|
-if(${CMAKE_SYSTEM} MATCHES "Linux")
|
|
+if(${CMAKE_SYSTEM} MATCHES "Linux|FreeBSD")
|
|
# tarball target
|
|
add_custom_target( tarball
|
|
COMMAND mkdir -p drumstick-${VERSION}
|