avidemux: make qt option explicit
parent
73e89b5f85
commit
383e6ecd54
|
@ -28,6 +28,7 @@ class Avidemux < Formula
|
||||||
depends_on 'opencore-amr'
|
depends_on 'opencore-amr'
|
||||||
depends_on 'xvid'
|
depends_on 'xvid'
|
||||||
depends_on 'x264'
|
depends_on 'x264'
|
||||||
|
depends_on 'qt' => :optional
|
||||||
|
|
||||||
# Check if this still exists @ XCode-4.3.4 or 4.4.0. I think it's fixed then
|
# Check if this still exists @ XCode-4.3.4 or 4.4.0. I think it's fixed then
|
||||||
# by llvm in clang svn. So this will have to persist for older clang.
|
# by llvm in clang svn. So this will have to persist for older clang.
|
||||||
|
@ -141,7 +142,7 @@ class Avidemux < Formula
|
||||||
# Two dylibs that are only built as part of the Qt gui need an RPATH
|
# Two dylibs that are only built as part of the Qt gui need an RPATH
|
||||||
# set on their internal deps. Check if Qt4 exists before patching them,
|
# set on their internal deps. Check if Qt4 exists before patching them,
|
||||||
# otherwise the inreplaces will fail.
|
# otherwise the inreplaces will fail.
|
||||||
if Formula.factory('qt').linked_keg.exist?
|
if build.with? 'qt'
|
||||||
inreplace 'ADM_videoEncoder/ADM_vidEnc_xvid/qt4/cmake_install.cmake',
|
inreplace 'ADM_videoEncoder/ADM_vidEnc_xvid/qt4/cmake_install.cmake',
|
||||||
'"libADM_vidEnc_xvid.dylib"',
|
'"libADM_vidEnc_xvid.dylib"',
|
||||||
'"${CMAKE_INSTALL_PREFIX}/lib/ADM_plugins/videoEncoder/libADM_vidEnc_xvid.dylib"'
|
'"${CMAKE_INSTALL_PREFIX}/lib/ADM_plugins/videoEncoder/libADM_vidEnc_xvid.dylib"'
|
||||||
|
@ -175,13 +176,12 @@ class Avidemux < Formula
|
||||||
end # of plugbuild
|
end # of plugbuild
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<-EOS.undent
|
def caveats
|
||||||
The command line program avidemux2_cli gets installed in your PATH.
|
if build.with? 'qt' then <<-EOS.undent
|
||||||
The Qt gui is installed if you have Qt4, and its location is
|
The Qt GUI has been installed to
|
||||||
#{prefix}/avidemux2.app
|
#{opt_prefix}/avidemux2.app
|
||||||
You can double-click it in Finder or link it into ~/Applications with
|
EOS
|
||||||
brew linkapps
|
end
|
||||||
EOS
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue