2011-11-28 09:15:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gegl < Formula
|
|
|
|
homepage 'http://www.gegl.org/'
|
2012-08-10 04:51:17 +00:00
|
|
|
url 'ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '764cc66cb3c7b261b8fc18a6268a0e264a91d573'
|
2011-11-28 09:15:47 +00:00
|
|
|
|
2012-08-10 04:51:17 +00:00
|
|
|
option :universal
|
|
|
|
|
2011-11-28 09:15:47 +00:00
|
|
|
depends_on 'babl'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gettext'
|
2012-05-04 12:37:35 +00:00
|
|
|
depends_on 'intltool' => :build
|
2011-11-28 09:15:47 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
# ./configure breaks when optimization is enabled with llvm
|
|
|
|
ENV.no_optimization if ENV.compiler == :llvm
|
|
|
|
|
2012-08-10 04:51:17 +00:00
|
|
|
argv = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-docs
|
|
|
|
]
|
|
|
|
if build.universal?
|
2011-11-28 09:15:47 +00:00
|
|
|
ENV.universal_binary
|
|
|
|
# ffmpeg's formula is currently not universal-enabled
|
|
|
|
argv << "--without-libavformat"
|
|
|
|
|
|
|
|
opoo 'Compilation may fail at gegl-cpuaccel.c using gcc for a universal build' if ENV.compiler == :gcc
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *argv
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|