Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gst-plugins-ugly010: opencore-amr flags are optional

  • Loading branch information...
commit ea443d2e3e849293128d1625fbac7e0d1c461979 1 parent ef900c1
@jacknagel jacknagel authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 gst-plugins-ugly010.rb
View
14 gst-plugins-ugly010.rb
@@ -38,12 +38,14 @@ class GstPluginsUgly010 < Formula
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"
+ if build.with? "opencore-amr"
+ # 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"
+ end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
Please sign in to comment.
Something went wrong with that request. Please try again.