2011-03-10 05:11:03 +00:00
|
|
|
class Ffmpegthumbnailer < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Create thumbnails for your video files"
|
2015-07-16 18:40:43 +00:00
|
|
|
homepage "https://github.com/dirkvdb/ffmpegthumbnailer"
|
|
|
|
url "https://github.com/dirkvdb/ffmpegthumbnailer/archive/2.0.10.tar.gz"
|
|
|
|
sha256 "68125d98d72347a676ab2f9bc93ddd3537ff39d6a81145e2a58a6de5d3958e4e"
|
|
|
|
|
2014-10-06 20:17:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-16 20:46:51 +00:00
|
|
|
sha256 "6140aa9ec7a7d6bcdfe29e196d4c6f49bd9f1d5fbcec2dd0f482d880796930c0" => :yosemite
|
|
|
|
sha256 "31ca101a649a39f1a2e45aacb57465ae34b80eb6b5de663d397a899a35bfa0a3" => :mavericks
|
|
|
|
sha256 "35fb2908a936f82fef0d09985648f977b35a47768d989093b5acede20e590556" => :mountain_lion
|
2014-10-06 20:17:41 +00:00
|
|
|
end
|
|
|
|
|
2015-07-16 18:40:43 +00:00
|
|
|
# Look for upstream to replace the GNU build process with CMake in the future
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "ffmpeg"
|
2010-10-31 13:56:54 +00:00
|
|
|
|
|
|
|
def install
|
2015-07-16 18:40:43 +00:00
|
|
|
system "./autogen.sh"
|
2010-10-31 13:56:54 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2011-09-20 21:59:29 +00:00
|
|
|
"--prefix=#{prefix}"
|
2015-07-16 18:40:43 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ffmpegthumbnailer", "-i", test_fixtures("test.jpg"),
|
|
|
|
"-o", "out.jpg"
|
|
|
|
assert File.exist?(testpath/"out.jpg")
|
2010-10-31 13:56:54 +00:00
|
|
|
end
|
|
|
|
end
|