homebrew-core/Formula/avidemux.rb

145 lines
4.5 KiB
Ruby
Raw Normal View History

avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
require 'formula'
# Help! Wanted: someone who can get Avidemux working with SDL.
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
class Avidemux < Formula
homepage 'http://avidemux.sourceforge.net/'
url 'http://downloads.sourceforge.net/avidemux/avidemux_2.6.4.tar.gz'
sha1 '7ed55fd5cfb6cfa73ebb9058af72fa2e3c9717c3'
head 'git://gitorious.org/avidemux2-6/avidemux2-6.git'
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
option 'with-debug', 'Enable debug build.'
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
depends_on 'pkg-config' => :build
depends_on 'cmake' => :build
depends_on 'yasm' => :build
depends_on :fontconfig
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
depends_on 'gettext'
depends_on 'x264' => :recommended
depends_on 'faac' => :recommended
depends_on 'faad2' => :recommended
depends_on 'lame' => :recommended
depends_on 'xvid' => :recommended
depends_on :freetype => :recommended
depends_on 'theora' => :recommended
depends_on 'libvorbis' => :recommended
depends_on 'libvpx' => :recommended
depends_on 'rtmpdump' => :recommended
depends_on 'opencore-amr' => :recommended
depends_on 'libvo-aacenc' => :recommended
depends_on 'libass' => :recommended
depends_on 'openjpeg' => :recommended
depends_on 'speex' => :recommended
depends_on 'schroedinger' => :recommended
depends_on 'fdk-aac' => :recommended
depends_on 'opus' => :recommended
depends_on 'frei0r' => :recommended
depends_on 'libcaca' => :recommended
depends_on 'qt' => :recommended
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
def install
ENV['REV'] = version.to_s
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
# For 32-bit compilation under gcc 4.2, see:
# http://trac.macports.org/ticket/20938#comment:22
if MacOS.version <= :leopard or Hardware.is_32_bit? && Hardware::CPU.intel? && ENV.compiler == :clang
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
inreplace 'cmake/admFFmpegBuild.cmake',
'${CMAKE_INSTALL_PREFIX})',
'${CMAKE_INSTALL_PREFIX} --extra-cflags=-mdynamic-no-pic)'
end
# Build the core
mkdir 'buildCore' do
args = std_cmake_args
args << "-DAVIDEMUX_SOURCE_DIR=#{buildpath}"
2014-02-25 04:26:56 +00:00
args << "-DGETTEXT_INCLUDE_DIR=#{Formula['gettext'].opt_prefix}/include"
# Todo: We could depend on SDL and then remove the `-DSDL=OFF` arguments
# but I got build errors about NSview.
args << "-DSDL=OFF"
2013-06-27 00:01:47 +00:00
if build.with? 'debug'
2013-11-12 17:50:44 +00:00
ENV.O2
2013-06-27 00:01:47 +00:00
ENV.enable_warnings
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
args << '-DCMAKE_BUILD_TYPE=Debug'
args << '-DCMAKE_VERBOSE_MAKEFILE=true'
2013-11-12 17:50:44 +00:00
unless ENV.compiler == :clang
2013-06-27 00:01:47 +00:00
args << '-DCMAKE_C_FLAGS_DEBUG=-ggdb3'
args << '-DCMAKE_CXX_FLAGS_DEBUG=-ggdb3'
end
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
end
args << '../avidemux_core'
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
system "cmake", *args
# Parallel build sometimes fails with: "ld: library not found for -lADM6avcodec"
ENV.deparallelize
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
system "make"
system "make", "install"
# There is no ENV.parallelize, so:
ENV['MAKEFLAGS'] = "-j#{ENV.make_jobs}"
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
end
# UIs: Build Qt4 and cli
interfaces = ['cli']
interfaces << 'qt4' if build.with? 'qt'
interfaces.each do |interface|
mkdir "build#{interface}" do
args = std_cmake_args
args << "-DAVIDEMUX_SOURCE_DIR=#{buildpath}"
args << "-DAVIDEMUX_LIB_DIR=#{lib}"
args << "-DSDL=OFF"
args << "../avidemux/#{interface}"
system "cmake", *args
system "make"
system "make", "install"
end
end
2013-06-27 00:01:47 +00:00
# Plugins
plugins = ['COMMON', 'CLI']
plugins << 'QT4' if build.with? 'qt'
plugins.each do |plugin|
mkdir "buildplugin#{plugin}" do
args = std_cmake_args + %W[
-DPLUGIN_UI=#{plugin}
-DAVIDEMUX_LIB_DIR=#{lib}
-DAVIDEMUX_SOURCE_DIR=#{buildpath}
]
if build.with? 'debug'
args << '-DCMAKE_BUILD_TYPE=Debug'
args << '-DCMAKE_VERBOSE_MAKEFILE=true'
2013-11-12 17:50:44 +00:00
unless ENV.compiler == :clang
args << '-DCMAKE_C_FLAGS_DEBUG=-ggdb3'
args << '-DCMAKE_CXX_FLAGS_DEBUG=-ggdb3'
end
end
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
args << "../avidemux_plugins"
system "cmake", *args
system "make"
system "make install"
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
end
end
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
# Steps from the bootStrapOsx.bash:
app = prefix/"Avidemux2.6.app/Contents"
mkdir_p app/"Resources"
mkdir_p app/"MacOS"
cp_r "./cmake/osx/Avidemux2.6", app/"MacOS/Avidemux2.6.app"
chmod 0755, app/"MacOS/Avidemux2.6.app"
2014-02-25 04:26:56 +00:00
cp_r Formula['qt'].opt_prefix/"lib/QtGui.framework/Resources/qt_menu.nib", app/"MacOS/" if build.with? 'qt'
cp "./cmake/osx/Info.plist", app
ln_s lib, app/"Resources/"
ln_s bin, app/"Resources/"
cp Dir["./cmake/osx/*.icns"], app/"Resources/"
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
end
2013-05-04 04:39:01 +00:00
def caveats
if build.with? 'qt' then <<-EOS.undent
To enable sound: In preferences, set the audio to CoreAudio instead of Dummy.
2013-05-04 04:39:01 +00:00
EOS
end
avidemux 2.5.6 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. Closes Homebrew/homebrew#8429. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-03 05:53:32 +00:00
end
end