From 6c821fc6c585ddeede6dbd6d8e9f6b3da1dc7368 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Thu, 9 Aug 2012 11:01:50 -0700 Subject: gst-plugins-ugly: fix compile error, includes gst-plugins-ugly builds against opencore-amr and libcdio. Add those optional deps to be specific and consistent. gst-plugins-ugly fails to compile when `opencore-am?b` are installed due to missing includes. Add the location of them to the appropriate env vars. Tested on ML with clang and llvm from XCode-4.4.1. Fixes #14078 Closes #14085. Signed-off-by: Adam Vandenberg --- Library/Formula/gst-plugins-ugly.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/gst-plugins-ugly.rb b/Library/Formula/gst-plugins-ugly.rb index bad2771b8..08bddadac 100644 --- a/Library/Formula/gst-plugins-ugly.rb +++ b/Library/Formula/gst-plugins-ugly.rb @@ -32,9 +32,19 @@ class GstPluginsUgly < Formula depends_on 'theora' => :optional depends_on 'libmms' => :optional depends_on 'x264' => :optional + depends_on 'opencore-amr' => :optional + depends_on 'libcdio' => :optional def install ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing" + + # Fixes build error, missing includes. + # https://github.com/mxcl/homebrew/issues/14078 + nbcflags = `pkg-config --cflags opencore-amrnb`.chomp + wbcflags = `pkg-config --cflags opencore-amrwb`.chomp + ENV['AMRNB_CFLAGS'] = nbcflags + "-I#{HOMEBREW_PREFIX}/include/opencore-amrnb" + ENV['AMRWB_CFLAGS'] = wbcflags + "-I#{HOMEBREW_PREFIX}/include/opencore-amrwb" + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}" -- cgit v1.2.3