7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
27 lines
747 B
Ruby
27 lines
747 B
Ruby
require 'formula'
|
|
|
|
class FfmpegPhp <Formula
|
|
homepage 'http://ffmpeg-php.sourceforge.net'
|
|
head 'http://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php'
|
|
|
|
depends_on 'ffmpeg'
|
|
|
|
def install
|
|
system "phpize"
|
|
system "./configure", "--disable-debug",
|
|
"--prefix=#{prefix}",
|
|
"--with-ffmpeg=#{HOMEBREW_PREFIX}"
|
|
system "make"
|
|
prefix.install 'modules/ffmpeg.so'
|
|
end
|
|
|
|
def caveats; <<-EOS
|
|
* Add the following line to php.ini:
|
|
extension="#{prefix}/ffmpeg.so"
|
|
* Restart your webserver.
|
|
* Write a PHP page that calls "phpinfo();"
|
|
* Load it in a browser and look for the info on the ffmpeg module.
|
|
* If you see it, you have been successful!
|
|
EOS
|
|
end
|
|
end
|