2010-04-09 19:08:03 +00:00
|
|
|
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"
|
2010-04-07 05:58:35 +00:00
|
|
|
prefix.install 'modules/ffmpeg.so'
|
2010-04-09 19:08:03 +00:00
|
|
|
end
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def caveats; <<-EOS
|
2010-04-09 19:08:03 +00:00
|
|
|
* 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!
|
2010-04-07 05:58:35 +00:00
|
|
|
EOS
|
2010-04-09 19:08:03 +00:00
|
|
|
end
|
|
|
|
end
|