2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libogg < Formula
|
2009-12-13 01:36:07 +00:00
|
|
|
homepage 'http://www.xiph.org/ogg/'
|
2013-09-08 18:04:23 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz'
|
|
|
|
sha1 '270685c2a3d9dc6c98372627af99868aa4b4db53'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2012-05-10 14:10:12 +00:00
|
|
|
head 'http://svn.xiph.org/trunk/ogg'
|
2012-03-22 14:24:32 +00:00
|
|
|
|
2013-05-11 23:26:52 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-09-03 19:29:03 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-03-22 14:24:32 +00:00
|
|
|
end
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2013-05-11 23:26:52 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2012-09-03 19:29:03 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-03-05 19:32:37 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}"
|
2009-06-18 08:53:10 +00:00
|
|
|
system "make"
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-12-13 01:36:07 +00:00
|
|
|
end
|