39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Imlib2 < Formula
|
|
homepage 'http://sourceforge.net/projects/enlightenment/files/'
|
|
url 'https://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.6/imlib2-1.4.6.tar.bz2'
|
|
sha1 '20e111d822074593e8d657ecf8aafe504e9e2967'
|
|
revision 1
|
|
|
|
bottle do
|
|
sha1 "77c484475ddf53a65a4a75a07a671614ecb18ea1" => :mavericks
|
|
sha1 "11cd0cc34575ffd2c764dc57527555fec6aa0963" => :mountain_lion
|
|
sha1 "45b3936eac39b9e4e5ef78f6383efba1492fd962" => :lion
|
|
end
|
|
|
|
option "without-x", "Build without X support"
|
|
|
|
depends_on 'freetype'
|
|
depends_on 'libpng' => :recommended
|
|
depends_on :x11 if build.with? "x"
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'jpeg' => :recommended
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--enable-amd64=no
|
|
]
|
|
args << "--without-x" if build.without? "x"
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
|
|
test do
|
|
test_png = HOMEBREW_LIBRARY/"Homebrew/test/fixtures/test.png"
|
|
system "#{bin}/imlib2_conv", test_png, "imlib2_test.png"
|
|
end
|
|
end
|