homebrew-core/Formula/imlib2.rb

38 lines
1.1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Imlib2 < Formula
desc "Image loading and rendering library"
2015-11-12 02:38:27 +00:00
homepage "https://sourceforge.net/projects/enlightenment/"
url "https://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.7/imlib2-1.4.7.tar.bz2"
sha256 "35d733ce23ad7d338cff009095d37e656cb8a7a53717d53793a38320f9924701"
2010-08-03 03:34:39 +00:00
2014-07-03 12:32:21 +00:00
bottle do
2015-11-15 16:17:44 +00:00
revision 1
sha256 "bc2f73214d81c88fe174132f70347b3c2a971fef8f26cbca91e17e4765cd9c80" => :el_capitan
sha256 "44eb001751aeffc39b81a51b672fbada43f0c0b711c238882fa145e4a0daaa45" => :yosemite
sha256 "9f74024ffd21ca15fadef0213b9f79149a32125984dee6aa712605cb6e5a21df" => :mavericks
2014-07-03 12:32:21 +00:00
end
2014-11-13 18:08:07 +00:00
deprecated_option "without-x" => "without-x11"
depends_on "freetype"
depends_on "libpng" => :recommended
2014-11-13 18:08:07 +00:00
depends_on :x11 => :recommended
depends_on "pkg-config" => :build
depends_on "jpeg" => :recommended
2010-08-03 03:34:39 +00:00
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-amd64=no
]
2014-11-13 18:08:07 +00:00
args << "--without-x" if build.without? "x11"
system "./configure", *args
system "make", "install"
2010-08-03 03:34:39 +00:00
end
2013-02-02 05:12:40 +00:00
test do
system "#{bin}/imlib2_conv", test_fixtures("test.png"), "imlib2_test.png"
end
2010-08-03 03:34:39 +00:00
end