From nobody Tue Apr 2 07:59:17 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V80df1V8yz5GPB5; Tue, 2 Apr 2024 07:59:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V80df0xnlz4Mkn; Tue, 2 Apr 2024 07:59:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712044758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DOiLFnIHefi6jlSG3UVNMitd/oacSef5ZSaTZhpoirM=; b=vrChhLKZp5Soi5r/EQXJF06SpeMS6n6QIeNaHhnVtNSeVAq84Ok6yxvdP5cpyApD/2Lu3O ATXaeH87XmzaofHU4sFZ/JfOEt6GK/k8pFQ6bRuqRdN5KLffKjaLlFLenV2tpXi3f3MH4p F8m47lrcjShAD44dx+FeyNB9EPafHdGNQ//2izM3IJRIfAR3hgQwqzKAnoxSl2QgrBN410 42MX3RS33jNVSgYPkjGBIt0s4i8VFCcb7YAtxhc4iVjTFezN5KQ+vSjlLy7n8rxUeDWpWF bgbR3TzFUt7BfQyavXDpuFJMSyJG3ApzJzuEGv5f9CVfUqZgdZPZRqqND1QVuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712044758; a=rsa-sha256; cv=none; b=bIrz+F4ChRmGuE7tVCYBm4kGOP1HghY9VRZpUwuRbKPgtZ3hU2x4hH1uuFKKbUkwMyHSSG M+ifjJo79P7diHjNFqUtpBwBqmCfE8EtE5PTlM4kvHhO+nvvb5lxI1EzLJECaV8yA3KLss ZMz+oO65l8MwLhwvGx7c7eKu8A+SkhauxB0Upi7y/wJpxYFCMdjBNjGnKKh77FIA61UY4D WGtH7FHnMvAnJwbQfn7wvXMTdasBhJ3ogScHYjyS2kgaI1a7IdFvidj1YUs2pALYWN7UW2 QKrRHScVz3Y1s3xFU83XTAUAUPFEmSouvKRgUU0izcgOigXn2Iqnj2DwlXjGJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712044758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DOiLFnIHefi6jlSG3UVNMitd/oacSef5ZSaTZhpoirM=; b=uxiXylFw0/LjbDSwZzmuSa3vQ7o0yp1pzJw3gIGxkKpMAokZLRNsRCvsNY1pHmphDAPN9I AXOPqro/hORRD/1so5O2OUijIYCa8fmjb/PVwWU2MF2JUMYBr08sAiPYj6GFMcMYlAAGWE 06ZHpnDBWvbZHjFR/WY6OMZJGH7rKRqPZ8PH+FI9nEaW5LihgAfanFxAvf0rmYTMnG3hxD YeRlQe+Q5oXczINEMMyK17r7IgrutHgQ4YcC0FaPQ1OoA6EUEcYwzZ6+7EE/OjIddjZ/vT cfWqMpbItemPENyUFwec8JdTWK/s248AAOypXJ6mcJf+pMd+9cpN9BFleqYZmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V80df0QDszgtX; Tue, 2 Apr 2024 07:59:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4327xHBn011851; Tue, 2 Apr 2024 07:59:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4327xHXs011848; Tue, 2 Apr 2024 07:59:17 GMT (envelope-from git) Date: Tue, 2 Apr 2024 07:59:17 GMT Message-Id: <202404020759.4327xHXs011848@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: d1127d06572f - main - misc/{,py-}openvdb: update 10.0.1 =?utf-8?Q?=E2=86=92?= 11.0.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d1127d06572f3e66c87ba3be845f4b48dc4191fc Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d1127d06572f3e66c87ba3be845f4b48dc4191fc commit d1127d06572f3e66c87ba3be845f4b48dc4191fc Author: Yuri Victorovich AuthorDate: 2024-04-02 06:36:32 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-02 07:59:08 +0000 misc/{,py-}openvdb: update 10.0.1 → 11.0.0 --- cad/PrusaSlicer/Makefile | 1 + graphics/blender/Makefile | 2 +- graphics/openimageio/Makefile | 2 +- graphics/openvkl/Makefile | 2 +- math/curv/Makefile | 2 +- misc/openvdb/Makefile | 7 +- misc/openvdb/distinfo | 6 +- misc/openvdb/files/patch-cmake_FindIlmBase.cmake | 143 ----------------------- misc/openvdb/pkg-plist | 17 ++- misc/py-openvdb/Makefile | 22 ++-- misc/py-openvdb/distinfo | 6 +- misc/py-openvdb/files/example.py | 33 ++++++ science/opensph/Makefile | 6 +- 13 files changed, 77 insertions(+), 172 deletions(-) diff --git a/cad/PrusaSlicer/Makefile b/cad/PrusaSlicer/Makefile index 69134e102637..f0248716a9e2 100644 --- a/cad/PrusaSlicer/Makefile +++ b/cad/PrusaSlicer/Makefile @@ -1,6 +1,7 @@ PORTNAME= PrusaSlicer DISTVERSIONPREFIX=version_ DISTVERSION= 2.7.2 +PORTREVISION= 1 CATEGORIES= cad DIST_SUBDIR= PrusaSlicer diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index 8a2577e5e206..919f1dc89af7 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -1,6 +1,6 @@ PORTNAME= blender DISTVERSION= 3.6.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics multimedia MASTER_SITES= http://download.blender.org/source/ \ http://mirror.cs.umn.edu/blender.org/source/ \ diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile index 2da92211d421..61970bccf156 100644 --- a/graphics/openimageio/Makefile +++ b/graphics/openimageio/Makefile @@ -5,7 +5,7 @@ DISTVERSION= 2.4.13.0 # py-openimageio's PORTREVISION. # Also, just to be on the safe side, when resetting, # best keep PORTREVISION?= 0. -PORTREVISION?= 7 +PORTREVISION?= 8 CATEGORIES?= graphics multimedia MAINTAINER?= FreeBSD@Shaneware.biz diff --git a/graphics/openvkl/Makefile b/graphics/openvkl/Makefile index 436f5cef033b..5791751b26f0 100644 --- a/graphics/openvkl/Makefile +++ b/graphics/openvkl/Makefile @@ -1,7 +1,7 @@ PORTNAME= openvkl DISTVERSIONPREFIX= v DISTVERSION= 1.3.0 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= graphics devel MAINTAINER= yuri@FreeBSD.org diff --git a/math/curv/Makefile b/math/curv/Makefile index 3fbf84acdf38..6df8cab01e01 100644 --- a/math/curv/Makefile +++ b/math/curv/Makefile @@ -1,6 +1,6 @@ PORTNAME= curv DISTVERSION= 0.5 -PORTREVISION= 20 +PORTREVISION= 21 CATEGORIES= math lang graphics MAINTAINER= yuri@FreeBSD.org diff --git a/misc/openvdb/Makefile b/misc/openvdb/Makefile index 395ac217ff00..1efb2a77dee2 100644 --- a/misc/openvdb/Makefile +++ b/misc/openvdb/Makefile @@ -1,7 +1,6 @@ PORTNAME= openvdb DISTVERSIONPREFIX= v -DISTVERSION= 10.0.1 -PORTREVISION= 12 +DISTVERSION= 11.0.0 CATEGORIES= misc MAINTAINER= yuri@FreeBSD.org @@ -41,10 +40,6 @@ TOOLS_LIB_DEPENDS= libglfw.so:graphics/glfw \ TOOLS_USES= gl xorg TOOLS_USE= GL=gl,glu XORG=ice,sm,x11,xcursor,xext,xi,xinerama,xrandr,xxf86vm -xpost-patch: # extra fix for OneTBB - @cd ${WRKSRC}/openvdb/openvdb && \ - ${MKDIR} thread - # DOCS is broken: https://github.com/AcademySoftwareFoundation/openvdb/issues/899 #DOCS_CMAKE_BOOL= OPENVDB_BUILD_DOCS #DOCS_BUILD_DEPENDS= doxygen:devel/doxygen diff --git a/misc/openvdb/distinfo b/misc/openvdb/distinfo index d62d5a19384c..0194bfb98993 100644 --- a/misc/openvdb/distinfo +++ b/misc/openvdb/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1669923457 -SHA256 (AcademySoftwareFoundation-openvdb-v10.0.1_GH0.tar.gz) = 887a3391fbd96b20c77914f4fb3ab4b33d26e5fc479aa036d395def5523c622f -SIZE (AcademySoftwareFoundation-openvdb-v10.0.1_GH0.tar.gz) = 3461352 +TIMESTAMP = 1712016698 +SHA256 (AcademySoftwareFoundation-openvdb-v11.0.0_GH0.tar.gz) = 6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74 +SIZE (AcademySoftwareFoundation-openvdb-v11.0.0_GH0.tar.gz) = 4620858 diff --git a/misc/openvdb/files/patch-cmake_FindIlmBase.cmake b/misc/openvdb/files/patch-cmake_FindIlmBase.cmake deleted file mode 100644 index a2a4d179b946..000000000000 --- a/misc/openvdb/files/patch-cmake_FindIlmBase.cmake +++ /dev/null @@ -1,143 +0,0 @@ ---- cmake/FindIlmBase.cmake.orig 2021-06-11 21:38:41 UTC -+++ cmake/FindIlmBase.cmake -@@ -10,7 +10,7 @@ Find IlmBase include dirs and libraries - - Use this module by invoking find_package with the form:: - -- find_package(IlmBase -+ find_package(Imath - [version] [EXACT] # Minimum or EXACT version - [REQUIRED] # Fail with error if IlmBase is not found - [COMPONENTS ...] # IlmBase libraries by their canonical name -@@ -36,11 +36,11 @@ Result Variables - - This will define the following variables: - --``IlmBase_FOUND`` -- True if the system has the IlmBase library. -+``Imath_FOUND`` -+ True if the system has the Imath library. - ``IlmBase_VERSION`` - The version of the IlmBase library which was found. --``IlmBase_INCLUDE_DIRS`` -+``S`` - Include directories needed to use IlmBase. - ``IlmBase_RELEASE_LIBRARIES`` - Libraries needed to link to the release version of IlmBase. -@@ -65,7 +65,7 @@ Cache Variables - - The following cache variables may also be set: - --``IlmBase_INCLUDE_DIR`` -+```` - The directory containing ``IlmBase/config-auto.h``. - ``IlmBase_{COMPONENT}_LIBRARY`` - Individual component libraries for IlmBase. may include target_link_libraries() debug/optimized keywords. -@@ -102,7 +102,7 @@ include(GNUInstallDirs) - - - mark_as_advanced( -- IlmBase_INCLUDE_DIR -+ - IlmBase_LIBRARY - ) - -@@ -112,10 +112,6 @@ if(DISABLE_CMAKE_SEARCH_PATHS) - endif() - - set(_ILMBASE_COMPONENT_LIST -- Half -- Iex -- IexMath -- IlmThread - Imath - ) - -@@ -177,15 +173,15 @@ list(APPEND _ILMBASE_INCLUDE_SEARCH_DIRS - ) - - # Look for a standard IlmBase header file. --find_path(IlmBase_INCLUDE_DIR IlmBaseConfig.h -+find_path( IlmBaseConfig.h - ${_FIND_ILMBASE_ADDITIONAL_OPTIONS} - PATHS ${_ILMBASE_INCLUDE_SEARCH_DIRS} - PATH_SUFFIXES ${CMAKE_INSTALL_INCLUDEDIR}/OpenEXR include/OpenEXR OpenEXR - ) - --if(EXISTS "${IlmBase_INCLUDE_DIR}/IlmBaseConfig.h") -+if(EXISTS "${}/IlmBaseConfig.h") - # Get the ILMBASE version information from the config header -- file(STRINGS "${IlmBase_INCLUDE_DIR}/IlmBaseConfig.h" -+ file(STRINGS "${}/IlmBaseConfig.h" - _ilmbase_version_major_string REGEX "#define ILMBASE_VERSION_MAJOR " - ) - string(REGEX REPLACE "#define ILMBASE_VERSION_MAJOR" "" -@@ -193,7 +189,7 @@ if(EXISTS "${IlmBase_INCLUDE_DIR}/IlmBaseConfig.h") - ) - string(STRIP "${_ilmbase_version_major_string}" IlmBase_VERSION_MAJOR) - -- file(STRINGS "${IlmBase_INCLUDE_DIR}/IlmBaseConfig.h" -+ file(STRINGS "${}/IlmBaseConfig.h" - _ilmbase_version_minor_string REGEX "#define ILMBASE_VERSION_MINOR " - ) - string(REGEX REPLACE "#define ILMBASE_VERSION_MINOR" "" -@@ -324,16 +320,16 @@ endforeach() - # ------------------------------------------------------------------------ - - include(FindPackageHandleStandardArgs) --find_package_handle_standard_args(IlmBase -- FOUND_VAR IlmBase_FOUND -+find_package_handle_standard_args(Imath -+ FOUND_VAR Imath_FOUND - REQUIRED_VARS -- IlmBase_INCLUDE_DIR -- IlmBase_LIB_COMPONENTS -- VERSION_VAR IlmBase_VERSION -+# IlmBase_INCLUDE_DIR -+ Imath_LIB_COMPONENTS -+ VERSION_VAR Imath_VERSION - HANDLE_COMPONENTS - ) - --if(NOT IlmBase_FOUND) -+if(NOT Imath_FOUND) - if(IlmBase_FIND_REQUIRED) - message(FATAL_ERROR "Unable to find IlmBase") - endif() -@@ -348,8 +344,8 @@ set(IlmBase_DEBUG_LIBRARIES "") - set(IlmBase_DEBUG_LIBRARY_DIRS "") - foreach(LIB ${IlmBase_LIB_COMPONENTS_RELEASE}) - get_filename_component(_ILM_LIBDIR ${LIB} DIRECTORY) -- list(APPEND IlmBase_RELEASE_LIBRARIES ${LIB}) -- list(APPEND IlmBase_RELEASE_LIBRARY_DIRS ${_ILM_LIBDIR}) -+ list(APPEND Imath_RELEASE_LIBRARIES ${LIB}) -+ list(APPEND Imath_RELEASE_LIBRARY_DIRS ${_ILM_LIBDIR}) - endforeach() - - foreach(LIB ${IlmBase_LIB_COMPONENTS_DEBUG}) -@@ -377,12 +373,12 @@ set(IlmBase_LIBRARY_DIRS ${IlmBase_RELEASE_LIBRARY_DIR - - set(_IlmBase_Parent_Dir "") - get_filename_component(_IlmBase_Parent_Dir -- ${IlmBase_INCLUDE_DIR}/../ ABSOLUTE) -+ ${}/../ ABSOLUTE) - --set(IlmBase_INCLUDE_DIRS) --list(APPEND IlmBase_INCLUDE_DIRS -+set(S) -+list(APPEND S - ${_IlmBase_Parent_Dir} -- ${IlmBase_INCLUDE_DIR} -+ ${} - ) - unset(_IlmBase_Parent_Dir) - -@@ -419,7 +415,7 @@ foreach(COMPONENT ${IlmBase_FIND_COMPONENTS}) - set_target_properties(IlmBase::${COMPONENT} PROPERTIES - INTERFACE_COMPILE_OPTIONS "${PC_IlmBase_CFLAGS_OTHER}" - INTERFACE_COMPILE_DEFINITIONS "${IlmBase_${COMPONENT}_DEFINITIONS}" -- INTERFACE_INCLUDE_DIRECTORIES "${IlmBase_INCLUDE_DIRS}") -+ INTERFACE_INCLUDE_DIRECTORIES "${S}") - - # Standard location - set_target_properties(IlmBase::${COMPONENT} PROPERTIES diff --git a/misc/openvdb/pkg-plist b/misc/openvdb/pkg-plist index aa709464ed6f..7fea0e0bbed7 100644 --- a/misc/openvdb/pkg-plist +++ b/misc/openvdb/pkg-plist @@ -25,7 +25,6 @@ include/openvdb/math/Coord.h include/openvdb/math/DDA.h include/openvdb/math/FiniteDifference.h include/openvdb/math/Half.h -include/openvdb/math/HalfLimits.h include/openvdb/math/LegacyFrustum.h include/openvdb/math/Maps.h include/openvdb/math/Mat.h @@ -68,9 +67,20 @@ include/openvdb/points/PointScatter.h include/openvdb/points/PointStatistics.h include/openvdb/points/PointTransfer.h include/openvdb/points/StreamCompression.h +include/openvdb/points/impl/PointAttributeImpl.h +include/openvdb/points/impl/PointConversionImpl.h +include/openvdb/points/impl/PointCountImpl.h +include/openvdb/points/impl/PointDeleteImpl.h +include/openvdb/points/impl/PointGroupImpl.h +include/openvdb/points/impl/PointMaskImpl.h +include/openvdb/points/impl/PointMoveImpl.h include/openvdb/points/impl/PointRasterizeFrustumImpl.h include/openvdb/points/impl/PointRasterizeSDFImpl.h include/openvdb/points/impl/PointRasterizeTrilinearImpl.h +include/openvdb/points/impl/PointReplicateImpl.h +include/openvdb/points/impl/PointSampleImpl.h +include/openvdb/points/impl/PointScatterImpl.h +include/openvdb/points/impl/PointStatisticsImpl.h include/openvdb/thread/Threading.h include/openvdb/tools/Activate.h include/openvdb/tools/ChangeBackground.h @@ -148,7 +158,6 @@ include/openvdb/util/Util.h include/openvdb/util/logging.h include/openvdb/version.h lib/cmake/OpenVDB/FindBlosc.cmake -lib/cmake/OpenVDB/FindIlmBase.cmake lib/cmake/OpenVDB/FindJemalloc.cmake lib/cmake/OpenVDB/FindLog4cplus.cmake lib/cmake/OpenVDB/FindOpenEXR.cmake @@ -159,5 +168,5 @@ lib/cmake/OpenVDB/OpenVDBHoudiniSetup.cmake lib/cmake/OpenVDB/OpenVDBMayaSetup.cmake lib/cmake/OpenVDB/OpenVDBUtils.cmake lib/libopenvdb.so -lib/libopenvdb.so.10.0 -lib/libopenvdb.so.10.0.1 +lib/libopenvdb.so.11.0 +lib/libopenvdb.so.11.0.0 diff --git a/misc/py-openvdb/Makefile b/misc/py-openvdb/Makefile index 9db78f6bc7ac..c48bd7a0b801 100644 --- a/misc/py-openvdb/Makefile +++ b/misc/py-openvdb/Makefile @@ -1,7 +1,6 @@ PORTNAME= openvdb DISTVERSIONPREFIX= v -DISTVERSION= 10.0.1 -PORTREVISION= 2 +DISTVERSION= 11.0.0 CATEGORIES= misc PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,16 +11,16 @@ WWW= https://www.openvdb.org/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/../../../LICENSE -BUILD_DEPENDS= ${PYNUMPY} -LIB_DEPENDS= ${PY_BOOST} \ - libboost_iostreams.so:devel/boost-libs \ +BUILD_DEPENDS= pybind11>0:devel/pybind11 \ + ${PYNUMPY} +LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \ libopenvdb.so:misc/openvdb \ libtbb.so:devel/onetbb RUN_DEPENDS= ${PYNUMPY} USES= cmake compiler:c++17-lang localbase:ldflags python USE_LDCONFIG= yes -USE_PYTHON= flavors +USE_PYTHON= flavors pytest USE_GITHUB= yes GH_ACCOUNT= AcademySoftwareFoundation @@ -32,7 +31,14 @@ CMAKE_ARGS= -DPython_EXECUTABLE=${PYTHON_CMD} WRKSRC_SUBDIR= openvdb/openvdb/python -PLIST_FILES= include/openvdb/python/pyopenvdb.h \ - ${PYTHON_SITELIBDIR}/pyopenvdb.so +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +PLIST_FILES= ${PYTHON_SITELIBDIR}/pyopenvdb${PYTHON_EXT_SUFFIX}.so + +do-test: # run an example, since the supplied test appears to be only for Windows + @cd ${WRKSRC} && \ + ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/example.py && \ + [ -f ${WRKSRC}/mygrids.vdb ] && \ + ${ECHO} "Test has succeeded." .include diff --git a/misc/py-openvdb/distinfo b/misc/py-openvdb/distinfo index 371452773ec2..a13ad98f22cf 100644 --- a/misc/py-openvdb/distinfo +++ b/misc/py-openvdb/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1687582442 -SHA256 (AcademySoftwareFoundation-openvdb-v10.0.1_GH0.tar.gz) = 887a3391fbd96b20c77914f4fb3ab4b33d26e5fc479aa036d395def5523c622f -SIZE (AcademySoftwareFoundation-openvdb-v10.0.1_GH0.tar.gz) = 3461352 +TIMESTAMP = 1712017184 +SHA256 (AcademySoftwareFoundation-openvdb-v11.0.0_GH0.tar.gz) = 6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74 +SIZE (AcademySoftwareFoundation-openvdb-v11.0.0_GH0.tar.gz) = 4620858 diff --git a/misc/py-openvdb/files/example.py b/misc/py-openvdb/files/example.py new file mode 100644 index 000000000000..7535f81dfb90 --- /dev/null +++ b/misc/py-openvdb/files/example.py @@ -0,0 +1,33 @@ +# example from https://www.openvdb.org/documentation/doxygen/python.html + +import pyopenvdb as vdb + +# A grid comprises a sparse tree representation of voxel data, +# user-supplied metadata and a voxel space to world space transform, +# which defaults to the identity transform. +# A FloatGrid stores one single-precision floating point value per voxel. +# Other grid types include BoolGrid and Vec3SGrid. The module-level +# attribute pyopenvdb.GridTypes gives the complete list. +cube = vdb.FloatGrid() +cube.fill(min=(100, 100, 100), max=(199, 199, 199), value=1.0) + +# Name the grid "cube". +cube.name = 'cube' + +# Populate another FloatGrid with a sparse, narrow-band level set +# representation of a sphere with radius 50 voxels, located at +# (1.5, 2, 3) in index space. +sphere = vdb.createLevelSetSphere(radius=50, center=(1.5, 2, 3)) + +# Associate some metadata with the grid. +sphere['radius'] = 50.0 + +# Associate a scaling transform with the grid that sets the voxel size +# to 0.5 units in world space. +sphere.transform = vdb.createLinearTransform(voxelSize=0.5) + +# Name the grid "sphere". +sphere.name = 'sphere' + +# Write both grids to a VDB file. +vdb.write('mygrids.vdb', grids=[cube, sphere]) diff --git a/science/opensph/Makefile b/science/opensph/Makefile index 3e3d17663730..f6c30980ade8 100644 --- a/science/opensph/Makefile +++ b/science/opensph/Makefile @@ -1,5 +1,6 @@ PORTNAME= OpenSPH DISTVERSION= 0.4.1 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org @@ -14,7 +15,7 @@ ONLY_FOR_ARCHS_REASON= unconditional use of -msse4.1 and inclusion of immintrin. TEST_DEPENDS= catch>0:devel/catch -USES= compiler:c++14-lang qmake qt:5 +USES= compiler:c++17-lang qmake qt:5 USE_GITLAB= yes USE_WX= 3.2 @@ -61,6 +62,9 @@ VDB_LIB_DEPENDS= libImath.so:math/Imath \ libopenvdb.so:misc/openvdb \ libtbb.so:devel/onetbb +post-patch: # workaround for https://gitlab.com/sevecekp/sph/-/issues/48 + @${FIND} ${WRKSRC} -name "*.pro" | ${XARGS} ${REINPLACE_CMD} -e 's|c++14|c++17|' + do-test: @${REINPLACE_CMD} -e 's|Path(.*|Path("${TEST_WRKSRC}");|' ${WRKSRC}/test/utils/Config.h @${MKDIR} ${TEST_WRKSRC}