diff options
| author | Ryan Pavlik | 2011-06-16 00:23:49 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-21 20:18:51 -0700 |
| commit | d3dea6e34af5b61396b39b48c7ac56b7ba1fff54 (patch) | |
| tree | 1876748f0262f748ce80e29aa50d26fcd155be4f /Library/Formula/collada-dom.rb | |
| parent | 58709c79ce77ee8bbf6394e08b10774dd15630cb (diff) | |
| download | homebrew-d3dea6e34af5b61396b39b48c7ac56b7ba1fff54.tar.bz2 | |
collada-dom 2.3.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/collada-dom.rb')
| -rw-r--r-- | Library/Formula/collada-dom.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/collada-dom.rb b/Library/Formula/collada-dom.rb new file mode 100644 index 000000000..65c0c141f --- /dev/null +++ b/Library/Formula/collada-dom.rb @@ -0,0 +1,36 @@ +require 'formula' + +class ColladaDom < Formula + homepage 'http://www.collada.org/mediawiki/index.php/Portal:COLLADA_DOM' + url 'http://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.3/collada_dom-2.3.1-src.tgz' + md5 'a74d19c1187806a713cec90c2f0f692c' + + 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. + def patches + return DATA + end + + def install + system "cmake #{std_cmake_parameters} ." + 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") |
