diff options
Diffstat (limited to 'homebrew/opensubdiv')
-rw-r--r-- | homebrew/opensubdiv/.beer | 42 | ||||
-rw-r--r-- | homebrew/opensubdiv/.make.sh-auto | 9 | ||||
-rw-r--r-- | homebrew/opensubdiv/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/opensubdiv/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/opensubdiv/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/opensubdiv/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/opensubdiv/download.sh | 1 |
7 files changed, 56 insertions, 0 deletions
diff --git a/homebrew/opensubdiv/.beer b/homebrew/opensubdiv/.beer new file mode 100644 index 000000000..f30117bee --- /dev/null +++ b/homebrew/opensubdiv/.beer @@ -0,0 +1,42 @@ +{ + "name": "Opensubdiv", + "description": "Open-source subdivision surface library", + "url": "https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_3_3.tar.gz", + "mirror": null, + "homepage": "https://graphics.pixar.com/opensubdiv/docs/intro.html", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "glfw", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "glfw = Formula[\"glfw\"]", + "args = std_cmake_args + %W[", + "-DNO_CLEW=1", + "-DNO_CUDA=1", + "-DNO_DOC=1", + "-DNO_EXAMPLES=1", + "-DNO_OMP=1", + "-DNO_OPENCL=1", + "-DNO_PTEX=1", + "-DNO_TBB=1", + "-DGLFW_LOCATION=#{glfw.opt_prefix}", + "]", + "mkdir \"build\" do", + "system \"cmake\", \"..\", *args", + "system \"make\"", + "system \"make\", \"install\"", + "pkgshare.install bin/\"tutorials/hbr_tutorial_0\"", + "rm_rf \"#{bin}/tutorials\"" + ], + "version": "3_3_3", + "file": "opensubdiv.rb" +}
\ No newline at end of file diff --git a/homebrew/opensubdiv/.make.sh-auto b/homebrew/opensubdiv/.make.sh-auto new file mode 100644 index 000000000..35fcf59c2 --- /dev/null +++ b/homebrew/opensubdiv/.make.sh-auto @@ -0,0 +1,9 @@ +pkg:setup +glfw = Formula["glfw"] +args = std_cmake_args + %W[-DNO_CLEW=1 -DNO_CUDA=1 -DNO_DOC=1 -DNO_EXAMPLES=1 -DNO_OMP=1 -DNO_OPENCL=1 -DNO_PTEX=1 -DNO_TBB=1 -DGLFW_LOCATION=#{glfw.opt_prefix} ] +mkdir "build" && cd build +cmake .. *args +make +make DESTDIR=${PKG_DEST} install +pkgshare.install bin/"tutorials/hbr_tutorial_0" +rm_rf "#{bin}/tutorials" diff --git a/homebrew/opensubdiv/_metadata/description b/homebrew/opensubdiv/_metadata/description new file mode 100644 index 000000000..d97a90e96 --- /dev/null +++ b/homebrew/opensubdiv/_metadata/description @@ -0,0 +1 @@ +Open-source subdivision surface library diff --git a/homebrew/opensubdiv/_metadata/homepage b/homebrew/opensubdiv/_metadata/homepage new file mode 100644 index 000000000..e71857ca1 --- /dev/null +++ b/homebrew/opensubdiv/_metadata/homepage @@ -0,0 +1 @@ +https://graphics.pixar.com/opensubdiv/docs/intro.html diff --git a/homebrew/opensubdiv/_metadata/name b/homebrew/opensubdiv/_metadata/name new file mode 100644 index 000000000..60a8f929a --- /dev/null +++ b/homebrew/opensubdiv/_metadata/name @@ -0,0 +1 @@ +Opensubdiv diff --git a/homebrew/opensubdiv/_metadata/version b/homebrew/opensubdiv/_metadata/version new file mode 100644 index 000000000..8c1e74b7a --- /dev/null +++ b/homebrew/opensubdiv/_metadata/version @@ -0,0 +1 @@ +3_3_3 diff --git a/homebrew/opensubdiv/download.sh b/homebrew/opensubdiv/download.sh new file mode 100755 index 000000000..efeb2de88 --- /dev/null +++ b/homebrew/opensubdiv/download.sh @@ -0,0 +1 @@ +wget https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_3_3.tar.gz
\ No newline at end of file |