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
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.nasm.us/'
|
2012-05-27 16:45:13 +00:00
|
|
|
url 'http://www.nasm.us/pub/nasm/releasebuilds/2.10.01/nasm-2.10.01.tar.bz2'
|
|
|
|
sha256 'ac9b37d265c35492ab1bc29dd5a4f3da11b42dd9fea7a31d95f6cb4c812bda84'
|
2011-09-23 20:58:40 +00:00
|
|
|
|
|
|
|
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
|