2009-10-18 19:05:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Devil <Formula
|
2010-09-26 18:31:41 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/openil/DevIL/1.7.8/DevIL-1.7.8.tar.gz'
|
2009-10-18 19:05:19 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/openil/'
|
|
|
|
md5 '7918f215524589435e5ec2e8736d5e1d'
|
2010-10-07 03:14:58 +00:00
|
|
|
|
2010-09-26 18:31:41 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libtiff'
|
2010-10-07 03:14:58 +00:00
|
|
|
depends_on 'little-cms'
|
2010-09-26 18:31:41 +00:00
|
|
|
depends_on 'jasper'
|
|
|
|
|
2010-10-07 03:14:58 +00:00
|
|
|
# fix compilation issue for iluc.c
|
|
|
|
def patches; DATA; end
|
2009-10-18 19:05:19 +00:00
|
|
|
|
|
|
|
def install
|
2010-10-07 03:14:58 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--enable-ILU"
|
2009-10-18 19:05:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2010-10-07 03:14:58 +00:00
|
|
|
|
2010-09-26 18:31:41 +00:00
|
|
|
__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>
|
|
|
|
|