diff options
| author | richo | 2012-03-23 01:24:32 +1100 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-04-22 10:52:40 -0700 |
| commit | b599717f36e659eed0312a60f3307d79f4f57937 (patch) | |
| tree | 78e3c84de4eaf66b93166af1100f4feb559ec78b | |
| parent | 37965f8a44448bd71de9072e411367c80d4fd3bc (diff) | |
| download | homebrew-b599717f36e659eed0312a60f3307d79f4f57937.tar.bz2 | |
libogg, libvorbis: Add --HEAD
Closes #11146.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
| -rw-r--r-- | Library/Formula/libogg.rb | 15 | ||||
| -rw-r--r-- | Library/Formula/libvorbis.rb | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/libogg.rb b/Library/Formula/libogg.rb index fdc49af64..220687e36 100644 --- a/Library/Formula/libogg.rb +++ b/Library/Formula/libogg.rb @@ -5,7 +5,22 @@ class Libogg < Formula url 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz' md5 '0a7eb40b86ac050db3a789ab65fe21c2' + head 'http://svn.xiph.org/trunk/ogg', :using => :svn + + if ARGV.build_head? + depends_on "automake" => :build + + if MacOS.xcode_version >= "4.3" + depends_on "libtool" => :build + depends_on "autoconf" => :build + end + end + def install + if ARGV.build_head? + system "./autogen.sh" + end + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make" diff --git a/Library/Formula/libvorbis.rb b/Library/Formula/libvorbis.rb index 22325d2d6..03c83d6e0 100644 --- a/Library/Formula/libvorbis.rb +++ b/Library/Formula/libvorbis.rb @@ -5,10 +5,25 @@ class Libvorbis < Formula md5 '798a4211221073c1409f26eac4567e8b' homepage 'http://vorbis.com' + head 'http://svn.xiph.org/trunk/vorbis', :using => :svn + depends_on 'pkg-config' => :build depends_on 'libogg' + if ARGV.build_head? + depends_on "automake" => :build + + if MacOS.xcode_version >= "4.3" + depends_on "libtool" => :build + depends_on "autoconf" => :build + end + end + def install + if ARGV.build_head? + system "./autogen.sh" + end + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" |
