forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enblend-enfuse.rb
70 lines (53 loc) · 1.89 KB
/
enblend-enfuse.rb
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
require 'formula'
class EnblendEnfuse < Formula
homepage 'http://enblend.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/enblend/enblend-enfuse/enblend-enfuse-4.1/enblend-enfuse-4.1.1.tar.gz'
sha1 'bc18fca3033b031d603b22678b2e680a0ffae1b6'
option 'disable-gpu', 'Build with GPU support'
depends_on :libpng
depends_on :x11 => :optional
depends_on 'boost'
depends_on 'gsl'
depends_on 'jpeg'
depends_on 'little-cms2'
depends_on 'libtiff'
depends_on 'homebrew/science/vigra'
depends_on 'openexr' => :optional
def patches
# builds against the multithreaded boost system library
DATA
end
def install
args = [ "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}" ]
args << "--without-x" unless build.with? 'x11'
if build.include? 'disable-gpu'
enable_gpu = "no"
else
enable_gpu = "yes"
end
args << "--enable-gpu-support=#{enable_gpu}"
system "./configure", *args
system "make install"
end
test do
system "#{libexec}/enblend", \
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png"
system "#{libexec}/enfuse", \
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png", \
"/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png"
end
end
__END__
diff --git a/configure.orig b/configure
index 98699f5..70e286b 100755
--- a/configure.orig
+++ b/configure
@@ -8279,7 +8279,7 @@ fi
-LIBS="-lboost_system $LIBS"
+LIBS="-lboost_system-mt $LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for new Boost system library" >&5
$as_echo_n "checking for new Boost system library... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext