Created
January 11, 2013 17:52
-
-
Save afazio/4512656 to your computer and use it in GitHub Desktop.
"cat /usr/local/Library/Formula/libyaml.rb"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Libyaml < Formula | |
url 'http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz' | |
homepage 'http://pyyaml.org/wiki/LibYAML' | |
md5 '36c852831d02cf90508c29852361d01b' | |
def options | |
[ | |
["--universal", "Build for both 32 & 64 bit Intel."], | |
] | |
end | |
def install | |
args = ["--prefix=#{prefix}"] | |
if ARGV.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment