aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/alembic.rb
blob: 819dfabc0d5cb48c14bd452024d63b0638b7914e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Alembic < Formula
  homepage 'http://opensource.imageworks.com/?p=alembic'
  url 'http://alembic.googlecode.com/files/Alembic_1.1.5_2013041100.tgz'
  sha1 '539813017342d156ed5b0efafc983bda9b2cb001'
  version '1.1.5'

  depends_on 'cmake' => :build
  depends_on 'boost'
  depends_on 'hdf5'
  depends_on 'ilmbase'

  def install
    cmake_args = std_cmake_args + %w{. -DUSE_PYILMBASE=OFF -DUSE_PRMAN=OFF -DUSE_ARNOLD=OFF -DUSE_MAYA=OFF -DUSE_PYALEMBIC=OFF}
    system "cmake", *cmake_args
    system "make", "install"
    #move everything upwards
    lib.install_symlink Dir[prefix/"alembic-1.1.5/lib/static/*"]
    include.install_symlink Dir[prefix/"alembic-1.1.5/include/*"]
    bin.install_symlink Dir[prefix/"alembic-1.1.5/bin/*"]
  end
end