homebrew-core/Formula/vorbis-tools.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

19 lines
No EOL
558 B
Ruby

require 'formula'
class VorbisTools <Formula
@url='http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.2.0.tar.gz'
@md5='df976d24e51ef3d87cd462edf747bf9a'
@homepage='http://vorbis.com'
depends_on 'libogg'
depends_on 'libvorbis'
#depends_on 'ao' => :optional
#depends_on 'ogg123' => :optional
def install
system "./configure --disable-debug --disable-nls --disable-dependency-tracking --prefix='#{prefix}'"
# wtf?!
inreplace 'ogg123/Makefile', '-arch ppc ppc64 i386 x86_64', '-arch i386'
system "make install"
end
end