Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gst-plugins-ugly010: really fix amr flags

  • Loading branch information...
commit 59f4da7505f3d704343be992e002f8ac083ebe0d 1 parent ea443d2
@jacknagel jacknagel authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 gst-plugins-ugly010.rb
View
13 gst-plugins-ugly010.rb
@@ -38,6 +38,13 @@ class GstPluginsUgly010 < Formula
def install
ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing"
+ args = %W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --mandir=#{man}
+ ]
+
if build.with? "opencore-amr"
# Fixes build error, missing includes.
# https://github.com/mxcl/homebrew/issues/14078
@@ -45,11 +52,11 @@ def install
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"
+ else
+ args << "--disable-amrnb" << "--disable-amrwb"
end
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--mandir=#{man}"
+ system "./configure", *args
system "make"
system "make install"
end
Please sign in to comment.
Something went wrong with that request. Please try again.