summaryrefslogtreecommitdiff
path: root/homebrew/openscenegraph/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/openscenegraph/.make.sh-auto')
-rw-r--r--homebrew/openscenegraph/.make.sh-auto11
1 files changed, 11 insertions, 0 deletions
diff --git a/homebrew/openscenegraph/.make.sh-auto b/homebrew/openscenegraph/.make.sh-auto
new file mode 100644
index 000000000..949c652a9
--- /dev/null
+++ b/homebrew/openscenegraph/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+if MacOS.version == :sierra || MacOS.version == :el_capitan
+ENV["SDKROOT"] = MacOS.sdk_path
+end
+args = std_cmake_args + %w[-DBUILD_DOCUMENTATION=ON -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=ON -DCMAKE_DISABLE_FIND_PACKAGE_GDAL=ON -DCMAKE_DISABLE_FIND_PACKAGE_TIFF=ON -DCMAKE_DISABLE_FIND_PACKAGE_cairo=ON -DCMAKE_CXX_FLAGS=-Wno-error=narrowing -DCMAKE_OSX_ARCHITECTURES=x86_64 -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio -DOSG_WINDOWING_SYSTEM=Cocoa ]
+mkdir "build" && cd build
+cmake .. *args
+make
+make doc_openscenegraph
+make DESTDIR=${PKG_DEST} install
+doc.install Dir["#{prefix}/doc/OpenSceneGraphReferenceDocs/*"]