blob: 3cb99c516404411f75c61616259521b2eff4d2e6 (
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
25require 'formula'
class Libev < Formula
homepage 'http://software.schmorp.de/pkg/libev.html'
url 'http://dist.schmorp.de/libev/Attic/libev-4.15.tar.gz'
sha1 '88655b1e2c0b328c9f90a6df7e72361a97fa8dc3'
bottle do
cellar :any
revision 1
sha1 "ed65bae24001a65df1be2e2aea664af1a07b1fed" => :yosemite
sha1 "76a348a71741db6ab9dd7420a7ede73b150bb0c9" require "formula"
class Seexpr < Formula
homepage "http://www.disneyanimation.com/technology/seexpr.html"
url "https://github.com/wdas/SeExpr/archive/rel-1.0.1.tar.gz"
sha1 "80890cedd684a93b012b0964dc3b59910aaf5a10"
depends_on "cmake" => :build
depends_on "libpng"
depends_on "doxygen"
# fix for macosx
# already present in HEAD so it can be removed after version 1.0.1
patch :DATA
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "doc"
system "make", "install"
end
end
test do
system bin/"asciigraph"
end
end
__END__
diff --git a/src/SeExpr/SeExprFunc.cpp b/src/SeExpr/SeExprFunc.cpp
index feb6b45..8269b39 100644
--- a/src/SeExpr/SeExprFunc.cpp
+++ b/src/SeExpr/SeExprFunc.cpp
@@ -208,7 +208,7 @@ SeExprFunc::getDocString(const char* functionName)
#ifndef SEEXPR_WIN32
-#ifdef __APPLE__
+#if defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED <= __MAC_10_7
static int MatchPluginName(struct dirent* dir)
#else
static int MatchPluginName(const struct dirent* dir)
diff --git a/src/SeExpr/SePlatform.h b/src/SeExpr/SePlatform.h
index 32a6b96..82b0f44 100644
--- a/src/SeExpr/SePlatform.h
+++ b/src/SeExpr/SePlatform.h
@@ -40,6 +40,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
@brief Platform-specific classes, functions, and includes.
*/
+#ifdef __APPLE__
+# include <Availability.h>
+#endif
+
// platform-specific includes
#if defined(_WIN32) || defined(_WINDOWS) || defined(_MSC_VER)
# ifndef WINDOWS
|