This commit updates cgal to version 3.9 and adjusts the syntax to
follow cmake usage: cmake [options] <path-to-source>
This compiles on 64bit Snow Leopard using XCode-4.0.2 using clang,
llvm-2335, and gcc-4.2.1.5666.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Nibbles 2bits 2011-10-27 11:23:23 -07:00 committed by Adam Vandenberg
parent 54bad3121c
commit c1912a7af5

View file

@ -1,8 +1,8 @@
require 'formula'
class Cgal < Formula
url 'https://gforge.inria.fr/frs/download.php/28500/CGAL-3.8.tar.gz'
md5 'b8a79e62e4d8ba8b649d815aebbd1c0a'
url 'https://gforge.inria.fr/frs/download.php/29125/CGAL-3.9.tar.gz'
sha1 'cc99fad7116f221b6301326834f71ff65cebf2eb'
homepage 'http://www.cgal.org/'
depends_on 'cmake' => :build
@ -18,12 +18,11 @@ class Cgal < Formula
def install
args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DCMAKE_BUILD_TYPE=Release"]
unless ARGV.include? '--imaging'
args << "-DWITH_CGAL_Qt3=OFF" << "-DWITH_CGAL_Qt4=OFF" << "-DWITH_CGAL_ImageIO=OFF"
end
system "cmake", ".", *args
args << '.'
system "cmake", *args
system "make install"
end
end