A major rework of this formula.
Removed patch and some inreplace and fixes we needed earlier.
Need to deparallelize the core build, too.
Unfortunately, still doesn't build with SDL.
In the Qt-GUI it reports that the build options don't include
gettext, freetype etc. but in fact we added all of them and during
the build Avidemux seems to pick them up correctly. Therefore, the
GUI reporting code is perhaps broken.
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>
Avidemux-2.5 uses fontconfig, but some users may not have XQuartz.
Add a `depends_on :fontconfig`.
FixesHomebrew/homebrew#14644ClosesHomebrew/homebrew#14665.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The two inreplaces that add an RPATH to the x264 and xvid dylibs
are not meant to run unless the Qt gui is built. The conditional
that stops them from running was not coded correctly. This commit
changes the conditional to only run the inreplaces if Qt4 is
installed using `linked_keg.exist?`.
Fixes an issue reported in Homebrew/homebrew#12051ClosesHomebrew/homebrew#12213.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Avidemux-2.5.6 had its one patch merged upstream the day this
formula was accepted. That was hoped for but unexpected. This
commit adjusts the conditional for def patches so that it only
gets applied to stable. Fixes a patch failure for 32bit + HEAD.
Also in this commit, remove the hardcoded `ENV.llvm` and switch
to using `fails_with :clang`, surrounded by a conditional so it
can still be built with clang if `--with-debug`.
ClosesHomebrew/homebrew#11959.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Avidemux is a popular video editor, actively developed since 2001.
Working with their lead engineer, the OSX code has been corrected,
and now the formula will build avidemux2_cli, the command line
version, with every video filter, encoder, and decoder available.
In addition, if the user has Qt installed, this will automatically
build the Qt gui, avidemux2. Several weeks of work also gets us a
new CoreAudio output device for Qt, a feature missing since 2008.
Macports has a portfile for 2.5.3, a very buggy version.
The latest stable is 2.5.6. This formula will build stable or
2.5svn, which today is 2.5.6 r7750.
The 2.5 branch, called avidemux2, is being finalized.
The 2.6 branch, called avidemux3, is being very actively developed.
EDIT: removed patches merged upstream
EDIT: now compiles against r7668 on Lion.
EDIT: fixes indentation, removes some debug commands
EDIT: put two patches inline not on fileden
EDIT: remove patches merged upstream, inline variable 'a'
EDIT: add patch for ffmpeg compiling on 32bit OSX,
switch url to 2.5.6 stable, add head (tested at r7724)
EDIT: remove dep on libvpx that fails with XCode-4.3.
EDIT: add back in the libvpx, it's fixed. Fix svn revision patch.
EDIT: Make svn rev patch apply only to head. Use cached_download
EDIT: Change head url to use http not svn. Berlios svn offline.
EDIT: Install app to prefix not bin by Homebrew convention.
EDIT: Build verbose if brewed --with-debug.
EDIT: Fix optimization: O3 for regular, -g -O0 for clang debug,
and -ggdb3 -O2 for llvm or gcc debug.
EDIT: shorten inreplaces, use buildpath, make test work w/head.
EDIT: remove cd, use mkdir do. use interpolated array style.
EDIT: Revert to allowing HB to use -Os.
EDIT: Add a patch for Jack's 32bit Snow Lep.
ClosesHomebrew/homebrew#8429.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Avidemux is a popular video editor, actively developed since 2001.
Working with their lead engineer, the OSX code has been corrected,
and now the formula will build avidemux2_cli, the command line
version, with every video filter, encoder, and decoder available.
In addition, if the user has Qt installed, this will automatically
build the Qt gui, avidemux2. Several weeks of work also gets us a
new CoreAudio output device for Qt, a feature missing since 2008.
Macports has a portfile for 2.5.3, a very buggy version.
The latest stable is 2.5.5, and that builds but has no OSX fixes.
All the work done with their devs is in svn on the 2.5 branch.
This formula will build 2.5svn, which today is 2.5.5 r7644.
The 2.5 branch, called avidemux2, is being finalized.
The 2.6 branch, called avidemux3, is being very actively developed.
EDIT: removed patches merged upstream
EDIT: now compiles against r7668 on Lion.
EDIT: fixes indentation, removes some debug commands
EDIT: put two patches inline not on fileden
EDIT: remove patches merged upstream, inline variable 'a'
ClosesHomebrew/homebrew#8429.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>