aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-08-09 11:01:50 -0700
committerAdam Vandenberg2012-08-09 14:53:38 -0700
commit6c821fc6c585ddeede6dbd6d8e9f6b3da1dc7368 (patch)
treee1bd774802c29adf81f904391f3d2b80b63b83c1 /Library
parent1089aee4f02b42b5f1f90427b74fbd331ce4bf01 (diff)
downloadhomebrew-6c821fc6c585ddeede6dbd6d8e9f6b3da1dc7368.tar.bz2
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 <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gst-plugins-ugly.rb10
1 files changed, 10 insertions, 0 deletions
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}"