Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (28 sloc) 0.927 kB
190464d @Frizlab New Formula: gegl
Frizlab authored
1 require 'formula'
2
3 class Gegl < Formula
4 url 'ftp://ftp.gimp.org/pub/gegl/0.1/gegl-0.1.8.tar.bz2'
5 homepage 'http://www.gegl.org/'
6 md5 'c8279b86b3d584ee4f503839fc500425'
7
8 depends_on 'babl'
9 depends_on 'glib'
10 depends_on 'gettext'
11 depends_on 'pkg-config' => :build
12
13 def options
14 [
15 ["--universal", "Builds a universal binary"],
16 ]
17 end
18
19 def install
20 # ./configure breaks when optimization is enabled with llvm
21 ENV.no_optimization if ENV.compiler == :llvm
22
23 argv = ["--disable-docs", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
24 if ARGV.build_universal?
25 ENV.universal_binary
26 # ffmpeg's formula is currently not universal-enabled
27 argv << "--without-libavformat"
28
29 opoo 'Compilation may fail at gegl-cpuaccel.c using gcc for a universal build' if ENV.compiler == :gcc
30 end
31
32 system "./configure", *argv
33 system "make install"
34 end
35 end
Something went wrong with that request. Please try again.