summaryrefslogtreecommitdiff
path: root/homebrew/openscenegraph
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/openscenegraph')
-rw-r--r--homebrew/openscenegraph/.beer87
-rw-r--r--homebrew/openscenegraph/.make.sh-auto11
-rw-r--r--homebrew/openscenegraph/_metadata/description1
-rw-r--r--homebrew/openscenegraph/_metadata/homepage1
-rw-r--r--homebrew/openscenegraph/_metadata/name1
-rw-r--r--homebrew/openscenegraph/_metadata/version1
-rwxr-xr-xhomebrew/openscenegraph/download.sh1
-rwxr-xr-xhomebrew/openscenegraph/patches.sh16
8 files changed, 119 insertions, 0 deletions
diff --git a/homebrew/openscenegraph/.beer b/homebrew/openscenegraph/.beer
new file mode 100644
index 000000000..486073f40
--- /dev/null
+++ b/homebrew/openscenegraph/.beer
@@ -0,0 +1,87 @@
+{
+ "name": "OpenSceneGraph",
+ "description": "3D graphics toolkit",
+ "url": "https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.3.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/openscenegraph/OpenSceneGraph",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "doxygen",
+ "build-depend": true
+ },
+ {
+ "depend": "graphviz",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "freetype",
+ "build-depend": false
+ },
+ {
+ "depend": "gtkglext",
+ "build-depend": false
+ },
+ {
+ "depend": "jpeg",
+ "build-depend": false
+ },
+ {
+ "depend": "sdl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/CMakeModules/FindGtkGl.cmake b/CMakeModules/FindGtkGl.cmake\n",
+ "index 321cede..6497589 100644\n",
+ "--- a/CMakeModules/FindGtkGl.cmake\n",
+ "+++ b/CMakeModules/FindGtkGl.cmake\n",
+ "@@ -10,7 +10,7 @@ IF(PKG_CONFIG_FOUND)\n",
+ " IF(WIN32)\n",
+ " PKG_CHECK_MODULES(GTKGL gtkglext-win32-1.0)\n",
+ " ELSE()\n",
+ "- PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0)\n",
+ "+ PKG_CHECK_MODULES(GTKGL gtkglext-quartz-1.0)\n",
+ " ENDIF()\n",
+ "\n",
+ " ENDIF()\n"
+ ]
+ }
+ ],
+ "install": [
+ "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\" do",
+ "system \"cmake\", \"..\", *args",
+ "system \"make\"",
+ "system \"make\", \"doc_openscenegraph\"",
+ "system \"make\", \"install\"",
+ "doc.install Dir[\"#{prefix}/doc/OpenSceneGraphReferenceDocs/*\"]"
+ ],
+ "version": "3.6.3",
+ "file": "open-scene-graph.rb"
+} \ No newline at end of file
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/*"]
diff --git a/homebrew/openscenegraph/_metadata/description b/homebrew/openscenegraph/_metadata/description
new file mode 100644
index 000000000..4d351c700
--- /dev/null
+++ b/homebrew/openscenegraph/_metadata/description
@@ -0,0 +1 @@
+3D graphics toolkit
diff --git a/homebrew/openscenegraph/_metadata/homepage b/homebrew/openscenegraph/_metadata/homepage
new file mode 100644
index 000000000..ffb548673
--- /dev/null
+++ b/homebrew/openscenegraph/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/openscenegraph/OpenSceneGraph
diff --git a/homebrew/openscenegraph/_metadata/name b/homebrew/openscenegraph/_metadata/name
new file mode 100644
index 000000000..d2d73aa03
--- /dev/null
+++ b/homebrew/openscenegraph/_metadata/name
@@ -0,0 +1 @@
+OpenSceneGraph
diff --git a/homebrew/openscenegraph/_metadata/version b/homebrew/openscenegraph/_metadata/version
new file mode 100644
index 000000000..4a788a01d
--- /dev/null
+++ b/homebrew/openscenegraph/_metadata/version
@@ -0,0 +1 @@
+3.6.3
diff --git a/homebrew/openscenegraph/download.sh b/homebrew/openscenegraph/download.sh
new file mode 100755
index 000000000..b721e9bdb
--- /dev/null
+++ b/homebrew/openscenegraph/download.sh
@@ -0,0 +1 @@
+wget https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.3.tar.gz \ No newline at end of file
diff --git a/homebrew/openscenegraph/patches.sh b/homebrew/openscenegraph/patches.sh
new file mode 100755
index 000000000..8c95e1bfb
--- /dev/null
+++ b/homebrew/openscenegraph/patches.sh
@@ -0,0 +1,16 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/CMakeModules/FindGtkGl.cmake b/CMakeModules/FindGtkGl.cmake
+index 321cede..6497589 100644
+--- a/CMakeModules/FindGtkGl.cmake
++++ b/CMakeModules/FindGtkGl.cmake
+@@ -10,7 +10,7 @@ IF(PKG_CONFIG_FOUND)
+ IF(WIN32)
+ PKG_CHECK_MODULES(GTKGL gtkglext-win32-1.0)
+ ELSE()
+- PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0)
++ PKG_CHECK_MODULES(GTKGL gtkglext-quartz-1.0)
+ ENDIF()
+
+ ENDIF()
+EOF