forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsbsim.rb
78 lines (66 loc) · 2.41 KB
/
jsbsim.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
71
72
73
74
75
76
77
78
class Jsbsim < Formula
desc "Open source flight dynamics model"
homepage "https://jsbsim.sourceforge.io/"
url "https://downloads.sourceforge.net/project/jsbsim/JSBSim_Source/JSBSim%20v1.0%20Release%20Candidate%202/JSBSim-1.0.rc2.tar.gz"
sha256 "04accd4efc75867edfa6eeb814ceefebf519b2e8d750518b1de0a6aafa9442e1"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "d26afc5d86e930816d2fb2e1c0d117aba24cbdee0a045c84a4806a89cce1ac27" => :el_capitan
sha256 "b2de90a1b12b98f50ba0d5ce9757d5b34615d89b7a028d1f6a4d84813e2ecf9e" => :yosemite
sha256 "5abf5c285d07246ed7ccfa021fe34ebc557f8f50e1c9d1ff99f12eb737d56ce9" => :mavericks
end
head do
url "https://git.code.sf.net/p/jsbsim/code.git"
# Note: we are removing the compilation of Aeromatic, a web-based
# configuration file generator for JSBSim. Additionally, we are removing
# a call to "feenableexcept" which is not available in Clang. We also
# remove tests since there's a test that also relies on "feenableexcept".
patch :DATA
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
def install
system "./autogen.sh", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-libraries"
system "make", "install"
bin.install "src/JSBSim"
end
test do
system "#{bin}/JSBSim"
end
end
__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f967c8..468bd34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,8 +37,6 @@ if (CYTHON_FOUND)
find_package(PythonLibs)
if (PYTHONLIBS_FOUND)
include_directories(${CMAKE_CURRENT_LIST_DIR}/src)
- enable_testing()
- add_subdirectory(tests)
endif(PYTHONLIBS_FOUND)
endif(CYTHON_FOUND)
diff --git a/src/JSBSim.cpp b/src/JSBSim.cpp
index 65cd3ed..fab3310 100644
--- a/src/JSBSim.cpp
+++ b/src/JSBSim.cpp
@@ -288,7 +288,6 @@ int main(int argc, char* argv[])
_controlfp(_controlfp(0, 0) & ~(_EM_INVALID | _EM_ZERODIVIDE | _EM_OVERFLOW),
_MCW_EM);
#elif defined(__GNUC__) && !defined(sgi)
- feenableexcept(FE_DIVBYZERO | FE_INVALID);
#endif
try {
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index bd08efb..8b13789 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -1,2 +1 @@
-add_subdirectory(aeromatic++)