2011-06-16 05:23:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class ColladaDom < Formula
|
|
|
|
homepage 'http://www.collada.org/mediawiki/index.php/Portal:COLLADA_DOM'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.4/collada-dom-2.4.0.tgz'
|
2012-12-05 22:58:48 +00:00
|
|
|
sha1 '74e28d670497abc897c06a41df7d28eea2bac836'
|
2011-06-16 05:23:49 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'boost'
|
|
|
|
|
|
|
|
# Fix build of minizip: quoting arguments to cmake's add_definitions doesn't work the way they thought it did.
|
2014-03-18 17:13:30 +00:00
|
|
|
patch :DATA
|
2011-06-16 05:23:49 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2011-06-16 05:23:49 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 72b6deb..0c7f7ce 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -100,7 +100,7 @@ endif()
|
|
|
|
|
|
|
|
if( APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
# apple doesn't have 64bit versions of file opening functions, so add them
|
|
|
|
- add_definitions("-Dfopen64=fopen -Dfseeko64=fseeko -Dfseek64=fseek -Dftell64=ftell -Dftello64=ftello")
|
|
|
|
+ add_definitions(-Dfopen64=fopen -Dfseeko64=fseeko -Dfseek64=fseek -Dftell64=ftell -Dftello64=ftello)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(COLLADA_DOM_INCLUDE_INSTALL_DIR "include/collada-dom")
|