2011-11-28 09:15:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gegl < Formula
|
2012-04-14 00:04:09 +00:00
|
|
|
url 'ftp://ftp.gimp.org/pub/gegl/0.2/gegl-0.2.0.tar.bz2'
|
2011-11-28 09:15:47 +00:00
|
|
|
homepage 'http://www.gegl.org/'
|
2012-04-14 00:04:09 +00:00
|
|
|
md5 '32b00002f1f1e316115c4ed922e1dec8'
|
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 options
|
|
|
|
[
|
|
|
|
["--universal", "Builds a universal binary"],
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
# ./configure breaks when optimization is enabled with llvm
|
|
|
|
ENV.no_optimization if ENV.compiler == :llvm
|
|
|
|
|
|
|
|
argv = ["--disable-docs", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
|
|
|
|
if ARGV.build_universal?
|
|
|
|
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
|