ffmpeg: Xcode-only install needs additional flags

Two flags are necessary for Xcode-only systems: `--host-cflags` and
`--host-ldflags` are set to `ENV.cflags` and `ENV.ldflags`,
respectively.

Closes Homebrew/homebrew#13344.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
samueljohn 2012-06-25 15:12:38 +02:00 committed by Jack Nagel
parent d55eb02400
commit 6ee1d5042b

View file

@ -49,7 +49,10 @@ class Ffmpeg < Formula
"--enable-nonfree",
"--enable-hardcoded-tables",
"--enable-libfreetype",
"--cc=#{ENV.cc}"]
"--cc=#{ENV.cc}",
"--host-cflags=#{ENV.cflags}",
"--host-ldflags=#{ENV.ldflags}"
]
args << "--enable-libx264" if Formula.factory('x264').linked_keg.exist?
args << "--enable-libfaac" if Formula.factory('faac').linked_keg.exist?