termux-packages/packages/snapcast-server/CMakeLists.txt.patch
Aditya Alok c69deee0c5
feat(snapcast-server): enable auto-update, upgrade to 0.26.0
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-04-16 20:02:33 +05:30

55 lines
1.5 KiB
Diff

--- a/CMakeLists.txt 2022-04-15 02:22:36.772384329 +0530
+++ b/CMakeLists.txt 2022-04-15 03:22:33.096962106 +0530
@@ -91,11 +91,6 @@
if (BUILD_CLIENT)
message(FATAL_ERROR "Snapclient not yet supported for FreeBSD, use \"-DBUILD_CLIENT=OFF\"")
endif()
-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Android")
- set (ANDROID TRUE)
-# if (BUILD_SERVER)
-# message(FATAL_ERROR "Snapserver not yet supported for Android, use \"-DBUILD_SERVER=OFF\"")
-# endif()
endif()
# Configure paths
@@ -120,7 +115,7 @@
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
add_definitions(-DVERSION="${PROJECT_VERSION}")
-if(NOT ANDROID)
+if(TRUE)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
@@ -165,7 +160,7 @@
endif()
-if(NOT WIN32 AND NOT ANDROID)
+if(NOT WIN32)
if(MACOSX)
set(BONJOUR_FOUND true)
@@ -178,11 +173,7 @@
list(APPEND INCLUDE_DIRS "/usr/local/include")
else()
- pkg_search_module(ALSA REQUIRED alsa)
- if (ALSA_FOUND)
- add_definitions(-DHAS_ALSA)
- endif (ALSA_FOUND)
-
+
if(BUILD_WITH_PULSE)
pkg_search_module(PULSE libpulse)
if (PULSE_FOUND)
@@ -279,7 +270,7 @@
endif()
endif()
-if(NOT ANDROID)
+if(TRUE)
find_package(Boost 1.74 REQUIRED)
else()
find_package(oboe REQUIRED CONFIG)