aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-11-26 23:06:58 -0800
committerAdam Vandenberg2013-11-28 09:23:54 -0800
commitf6a74dd6327835ec20178ea9bec0251969f61ea9 (patch)
tree53dc617ed0b6a857166bf5f0d43d8df546319447
parentc333a5fa211357f707c065337e4ceffc1c7666ef (diff)
downloadhomebrew-f6a74dd6327835ec20178ea9bec0251969f61ea9.tar.bz2
open-mesh: fix build
Closes #24701. Closes #24484.
-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