aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFrizlab2011-11-28 10:15:47 +0100
committerCharlie Sharpsteen2011-11-28 16:04:08 -0800
commit190464d96517fd6c16c0ec5924479628f563c568 (patch)
tree4aeccbd177dac12b5b7030ed8800c1401bacb1fb /Library/Formula
parentd9ec85cd80b45662260466a48fae457c543533ad (diff)
downloadhomebrew-190464d96517fd6c16c0ec5924479628f563c568.tar.bz2
New Formula: gegl
Closes #6946. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gegl.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/gegl.rb b/Library/Formula/gegl.rb
new file mode 100644
index 000000000..eb18b1c38
--- /dev/null
+++ b/Library/Formula/gegl.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Gegl < Formula
+ url 'ftp://ftp.gimp.org/pub/gegl/0.1/gegl-0.1.8.tar.bz2'
+ homepage 'http://www.gegl.org/'
+ md5 'c8279b86b3d584ee4f503839fc500425'
+
+ depends_on 'babl'
+ depends_on 'glib'
+ depends_on 'gettext'
+ 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