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

class Libyaml < Formula
  homepage 'http://pyyaml.org/wiki/LibYAML'
  url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz'
  md5 '36c852831d02cf90508c29852361d01b'

  option :universal

  def install
    args = ["--prefix=#{prefix}"]

    if build.universal?
      ENV['CFLAGS'] = "-arch i386 -arch x86_64"
      ENV['LDFLAGS'] = "-arch i386 -arch x86_64"
      args << "--disable-dependency-tracking"
    end

    system './configure', *args
    system "make install"
  end
end