2009-10-18 19:05:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Devil < Formula
|
2009-10-18 19:05:19 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/openil/'
|
2013-01-27 22:09:18 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/openil/DevIL/1.7.8/DevIL-1.7.8.tar.gz'
|
2012-08-23 05:53:33 +00:00
|
|
|
sha1 'bc27e3e830ba666a3af03548789700d10561fcb1'
|
2010-10-07 03:14:58 +00:00
|
|
|
|
2012-08-23 05:53:33 +00:00
|
|
|
depends_on :libpng
|
2010-09-26 18:31:41 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
|
2012-05-21 23:03:34 +00:00
|
|
|
# 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
|
2012-07-05 16:22:11 +00:00
|
|
|
build 421
|
2012-05-21 23:03:34 +00:00
|
|
|
cause "invalid -std=gnu99 flag while building C++"
|
|
|
|
end
|
|
|
|
|
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
|
2012-06-07 22:39:35 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-ILU",
|
|
|
|
"--enable-ILUT"
|
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>
|
|
|
|
|