From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/openvdb/.beer | 80 ++++++++++++++++++++++++++++++++++ homebrew/openvdb/.make.sh-auto | 9 ++++ homebrew/openvdb/_metadata/description | 1 + homebrew/openvdb/_metadata/homepage | 1 + homebrew/openvdb/_metadata/name | 1 + homebrew/openvdb/_metadata/version | 1 + homebrew/openvdb/download.sh | 1 + 7 files changed, 94 insertions(+) create mode 100644 homebrew/openvdb/.beer create mode 100644 homebrew/openvdb/.make.sh-auto create mode 100644 homebrew/openvdb/_metadata/description create mode 100644 homebrew/openvdb/_metadata/homepage create mode 100644 homebrew/openvdb/_metadata/name create mode 100644 homebrew/openvdb/_metadata/version create mode 100755 homebrew/openvdb/download.sh (limited to 'homebrew/openvdb') diff --git a/homebrew/openvdb/.beer b/homebrew/openvdb/.beer new file mode 100644 index 000000000..d1f79126b --- /dev/null +++ b/homebrew/openvdb/.beer @@ -0,0 +1,80 @@ +{ + "name": "Openvdb", + "description": "Sparse volume processing toolkit", + "url": "https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.0.0.tar.gz", + "mirror": null, + "homepage": "https://www.openvdb.org/", + "depends": [ + { + "depend": "doxygen", + "build-depend": true + }, + { + "depend": "boost", + "build-depend": false + }, + { + "depend": "c-blosc", + "build-depend": false + }, + { + "depend": "glfw", + "build-depend": false + }, + { + "depend": "ilmbase", + "build-depend": false + }, + { + "depend": "jemalloc", + "build-depend": false + }, + { + "depend": "openexr", + "build-depend": false + }, + { + "depend": "tbb", + "build-depend": false + } + ], + "resource": [ + { + "name": "test_file", + "url": "https://nexus.aswf.io/content/repositories/releases/io/aswf/openvdb/models/cube.vdb/1.0.0/cube.vdb-1.0.0.zip" + } + ], + "conflicts": [], + "patches": [], + "install": [ + "ENV.cxx11", + "args = [", + "\"DESTDIR=#{prefix}\",", + "\"BLOSC_INCL_DIR=#{Formula[\"c-blosc\"].opt_include}\",", + "\"BLOSC_LIB_DIR=#{Formula[\"c-blosc\"].opt_lib}\",", + "\"BOOST_INCL_DIR=#{Formula[\"boost\"].opt_include}\",", + "\"BOOST_LIB_DIR=#{Formula[\"boost\"].opt_lib}\",", + "\"BOOST_THREAD_LIB=-lboost_thread-mt\",", + "\"CONCURRENT_MALLOC_LIB_DIR=#{Formula[\"jemalloc\"].opt_lib}\",", + "\"CPPUNIT_INCL_DIR=\", ", + "\"CPPUNIT_LIB_DIR=\",", + "\"DOXYGEN=doxygen\",", + "\"EXR_INCL_DIR=#{Formula[\"openexr\"].opt_include}/OpenEXR\",", + "\"EXR_LIB_DIR=#{Formula[\"openexr\"].opt_lib}\",", + "\"LOG4CPLUS_INCL_DIR=\", ", + "\"LOG4CPLUS_LIB_DIR=\",", + "\"NUMPY_INCL_DIR=\",", + "\"PYTHON_VERSION=\",", + "\"TBB_INCL_DIR=#{Formula[\"tbb\"].opt_include}\",", + "\"TBB_LIB_DIR=#{Formula[\"tbb\"].opt_lib}\",", + "\"GLFW_INCL_DIR=#{Formula[\"glfw\"].opt_include}\",", + "\"GLFW_LIB_DIR=#{Formula[\"glfw\"].opt_lib}\",", + "\"GLFW_LIB=-lglfw\",", + "]", + "ENV.append_to_cflags \"-I #{buildpath}\"", + "cd \"openvdb\" do", + "system \"make\", \"install\", *args" + ], + "version": "6.0.0", + "file": "openvdb.rb" +} \ No newline at end of file diff --git a/homebrew/openvdb/.make.sh-auto b/homebrew/openvdb/.make.sh-auto new file mode 100644 index 000000000..b22b1c50c --- /dev/null +++ b/homebrew/openvdb/.make.sh-auto @@ -0,0 +1,9 @@ +pkg:setup +ENV.cxx11 +args = [ +"DESTDIR=#{prefix}", "BLOSC_INCL_DIR=#{Formula["c-blosc"].opt_include}", "BLOSC_LIB_DIR=#{Formula["c-blosc"].opt_lib}", "BOOST_INCL_DIR=#{Formula["boost"].opt_include}", "BOOST_LIB_DIR=#{Formula["boost"].opt_lib}", "BOOST_THREAD_LIB=-lboost_thread-mt", "CONCURRENT_MALLOC_LIB_DIR=#{Formula["jemalloc"].opt_lib}", "CPPUNIT_INCL_DIR=", +"CPPUNIT_LIB_DIR=", "DOXYGEN=doxygen", "EXR_INCL_DIR=#{Formula["openexr"].opt_include}/OpenEXR", "EXR_LIB_DIR=#{Formula["openexr"].opt_lib}", "LOG4CPLUS_INCL_DIR=", +"LOG4CPLUS_LIB_DIR=", "NUMPY_INCL_DIR=", "PYTHON_VERSION=", "TBB_INCL_DIR=#{Formula["tbb"].opt_include}", "TBB_LIB_DIR=#{Formula["tbb"].opt_lib}", "GLFW_INCL_DIR=#{Formula["glfw"].opt_include}", "GLFW_LIB_DIR=#{Formula["glfw"].opt_lib}", "GLFW_LIB=-lglfw", ] +ENV.append_to_cflags "-I #{buildpath}" +cd "openvdb" +make DESTDIR=${PKG_DEST} install *args diff --git a/homebrew/openvdb/_metadata/description b/homebrew/openvdb/_metadata/description new file mode 100644 index 000000000..561e7c12a --- /dev/null +++ b/homebrew/openvdb/_metadata/description @@ -0,0 +1 @@ +Sparse volume processing toolkit diff --git a/homebrew/openvdb/_metadata/homepage b/homebrew/openvdb/_metadata/homepage new file mode 100644 index 000000000..a74e666f3 --- /dev/null +++ b/homebrew/openvdb/_metadata/homepage @@ -0,0 +1 @@ +https://www.openvdb.org/ diff --git a/homebrew/openvdb/_metadata/name b/homebrew/openvdb/_metadata/name new file mode 100644 index 000000000..cc551a151 --- /dev/null +++ b/homebrew/openvdb/_metadata/name @@ -0,0 +1 @@ +Openvdb diff --git a/homebrew/openvdb/_metadata/version b/homebrew/openvdb/_metadata/version new file mode 100644 index 000000000..09b254e90 --- /dev/null +++ b/homebrew/openvdb/_metadata/version @@ -0,0 +1 @@ +6.0.0 diff --git a/homebrew/openvdb/download.sh b/homebrew/openvdb/download.sh new file mode 100755 index 000000000..1c5128a48 --- /dev/null +++ b/homebrew/openvdb/download.sh @@ -0,0 +1 @@ +wget https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.0.0.tar.gz \ No newline at end of file -- cgit v1.2.3