summaryrefslogtreecommitdiff
path: root/games/unvanquished/cmakelists.patch
blob: 325e6664fc35f6f7280fa9858306c87c2646a47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- Unvanquished-0.50.0/daemon/CMakeLists.txt.orig	2016-06-08 14:53:22.525135294 +0300
+++ Unvanquished-0.50.0/daemon/CMakeLists.txt	2016-06-08 17:10:11.316629219 +0300
@@ -343,32 +343,32 @@
     if (NOT EXISTS ${DEPS_DIR})
         get_filename_component(BASENAME ${DEPS_DIR} NAME)
         set(REMOTE "http://dl.unvanquished.net/deps/${BASENAME}${DEPS_EXT}")
-        message(STATUS "Downloading dependencies from '${REMOTE}'")
-        file(DOWNLOAD ${REMOTE} ${OBJ_DIR}/${BASENAME}${DEPS_EXT}
-            SHOW_PROGRESS
-            STATUS DOWNLOAD_RESULT
-            LOG DOWNLOAD_LOG
-        )
-        list(GET DOWNLOAD_RESULT 0 DOWNLOAD_STATUS)
-        list(GET DOWNLOAD_RESULT 1 DOWNLOAD_STRING)
-        if (NOT DOWNLOAD_STATUS EQUAL 0)
-            message(FATAL_ERROR "Error downloading '${REMOTE}':
-                Status code: ${DOWNLOAD_STATUS}
-                Error string: ${DOWNLOAD_STRING}
-                Download log: ${DOWNLOAD_LOG}"
-            )
-        endif()
-        message(STATUS "Download completed successfully")
+        #message(STATUS "Downloading dependencies from '${REMOTE}'")
+        #file(DOWNLOAD ${REMOTE} ${OBJ_DIR}/${BASENAME}${DEPS_EXT}
+        #    SHOW_PROGRESS
+        #    STATUS DOWNLOAD_RESULT
+        #    LOG DOWNLOAD_LOG
+        #)
+        #list(GET DOWNLOAD_RESULT 0 DOWNLOAD_STATUS)
+        #list(GET DOWNLOAD_RESULT 1 DOWNLOAD_STRING)
+        #if (NOT DOWNLOAD_STATUS EQUAL 0)
+        #    message(FATAL_ERROR "Error downloading '${REMOTE}':
+        #        Status code: ${DOWNLOAD_STATUS}
+        #        Error string: ${DOWNLOAD_STRING}
+        #        Download log: ${DOWNLOAD_LOG}"
+        #    )
+        #endif()
+        #message(STATUS "Download completed successfully")
 
         # Extract the downloaded archive
-        execute_process(
-            COMMAND ${CMAKE_COMMAND} -E tar xzf ${OBJ_DIR}/${BASENAME}${DEPS_EXT}
-            WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/external_deps
-            RESULT_VARIABLE EXTRACT_RESULT
-        )
-        if (NOT EXTRACT_RESULT EQUAL 0)
-            message(FATAL_ERROR "Could not extract ${BASENAME}${DEPS_EXT}")
-        endif()
+        #execute_process(
+        #    COMMAND ${CMAKE_COMMAND} -E tar xzf ${OBJ_DIR}/${BASENAME}${DEPS_EXT}
+        #    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/external_deps
+        #    RESULT_VARIABLE EXTRACT_RESULT
+        #)
+        #if (NOT EXTRACT_RESULT EQUAL 0)
+        #    message(FATAL_ERROR "Could not extract ${BASENAME}${DEPS_EXT}")
+        #endif()
     endif()
 
     # Add to paths