The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Two flags are necessary for Xcode-only systems: `--host-cflags` and
`--host-ldflags` are set to `ENV.cflags` and `ENV.ldflags`,
respectively.
ClosesHomebrew/homebrew#13344.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This patch compiles ffmpeg against libvo-aacenc (if installed) to
provide AAC encoding support - preferred by the maintainers over
libfaac.
ClosesHomebrew/homebrew#12231.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Upgrade ffmpeg to version 0.10.3 which includes many security
fixes and bugfixes. The changelog can be seen in their git repo
under the 0.10.3 tag, tree view, raw link to Changelog.
This still fails with llvm on Lion with undefined symbols. Using
clang all the the tools and ffplay compile and display an mkv
with sound using sdl.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
ffmpeg when built as head checks if x264 is installed using
`Formula.factory.installed?` that won't find x264 stable as it looks for a HEAD
build. Switch from `.installed?` to `linked_keg.exist?` for all dependencies
as this will find them whether they are installed as head or stable.
FixesHomebrew/homebrew#11996.
ClosesHomebrew/homebrew#12020.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
The ffplay binary is only built by default if SDL is present---which made
obtaining it a hit-and-miss operation for some users. A new option,
`--with-ffplay`, has been added that will cause ffplay to be built.
ffplay will be explicitly disabled if the option is not invoked.
FixesHomebrew/homebrew#6880.
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set.
Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
Removing shared libraries from the FFmpeg build has broken a couple of formulae
that depend on it. This is because the shared libraries provided linker
information pertaining to the FFmpeg dependencies.
Re-enabling shared libraries fixes build issues FFmpeg-PHP (issue Homebrew/homebrew#6832) and
GRASS GIS.
Static libraries are still built.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
1. Original ffmpeg developers have regained ffmpeg.org from
libav fork, so url and head links have been reset accordingly.
2. Fixed config.mak inreplace munging for 64-bit builds
(was breaking HEAD builds)
3. Changed version string generation to first try version.sh
script in git repo before falling back to 'git describe'
Signed-off-by: Adam Vandenberg <flangy@gmail.com>