aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-05-09 23:02:50 -0500
committerJack Nagel2014-05-09 23:02:50 -0500
commitebfde913065eac855b5aaae62deead5e75744a01 (patch)
tree223af8d622248dd86a3792e657d5f2ea0f7db7f7
parenta9bc7c84aa78b8d2348313815752fd8542326548 (diff)
downloadhomebrew-ebfde913065eac855b5aaae62deead5e75744a01.tar.bz2
open-mesh 3.1
-rw-r--r--Library/Formula/open-mesh.rb38
1 files changed, 9 insertions, 29 deletions
diff --git a/Library/Formula/open-mesh.rb b/Library/Formula/open-mesh.rb
index 3da6c9b9a..e3d053903 100644
--- a/Library/Formula/open-mesh.rb
+++ b/Library/Formula/open-mesh.rb
@@ -1,23 +1,18 @@
-require 'formula'
+require "formula"
class OpenMesh < Formula
- homepage 'http://openmesh.org'
- url 'http://www.openmesh.org/fileadmin/openmesh-files/2.4/OpenMesh-2.4.tar.gz'
- sha1 '5fd3f27e8c5803caf003c752de2dffc88ae4f874'
+ homepage "http://openmesh.org"
+ url "http://www.openmesh.org/media/Releases/3.1/OpenMesh-3.1.tar.gz"
+ sha1 "f73fc5a072b11028b882ce1c221602040fb23be2"
- head 'http://openmesh.org/svnrepo/OpenMesh/trunk/', :using => :svn
+ head "http://openmesh.org/svnrepo/OpenMesh/trunk/", :using => :svn
- depends_on 'cmake' => :build
- depends_on 'qt'
- depends_on 'glew'
-
- # Reported upstream and incorporated into 2.4.1 and 3:
- # http://mailman.rwth-aachen.de/pipermail/openmesh/2013-November/000948.html
- patch :DATA
+ depends_on "cmake" => :build
+ depends_on "qt"
def install
- mkdir 'openmesh-build' do
- system "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release .."
+ mkdir "build" do
+ system "cmake", "..", *std_cmake_args
system "make install"
end
end
@@ -26,18 +21,3 @@ class OpenMesh < Formula
system "#{bin}/mconvert", "-help"
end
end
-
-__END__
-diff --git a/src/OpenMesh/Tools/Utils/getopt.h b/src/OpenMesh/Tools/Utils/getopt.h
-index df0d7e0..4b5f618 100644
---- a/src/OpenMesh/Tools/Utils/getopt.h
-+++ b/src/OpenMesh/Tools/Utils/getopt.h
-@@ -20,6 +20,8 @@ OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *
- }
-
- # endif
-+#elif defined __APPLE__
-+# include <unistd.h>
- #else
- # include <getopt.h>
- #endif