aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/open-mesh.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/open-mesh.rb b/Library/Formula/open-mesh.rb
index 3819ae279..bd9246f1d 100644
--- a/Library/Formula/open-mesh.rb
+++ b/Library/Formula/open-mesh.rb
@@ -11,6 +11,10 @@ class OpenMesh < Formula
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
+ def patches; DATA; end
+
def install
mkdir 'openmesh-build' do
system "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=Release .."
@@ -22,3 +26,18 @@ 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