diff options
| author | Bob Fanger | 2010-04-09 21:08:03 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-02 20:12:02 -0700 |
| commit | 00233f0abe4300f3fbb54859e854b9424602167a (patch) | |
| tree | 57c1b83080adc6f8545aea4b96a65a4f25cfef5e /Library/Formula/ffmpeg-php.rb | |
| parent | 0be81bafede1fdd2a47bf73df129d4a00d3bba20 (diff) | |
| download | homebrew-00233f0abe4300f3fbb54859e854b9424602167a.tar.bz2 | |
ffmpeg-php - a php extension for handling movie and audio files
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Reformatted
Diffstat (limited to 'Library/Formula/ffmpeg-php.rb')
| -rw-r--r-- | Library/Formula/ffmpeg-php.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg-php.rb b/Library/Formula/ffmpeg-php.rb new file mode 100644 index 000000000..bcb2ce37f --- /dev/null +++ b/Library/Formula/ffmpeg-php.rb @@ -0,0 +1,28 @@ +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 + <<-END_CAVEATS + * 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! + END_CAVEATS + end +end |
