2010-08-03 03:34:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Imlib2 < Formula
|
2010-08-03 03:34:39 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/enlightenment/files/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.6/imlib2-1.4.6.tar.bz2'
|
2014-01-16 06:50:35 +00:00
|
|
|
sha1 '20e111d822074593e8d657ecf8aafe504e9e2967'
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2010-08-03 03:34:39 +00:00
|
|
|
|
2012-10-13 15:11:53 +00:00
|
|
|
option "without-x", "Build without X support"
|
2012-10-13 08:08:49 +00:00
|
|
|
|
2014-03-23 02:51:41 +00:00
|
|
|
depends_on 'freetype'
|
|
|
|
depends_on 'libpng' => :recommended
|
2014-04-03 14:14:06 +00:00
|
|
|
depends_on :x11 if build.with? "x"
|
2010-08-03 03:34:39 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-09-02 07:59:54 +00:00
|
|
|
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-03-06 20:40:26 +00:00
|
|
|
args << "--without-x" if build.without? "x"
|
2012-10-13 08:08:49 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2010-08-03 03:34:39 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2012-09-02 07:59:54 +00:00
|
|
|
|
2013-02-02 05:12:40 +00:00
|
|
|
test do
|
2013-07-12 14:44:53 +00:00
|
|
|
system "#{bin}/imlib2_conv", "/usr/share/doc/cups/images/cups.png", "imlib2_test.png"
|
2012-09-02 07:59:54 +00:00
|
|
|
end
|
2010-08-03 03:34:39 +00:00
|
|
|
end
|