Skip to content

Instantly share code, notes, and snippets.

@caorong
Forked from akarpenko/libaacplus.rb
Last active August 29, 2015 14:21
Show Gist options
  • Save caorong/123c21846bc475a933cd to your computer and use it in GitHub Desktop.
Save caorong/123c21846bc475a933cd to your computer and use it in GitHub Desktop.
llibaacplus formula for homebrew and Yosemite(10.10) Install with: brew install ./libaacplus.rb
require 'formula'
class Libaacplus < Formula
homepage 'http://tipok.org.ua/node/17'
url 'http://tipok.org.ua/downloads/media/aacplus/libaacplus/libaacplus-2.0.2.tar.gz'
sha256 '60dceb64d4ecf0be8d21661d5af2f214710f9d5b6ab389a5bdebf746baa7e1d7'
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'
inreplace "Makefile.am", "SUBDIRS = src include patches frontend", "SUBDIRS = src include patches"
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