Created
December 11, 2012 21:46
-
-
Save akarpenko/4262495 to your computer and use it in GitHub Desktop.
llibaacplus formula for homebrew
Install with: brew install ./libaacplus.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Libaacplus < Formula | |
homepage 'http://tipok.org.ua/node/17' | |
url 'http://217.20.164.161/~tipok/aacplus/libaacplus-2.0.2.tar.gz' | |
md5 '3fc15d5aa91d0e8b8f94acb6555103da' | |
depends_on 'autoconf' => :build | |
depends_on 'automake' => :build | |
depends_on 'libtool' => :build | |
def install | |
ENV.llvm if MacOS.xcode_version >= "4.2" # This fields contains dirty hack | |
ENV.gcc if MacOS.xcode_version < "4.2" # to provide ability install aacplus library | |
ENV.deparallelize | |
inreplace 'autogen.sh', 'libtool', 'glibtool' | |
system "./autogen.sh", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", "--disable-libtool-lock" | |
inreplace "Makefile", "distdir = $(PACKAGE)-$(VERSION)", "distdir = #{pwd}" | |
system "make" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its not working
Santoshs-MacBook-Pro:videoencode Santosh$ brew install ./libaacplus.rb
Warning: Your Xcode (4.5) is outdated
Please install Xcode 4.6.
==> Downloading http://217.20.164.161/~tipok/aacplus/libaacplus-2.0.2.tar.gz
################################################################## 100.0%
Warning: MD5 support is deprecated and will be removed in a future version.
Please switch this formula to SHA1 or SHA256.
==> ./autogen.sh --disable-dependency-tracking --prefix=/usr/local/Cellar/libaacplus/2.0.2 --disable-
configure.ac:8: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
./autogen.sh: line 69: ./configure: No such file or directory