aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mpg123.rb
blob: 1d1365e960926816b760205c70b9e3ff6c48ae05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Mpg123 < Formula
  homepage 'http://www.mpg123.de/'
  url 'http://sourceforge.net/projects/mpg123/files/mpg123/1.15.4/mpg123-1.15.4.tar.bz2'
  mirror 'http://mpg123.orgis.org/download/mpg123-1.15.4.tar.bz2'
  sha1 'f39d927bcf7abf4f9d857f10cd97c8ceccaffbfa'

  def install
    args = ["--disable-debug", "--disable-dependency-tracking",
            "--prefix=#{prefix}",
            '--with-default-audio=coreaudio',
            '--with-module-suffix=.so']

    if MacOS.prefer_64_bit?
      args << "--with-cpu=x86-64"
    else
      args << "--with-cpu=sse_alone"
    end

    system "./configure", *args
    system "make install"
  end
end