2011-03-10 05:11:03 +00:00
|
|
|
class Imlib2 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Image loading and rendering library"
|
2015-11-12 02:38:27 +00:00
|
|
|
homepage "https://sourceforge.net/projects/enlightenment/"
|
2015-04-15 22:24:11 +00:00
|
|
|
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"
|
2012-10-13 08:08:49 +00:00
|
|
|
|
2015-04-15 22:24:11 +00:00
|
|
|
depends_on "freetype"
|
|
|
|
depends_on "libpng" => :recommended
|
2014-11-13 18:08:07 +00:00
|
|
|
depends_on :x11 => :recommended
|
2015-04-15 22:24:11 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "jpeg" => :recommended
|
2010-08-03 03:34:39 +00:00
|
|
|
|
|
|
|
def install
|
2012-10-13 08:08:49 +00:00
|
|
|
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"
|
2012-10-13 08:08:49 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-08-03 03:34:39 +00:00
|
|
|
end
|
2012-09-02 07:59:54 +00:00
|
|
|
|
2013-02-02 05:12:40 +00:00
|
|
|
test do
|
2014-10-19 06:14:32 +00:00
|
|
|
system "#{bin}/imlib2_conv", test_fixtures("test.png"), "imlib2_test.png"
|
2012-09-02 07:59:54 +00:00
|
|
|
end
|
2010-08-03 03:34:39 +00:00
|
|
|
end
|