blob: b55f29267722aaa5d76113d8d218b4fb1018db11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
require 'formula'
class Devil < Formula
url 'http://downloads.sourceforge.net/project/openil/DevIL/1.7.8/DevIL-1.7.8.tar.gz'
homepage 'http://sourceforge.net/projects/openil/'
md5 '7918f215524589435e5ec2e8736d5e1d'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'little-cms'
depends_on 'jasper'
# see http://sourceforge.net/tracker/?func=detail&aid=3404133&group_id=4470&atid=104470
# also, even with -std=gnu99 removed from the configure script,
# devil fails to build with clang++ while compiling il_exr.cpp
fails_with :clang do
build 318
cause "invalid -std=gnu99 flag while building C++"
end
# fix compilation issue for iluc.c
def patches; DATA; end
def install
# devil won't find libpng without ENV.x11
ENV.x11
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--enable-ILU"
system "make install"
end
end
__END__
--- a/src-ILU/ilur/ilur.c 2009-03-08 08:10:12.000000000 +0100
+++ b/src-ILU/ilur/ilur.c 2010-09-26 20:01:45.000000000 +0200
@@ -1,6 +1,7 @@
#include <string.h>
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
+#include "sys/malloc.h"
#include <IL/il.h>
#include <IL/ilu.h>
|