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-07-31 21:37:27 +00:00
|
|
|
url 'http://www.nasm.us/pub/nasm/releasebuilds/2.10.03/nasm-2.10.03.tar.bz2'
|
|
|
|
sha256 '3babec15086fed1d00495e7c412848fd135cad70faa811738cb35da46d98974c'
|
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
|