2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
class Cmake <Formula
|
2010-04-09 09:04:47 +00:00
|
|
|
url 'http://www.cmake.org/files/v2.8/cmake-2.8.1.tar.gz'
|
|
|
|
md5 'feadc2e5ebbfed0efc90178583503725'
|
2009-11-30 13:57:36 +00:00
|
|
|
homepage 'http://www.cmake.org/'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-07-28 01:28:46 +00:00
|
|
|
# xmlrpc is a stupid little library, rather than waste our users' time
|
|
|
|
# just let cmake use its own copy. God knows why something like cmake
|
|
|
|
# needs an xmlrpc library anyway! It is amazing!
|
|
|
|
inreplace 'CMakeLists.txt',
|
|
|
|
"# Mention to the user what system libraries are being used.",
|
|
|
|
"SET(CMAKE_USE_SYSTEM_XMLRPC 0)"
|
|
|
|
|
2009-08-07 14:41:43 +00:00
|
|
|
system "./bootstrap", "--prefix=#{prefix}",
|
|
|
|
"--system-libs",
|
|
|
|
"--datadir=/share/cmake",
|
|
|
|
"--docdir=/share/doc/cmake",
|
|
|
|
"--mandir=/share/man"
|
2010-04-09 17:06:44 +00:00
|
|
|
system "make" # Separate steps, or compile fails on Mac Pro
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-11-30 13:57:36 +00:00
|
|
|
end
|