homebrew-core/Formula/imlib2.rb

40 lines
1.2 KiB
Ruby

class Imlib2 < Formula
desc "Image loading and rendering library"
homepage "https://sourceforge.net/projects/enlightenment/"
url "https://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.10/imlib2-1.4.10.tar.bz2"
sha256 "3f698cd285cbbfc251c1d6405f249b99fafffafa5e0a5ecf0ca7ae49bbc0a272"
bottle do
sha256 "7dca8d4fdbbcf9abc2d6280bf086f5f9d20485897d75194cbb80c8a3dc9012be" => :sierra
sha256 "869d92d080f4a99fbcebf35caa675a2b3a92cb3431531589d41f5ecd12b92b01" => :el_capitan
sha256 "337b2306f391929e58e876e60151a0f1d0068b154b4b4f6b316f3fce3e660cab" => :yosemite
end
deprecated_option "without-x" => "without-x11"
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "libpng" => :recommended
depends_on "jpeg" => :recommended
depends_on "giflib" => :recommended
depends_on "libtiff" => :recommended
depends_on "libid3tag" => :optional
depends_on :x11 => :recommended
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-amd64=no
]
args << "--without-x" if build.without? "x11"
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/imlib2_conv", test_fixtures("test.png"), "imlib2_test.png"
end
end