osquery-1/tools/provision/formula/cmake.rb

58 lines
1.7 KiB
Ruby

require File.expand_path("../Abstract/abstract-osquery-formula", __FILE__)
class Cmake < AbstractOsqueryFormula
desc "Cross-platform make"
homepage "https://www.cmake.org/"
url "https://cmake.org/files/v3.12/cmake-3.12.0-rc1.tar.gz"
sha256 "aac7476c40018006c36ae4ee4137d355d824f0f16b065871c9f989a96500fc00"
revision 100
bottle do
root_url "https://osquery-packages.s3.amazonaws.com/bottles"
cellar :any_skip_relocation
sha256 "531c5d07e1f9ffe5fd8ead11f3b928c8405c33061118c0b69832b2a24ebd09e7" => :sierra
sha256 "aeb3ef3663e91ef1206afe965dfe358249a1994f8c96ac946e5d3ed7376e3fd6" => :x86_64_linux
end
# The `with-qt` GUI option was removed due to circular dependencies if
# CMake is built with Qt support and Qt is built with MySQL support as MySQL uses CMake.
# For the GUI application please instead use `brew cask install cmake`.
patch :DATA
def install
args = %W[
--prefix=#{prefix}
--no-system-libs
--parallel=#{ENV.make_jobs}
--datadir=/share/cmake
--docdir=/share/doc/cmake
--mandir=/share/man
--system-zlib
--system-bzip2
--system-curl
]
system "./bootstrap", *args, "--", "-DCMAKE_BUILD_TYPE=Release"
system "make"
system "make", "install"
elisp.install "Auxiliary/cmake-mode.el"
end
end
__END__
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt
index 4c8e228..9605d6a 100644
--- a/Utilities/cmlibuv/CMakeLists.txt
+++ b/Utilities/cmlibuv/CMakeLists.txt
@@ -175,7 +175,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
- list(APPEND uv_libraries dl rt)
+ list(APPEND uv_libraries dl rt pthread)
list(APPEND uv_headers
include/uv-linux.h
)