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

class Nasm < Formula
  homepage 'http://www.nasm.us/'
  url 'http://www.nasm.us/pub/nasm/releasebuilds/2.10.03/nasm-2.10.03.tar.bz2'
  sha256 '3babec15086fed1d00495e7c412848fd135cad70faa811738cb35da46d98974c'

  def options
    [[ '--universal', 'Build a universal binary' ]]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?
    system "./configure", "--prefix=#{prefix}"
    system "make everything"
    system "make install_everything"
  end
end