2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 17:54:01 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Nasm < Formula
|
2011-09-23 20:58:40 +00:00
|
|
|
url 'http://www.nasm.us/pub/nasm/releasebuilds/2.09.10/nasm-2.09.10.tar.bz2'
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.nasm.us/'
|
2011-09-23 20:58:40 +00:00
|
|
|
sha1 'ca57a7454b29e18c64018e49cdf5c832937497ab'
|
|
|
|
|
|
|
|
def options
|
|
|
|
[[ '--universal', 'Build a universal binary' ]]
|
|
|
|
end
|
2009-09-19 17:54:01 +00:00
|
|
|
|
|
|
|
def install
|
2011-09-23 20:58:40 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make everything"
|
|
|
|
system "make install_everything"
|
2009-09-19 17:54:01 +00:00
|
|
|
end
|
|
|
|
end
|