2016-07-31 18:32:31 +00:00
|
|
|
require File.expand_path("../Abstract/abstract-osquery-formula", __FILE__)
|
|
|
|
|
|
|
|
class Cmake < AbstractOsqueryFormula
|
|
|
|
desc "Cross-platform make"
|
|
|
|
homepage "https://www.cmake.org/"
|
2018-07-03 16:44:26 +00:00
|
|
|
url "https://cmake.org/files/v3.12/cmake-3.12.0-rc1.tar.gz"
|
|
|
|
sha256 "aac7476c40018006c36ae4ee4137d355d824f0f16b065871c9f989a96500fc00"
|
|
|
|
revision 100
|
2016-07-31 18:32:31 +00:00
|
|
|
|
|
|
|
bottle do
|
|
|
|
root_url "https://osquery-packages.s3.amazonaws.com/bottles"
|
|
|
|
cellar :any_skip_relocation
|
2018-07-03 16:44:26 +00:00
|
|
|
sha256 "531c5d07e1f9ffe5fd8ead11f3b928c8405c33061118c0b69832b2a24ebd09e7" => :sierra
|
|
|
|
sha256 "aeb3ef3663e91ef1206afe965dfe358249a1994f8c96ac946e5d3ed7376e3fd6" => :x86_64_linux
|
2016-07-31 18:32:31 +00:00
|
|
|
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.
|
2016-09-07 23:30:15 +00:00
|
|
|
# For the GUI application please instead use `brew cask install cmake`.
|
2016-07-31 18:32:31 +00:00
|
|
|
|
2017-08-27 17:37:30 +00:00
|
|
|
patch :DATA
|
|
|
|
|
2016-07-31 18:32:31 +00:00
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--no-system-libs
|
|
|
|
--parallel=#{ENV.make_jobs}
|
|
|
|
--datadir=/share/cmake
|
|
|
|
--docdir=/share/doc/cmake
|
|
|
|
--mandir=/share/man
|
2018-07-03 16:44:26 +00:00
|
|
|
--system-zlib
|
2016-09-07 23:30:15 +00:00
|
|
|
--system-bzip2
|
2018-07-03 16:44:26 +00:00
|
|
|
--system-curl
|
2016-07-31 18:32:31 +00:00
|
|
|
]
|
|
|
|
|
2018-07-03 16:44:26 +00:00
|
|
|
system "./bootstrap", *args, "--", "-DCMAKE_BUILD_TYPE=Release"
|
2016-07-31 18:32:31 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
|
2016-09-07 23:30:15 +00:00
|
|
|
elisp.install "Auxiliary/cmake-mode.el"
|
2016-07-31 18:32:31 +00:00
|
|
|
end
|
2016-11-07 03:41:10 +00:00
|
|
|
end
|
2017-08-27 17:37:30 +00:00
|
|
|
|
|
|
|
__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
|
|
|
|
)
|