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

class Svdlibc < Formula
  homepage 'http://tedlab.mit.edu/~dr/SVDLIBC/'
  url 'http://tedlab.mit.edu/~dr/SVDLIBC/svdlibc.tgz'
  version '1.4'
  sha1 '9243fbc0516af42b020423442212a025b3406dac'

  bottle do
    cellar :any
    revision 1
    sha1 "8cb13d197689b2fb40b939ff1346ea86e6e94a8a" => :mavericks
    sha1 "21889860321bb5593fe0125c4e9ffa4e0fdd1805" => :mountain_lion
    sha1 "53cd8f618f8b37eddff753fa2d2d347c93f07953" => :lion
  end

  def install
    # make only builds - no configure or install targets, have to copy files manually
    system "make HOSTTYPE=target"
    include.install "svdlib.h"
    lib.install "target/libsvd.a"
    bin.install "target/svd"
  end
end