f84bcc50ab
imlib2 without x11 has missing symbols needed by other programs like feh. Add a `depends_on :x11`. Remove the deps on libpng and freetype. Works well with superenv. Fixes Homebrew/homebrew#15325 Closes Homebrew/homebrew#15390. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
798 B
Ruby
27 lines
798 B
Ruby
require 'formula'
|
|
|
|
class Imlib2 < Formula
|
|
homepage 'http://sourceforge.net/projects/enlightenment/files/'
|
|
url 'http://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.5/imlib2-1.4.5.tar.bz2'
|
|
sha1 'af86a2c38f4bc3806db57e64e74dc9814ad474a0'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'jpeg' => :recommended
|
|
depends_on :x11
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-amd64=no",
|
|
"--with-x"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
mktemp do
|
|
system "#{bin}/imlib2_conv", \
|
|
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
|
|
"imlib2_test.jpg"
|
|
end
|
|
end
|
|
end
|