diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/opensubdiv |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/opensubdiv')
-rw-r--r-- | media-libs/opensubdiv/Manifest | 11 | ||||
-rw-r--r-- | media-libs/opensubdiv/files/opensubdiv-3.1.0-skip-osd-regression.patch | 34 | ||||
-rw-r--r-- | media-libs/opensubdiv/files/opensubdiv-3.3.0-fix-quotes.patch | 13 | ||||
-rw-r--r-- | media-libs/opensubdiv/files/opensubdiv-3.3.0-use-gnuinstalldirs.patch | 39 | ||||
-rw-r--r-- | media-libs/opensubdiv/metadata.xml | 42 | ||||
-rw-r--r-- | media-libs/opensubdiv/opensubdiv-3.1.0.ebuild | 59 | ||||
-rw-r--r-- | media-libs/opensubdiv/opensubdiv-3.1.1.ebuild | 64 | ||||
-rw-r--r-- | media-libs/opensubdiv/opensubdiv-3.3.0.ebuild | 63 |
8 files changed, 325 insertions, 0 deletions
diff --git a/media-libs/opensubdiv/Manifest b/media-libs/opensubdiv/Manifest new file mode 100644 index 000000000000..30dbc556a211 --- /dev/null +++ b/media-libs/opensubdiv/Manifest @@ -0,0 +1,11 @@ +AUX opensubdiv-3.1.0-skip-osd-regression.patch 1104 SHA256 dd7664ad704e651756663d5c7258bcee836e5f183bf155efa8f1ccef6d202868 SHA512 8e6ec60e10209b39ad9ebb66c4c43496250bf93a0fdfc4bebb502dd71fb3ada2b685521d94fb05eab3a09f5ced9c288292a338bb7e0159c940dd379ff05f873b WHIRLPOOL b94cc3491fc6f6627198935e9cee56dbb9ace84459250f7efce5cefbd12090f2a3b0aeba1c4df5a114491e4dc34f14cb66a2441be9167d3f9f367df113d7d964 +AUX opensubdiv-3.3.0-fix-quotes.patch 432 SHA256 705368849b819202dd10fbd0624682a3a515643c0e51e1e873fddb3eefc8cb4d SHA512 89eca174bf991920f71fd278e61f04bb90d143491ec05575507013215c92bca18f0274b6084d61750a66f877d928f01f0e779d08dd3b2372d8119aecaa8b58a9 WHIRLPOOL e46733ab5c289948c8fd72bdfffd617d9d4d8770ce37df2a4211230ca401b1c437884a725cb3681e009407801f85c962befa9543f49b819218db7ff3724ff957 +AUX opensubdiv-3.3.0-use-gnuinstalldirs.patch 1133 SHA256 3db9e339391b488ba580c44ed4a22d602cfab7642661d44dc884782e05ca5e57 SHA512 4f463fbea3e94e93711888a077faa375054aae193abfbe4c600081fae43efa4adf5dc5687ceb7c59795c20ae97ec158ce4035e72dfdb0c89ee5943e41e58bdef WHIRLPOOL 95122f1918db935fff2ad19a8c89c3bd18909c9b467c4fabe07af6612395bcaf227b7121d54337326611d699935dcc528eb2250600fe874bf4d67d37fe18b196 +DIST opensubdiv-3.1.0.tar.gz 18014579 SHA256 ff3f2cdeeaa8ac4abe83394b1fea27ea3ade8258aff86da5fdfba37415485aba SHA512 9b59cb4e5b124e222b67a48986251cff91bcdc2aee9f71c4b653ad7bb089e860c5954c251a91c0004fa5c28fc4524a0dcbf51d3ae51ea86ee7665ba05d8ec97f WHIRLPOOL 0765a01209781b237df9f51717d7e14dcde57b5e00e7cfaa81e02d6fd409bb2df3bc7c95f26b5ed20bb8cbd6c2b3aaa9ad28861198c25ffd3ec3c6b699a32444 +DIST opensubdiv-3.1.1.tar.gz 18014871 SHA256 6a2043c0c8b6e85bdc34dbd6d05e6bc7504a4d01dcfb165b4abe180c50d41164 SHA512 700db7e1dde3e916011721a5b42d5e32ea4ae355ab5e3e415541d62efa2059d56d5f30cef853285e95a93f3a3b5fe24a906547a52cce94d47b101ae20021d5b5 WHIRLPOOL b36136cc88e2f68d6ddb94ad500b449fb8ea9c0104b864d873ac7fd2966ac8ee44d7f4296ad96bcb65ae9f7858f1c6a9703f6d90754bd0dd1ad27db1b9fc1628 +DIST opensubdiv-3.3.0.tar.gz 19263469 SHA256 93d364340518515129fe199c80c4030f666ff71414d9c543e1526f14b5ffc8d0 SHA512 7c17d847187d46182d08fbee9396fd8793ac04591821084d40da475c9d25560d01575282946e1a30252bba12db9ea06cbf50ff649f91adce72f6127ad6a36418 WHIRLPOOL a1915d3fff1bce076f22bdc64efc0c07c372614d6ee0b36548bad9310da7a1c9a8863a3f638e07091cef28b99c01b6d77f0a9301415044806976674f434a7195 +EBUILD opensubdiv-3.1.0.ebuild 1454 SHA256 16e7bd5f219f6a417edcbe2ba413606c09ff255dc029234042fcc46829c6c3c2 SHA512 9fe63a6ac51026f02ed987bce0c44bb046903844b839dc792c9d2dd78169b095f6e9bc5342a9ad68eecb9019072b87eb9771fae8ed118381c433a362ae320eeb WHIRLPOOL 21c1fc0f15d1ec4de5e6abc52fed004db83f5de6f1d17dd237dcfdf4ea40d04db452c05bcfc50771885490192d01274b5453e63a815e4cadb45f24eb5fbb5fbe +EBUILD opensubdiv-3.1.1.ebuild 1538 SHA256 25580947c1619227c823587340e21d7732895902bcc07b6d9238553b86eb368f SHA512 b9c18d6de41f95a953f1b43470636145cc45344acd1c8a9c1dbf9b7b4ab2525db00b930826154ca2ef56e1bf0f510b7841f718dbc692aaf170fd482d3210cc85 WHIRLPOOL 6cbcc8bb3161f063e64603b4ac863e56e94f3650fc735673e447cce0f4719b9d22c93878e4a13cc5d47c26bbe751cb30a44dd1fe1eb715389734e0a6ac720a97 +EBUILD opensubdiv-3.3.0.ebuild 1560 SHA256 aceb68c67bc3c04389fc1136a371f8c7c0e8d46ee36594e9bdc2d5ef66d7915f SHA512 63c00b3c8ad990f80922111a262f313787f997b0db8cbd30f4679a88925d93d1e0682e8f9b19920e4f7542c5b0cbf8ae363d451678bceaa296d988339d0c39d8 WHIRLPOOL fcb95cb5a11da6e8bbc0e844490b9a6cf2ee7e0fd9feb94fa7941ab6c062659b38cf07f73c2dd74386239aa880c062bb5b6e29c93940ecf4248ae3017338fc57 +MISC ChangeLog 1056 SHA256 f803ca728b91dadab338ebe18584cf6a07f651f7c1fd6b789f616278b851a625 SHA512 0285a08045bd932fe5f750a846548e61be798dca8740e6b7c08f3748702c0df0b070d6c685239906943273d0e3d561f1b7b9abd401aa62473a7f763ebae0d875 WHIRLPOOL 90bbe87aa7c894e96362151288cd965ce409dc2149e2ab6bf80c7a9969312863fcb06147b1b9fc9d79b677ca7be5fa383e8d25bfbdc00aa51aff82f6313a034a +MISC metadata.xml 1269 SHA256 12800a299d8962146b400909584792df1f180957edd9f756d997e6eff4e56e63 SHA512 ab4160141d72bf762bce23082733ce3061f3225bf3662273d3b4cce9528c0fa161bfdd7c796f1f394557a466e0818556bcbf6e44340b92813180e1a42f20f204 WHIRLPOOL e7e6049f682e593cecd3538655362309934320ed04c293dbe6b0933b12c1576532300b0e78cfc47d26904267b33b2fd827bd7cb2db250501364486bb5859b82e diff --git a/media-libs/opensubdiv/files/opensubdiv-3.1.0-skip-osd-regression.patch b/media-libs/opensubdiv/files/opensubdiv-3.1.0-skip-osd-regression.patch new file mode 100644 index 000000000000..2ebb638e3838 --- /dev/null +++ b/media-libs/opensubdiv/files/opensubdiv-3.1.0-skip-osd-regression.patch @@ -0,0 +1,34 @@ +diff -purN a/regression/CMakeLists.txt b/regression/CMakeLists.txt +--- a/regression/CMakeLists.txt 2016-03-25 22:15:29.000000000 +0000 ++++ b/regression/CMakeLists.txt 2016-06-05 14:09:19.202849569 +0100 +@@ -32,30 +32,4 @@ if (NOT NO_REGRESSION) + + add_subdirectory(far_perf) + +- if(OPENGL_FOUND AND (GLEW_FOUND OR APPLE) AND GLFW_FOUND) +- add_subdirectory(osd_regression) +- else() +- set(MISSING "") +- +- if (NOT OPENGL_FOUND) +- list(APPEND MISSING OpenGL) +- endif() +- +- if (NOT GLEW_FOUND) +- list(APPEND MISSING glew) +- endif() +- +- if (NOT GLFW_FOUND) +- list(APPEND MISSING glfw) +- endif() +- +- message(WARNING +- "The following libraries could not be found : ${MISSING}. " +- "The osd regression test will not be available. " +- "If you have these libraries installed, please specify their " +- "path to cmake (through the GLEW_LOCATION and GLFW_LOCATION " +- "command line arguments or environment variables)." +- ) +- endif() +- + endif() diff --git a/media-libs/opensubdiv/files/opensubdiv-3.3.0-fix-quotes.patch b/media-libs/opensubdiv/files/opensubdiv-3.3.0-fix-quotes.patch new file mode 100644 index 000000000000..2b5c71a37cb5 --- /dev/null +++ b/media-libs/opensubdiv/files/opensubdiv-3.3.0-fix-quotes.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e02ce90c..6d4f5342 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -48,7 +48,7 @@ endif() + string(REGEX REPLACE "^v" "" OSD_SONAME ${OSD_SONAME}) + + add_definitions( +- -DOPENSUBDIV_VERSION_STRING="${OSD_SONAME}" ++ -DOPENSUBDIV_VERSION_STRING=\\\"${OSD_SONAME}\\\" + ) + + #------------------------------------------------------------------------------- diff --git a/media-libs/opensubdiv/files/opensubdiv-3.3.0-use-gnuinstalldirs.patch b/media-libs/opensubdiv/files/opensubdiv-3.3.0-use-gnuinstalldirs.patch new file mode 100644 index 000000000000..02027763f5ca --- /dev/null +++ b/media-libs/opensubdiv/files/opensubdiv-3.3.0-use-gnuinstalldirs.patch @@ -0,0 +1,39 @@ +diff -purN a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2017-07-25 21:58:09.000000000 +0100 ++++ b/CMakeLists.txt 2017-08-15 14:51:36.771044414 +0100 +@@ -23,6 +23,7 @@ + # + + project(OpenSubdiv) ++include(GNUInstallDirs) + + cmake_minimum_required(VERSION 2.8.6) + +@@ -63,15 +64,15 @@ if (NOT DEFINED CMAKE_INSTALL_PREFIX) + endif() + + if (NOT DEFINED CMAKE_INCDIR_BASE) +- set( CMAKE_INCDIR_BASE include/opensubdiv ) ++ set( CMAKE_INCDIR_BASE ${CMAKE_INSTALL_INCLUDEDIR}/opensubdiv ) + endif() + + if (NOT DEFINED CMAKE_BINDIR_BASE) +- set( CMAKE_BINDIR_BASE bin ) ++ set( CMAKE_BINDIR_BASE ${CMAKE_INSTALL_BINDIR} ) + endif() + + if (NOT DEFINED CMAKE_LIBDIR_BASE) +- set( CMAKE_LIBDIR_BASE lib ) ++ set( CMAKE_LIBDIR_BASE ${CMAKE_INSTALL_LIBDIR} ) + endif() + + if (NOT DEFINED CMAKE_FRAMEWORKDIR_BASE) +@@ -83,7 +84,7 @@ if (NOT DEFINED CMAKE_PLUGINDIR_BASE) + endif() + + if (NOT DEFINED CMAKE_DOCDIR_BASE) +- set( CMAKE_DOCDIR_BASE share/doc/opensubdiv ) ++ set( CMAKE_DOCDIR_BASE ${CMAKE_INSTALL_DOCDIR} ) + else() + if (IS_ABSOLUTE ${CMAKE_DOCDIR_BASE}) + set( CMAKE_DOCDIR_BASE "${CMAKE_DOCDIR_BASE}" ) diff --git a/media-libs/opensubdiv/metadata.xml b/media-libs/opensubdiv/metadata.xml new file mode 100644 index 000000000000..f4db4009bdda --- /dev/null +++ b/media-libs/opensubdiv/metadata.xml @@ -0,0 +1,42 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer restrict=">=media-libs/opensubdiv-3.0.5" type="person"> + <email>j.scruggs@gmail.com</email> + <name>Jonathan Scruggs</name> + </maintainer> + <maintainer restrict=">=media-libs/opensubdiv-3.0.5" type="person"> + <email>agrigo2001@yahoo.com.au</email> + <name>Adrian Grigo</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + An Open-Source subdivision surface library. + </longdescription> + <use> + <flag name="ptex"> + Adds support for faster per-face texture mapping through + <pkg>media-libs/ptex</pkg>. + </flag> + <flag name="cuda"> + Enable NVIDIA CUDA Toolkit support through + <pkg>dev-util/nvidia-cuda-toolkit</pkg>. + </flag> + <flag name="tbb"> + Enable multithreading with the Intel Threads Building Blocks through + <pkg>dev-cpp/tbb</pkg>. + </flag> + <flag name="opencl"> + Enable OpenCL support through + <pkg>virtual/opencl</pkg>. + </flag> + <flag name="tutorials"> + </flag> + </use> + <upstream> + <remote-id type="github">PixarAnimationStudios/OpenSubdiv</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/opensubdiv/opensubdiv-3.1.0.ebuild b/media-libs/opensubdiv/opensubdiv-3.1.0.ebuild new file mode 100644 index 000000000000..d822c40cc99e --- /dev/null +++ b/media-libs/opensubdiv/opensubdiv-3.1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils toolchain-funcs versionator + +DESCRIPTION="An Open-Source subdivision surface library" +HOMEPAGE="http://graphics.pixar.com/opensubdiv/" + +MY_PV="$(replace_all_version_separators '_')" + +SRC_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +IUSE="cuda doc examples opencl openmp ptex tbb test tutorials" + +RDEPEND="media-libs/glew:= + media-libs/glfw:= + cuda? ( dev-util/nvidia-cuda-toolkit:* ) + ptex? ( media-libs/ptex )" + +DEPEND="${RDEPEND} + tbb? ( dev-cpp/tbb ) + doc? ( dev-python/docutils app-doc/doxygen )" + +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}"/OpenSubdiv-${MY_PV} + +PATCHES=( "${FILESDIR}"/${P}-skip-osd-regression.patch ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DNO_MAYA=1 + -DNO_CLEW=1 + -DNO_DOC=$(usex !doc) + -DNO_TBB=$(usex !tbb) + -DNO_PTEX=$(usex !ptex) + -DNO_OMP=$(usex !openmp) + -DNO_OPENCL=$(usex !opencl) + -DNO_CUDA=$(usex !cuda) + -DNO_REGRESSION=$(usex !test) + -DNO_EXAMPLES=$(usex !examples) + -DNO_TUTORIALS=$(usex !tutorials) + -DGLEW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + -DGLFW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + ) + + cmake-utils_src_configure +} diff --git a/media-libs/opensubdiv/opensubdiv-3.1.1.ebuild b/media-libs/opensubdiv/opensubdiv-3.1.1.ebuild new file mode 100644 index 000000000000..0003926a6d4b --- /dev/null +++ b/media-libs/opensubdiv/opensubdiv-3.1.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils toolchain-funcs versionator + +DESCRIPTION="An Open-Source subdivision surface library" +HOMEPAGE="http://graphics.pixar.com/opensubdiv/" + +MY_PV="$(replace_all_version_separators '_')" + +SRC_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +IUSE="cuda doc examples opencl openmp ptex tbb tutorials" + +RDEPEND="media-libs/glew:= + media-libs/glfw:= + cuda? ( dev-util/nvidia-cuda-toolkit:* ) + ptex? ( media-libs/ptex )" + +DEPEND="${RDEPEND} + tbb? ( dev-cpp/tbb ) + doc? ( dev-python/docutils app-doc/doxygen )" + +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}"/OpenSubdiv-${MY_PV} + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + cmake-utils_src_prepare + + sed -e 's|"${OSD_SONAME}"|${OSD_SONAME}|' \ + -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DNO_MAYA=1 + -DNO_CLEW=1 + -DNO_DOC=$(usex !doc) + -DNO_TBB=$(usex !tbb) + -DNO_PTEX=$(usex !ptex) + -DNO_OMP=$(usex !openmp) + -DNO_OPENCL=$(usex !opencl) + -DNO_CUDA=$(usex !cuda) + -DNO_REGRESSION=1 # The don't work with certain settings + -DNO_EXAMPLES=$(usex !examples) + -DNO_TUTORIALS=$(usex !tutorials) + -DGLEW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + -DGLFW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + ) + + cmake-utils_src_configure +} diff --git a/media-libs/opensubdiv/opensubdiv-3.3.0.ebuild b/media-libs/opensubdiv/opensubdiv-3.3.0.ebuild new file mode 100644 index 000000000000..b73f2a25deb5 --- /dev/null +++ b/media-libs/opensubdiv/opensubdiv-3.3.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils toolchain-funcs versionator + +MY_PV="$(replace_all_version_separators '_')" +DESCRIPTION="An Open-Source subdivision surface library" +HOMEPAGE="http://graphics.pixar.com/opensubdiv/" +SRC_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cuda doc examples opencl openmp ptex tbb tutorials" + +RDEPEND="media-libs/glew:= + media-libs/glfw:= + cuda? ( dev-util/nvidia-cuda-toolkit:* ) + ptex? ( media-libs/ptex )" + +DEPEND="${RDEPEND} + tbb? ( dev-cpp/tbb ) + doc? ( + dev-python/docutils + app-doc/doxygen + )" + +S="${WORKDIR}/OpenSubdiv-${MY_PV}" + +PATCHES=( + "${FILESDIR}/${P}-fix-quotes.patch" + "${FILESDIR}/${P}-use-gnuinstalldirs.patch" +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DNO_MAYA=1 + -DNO_CLEW=1 + -DNO_DOC=$(usex !doc) + -DNO_TBB=$(usex !tbb) + -DNO_PTEX=$(usex !ptex) + -DNO_OMP=$(usex !openmp) + -DNO_OPENCL=$(usex !opencl) + -DNO_CUDA=$(usex !cuda) + -DNO_REGRESSION=1 # They don't work with certain settings + -DNO_EXAMPLES=$(usex !examples) + -DNO_TUTORIALS=$(usex !tutorials) + -DGLEW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + -DGLFW_LOCATION="${EPREFIX}/usr/$(get_libdir)" + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" + ) + + cmake-utils_src_configure +} |