Import alembic-1.7.16, from deserter666 at danwin1210.me, ok sthen@

Alembic is an open computer graphics interchange framework. It distills
complex, animated scenes into a non-procedural, application-independent
set of baked geometric results. This "distillation" of scenes into baked
geometry is exactly analogous to the distillation of lighting and
rendering scenes into rendered image data.

Alembic is focused on efficiently storing the computed results of complex
procedural geometric constructions. It is very specifically NOT concerned
with storing the complex dependency graph of procedural tools used to
create the computed results.
This commit is contained in:
rsadowski 2021-01-26 15:46:19 +00:00
parent 602926089e
commit 699885798f
5 changed files with 217 additions and 0 deletions

29
graphics/alembic/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/01/26 15:46:19 rsadowski Exp $
COMMENT= open framework for storing and sharing scene data
GH_ACCOUNT= alembic
GH_PROJECT= alembic
GH_TAGNAME= 1.7.16
SHARED_LIBS += Alembic 0.0 # 1.7
CATEGORIES= graphics
HOMEPAGE= https://www.alembic.io/
MAINTAINER= Dimitri Karamazov <deserter666@danwin1210.me>
# BSD
PERMIT_PACKAGE= Yes
WANTLIB += ${COMPILER_LIBCXX} Half-2_5 Iex-2_5 IlmThread-2_5 Imath-2_5
WANTLIB += c m
COMPILER= base-clang ports-gcc base-gcc
MODULES= devel/cmake
LIB_DEPENDS= graphics/openexr
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (alembic-1.7.16.tar.gz) = JSlYbIlFmvNNJ6NqsRStHUPa/UQGHmXPz8c7dFc3nnw=
SIZE (alembic-1.7.16.tar.gz) = 855709

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-lib_Alembic_AbcCoreOgawa_StreamManager_cpp,v 1.1.1.1 2021/01/26 15:46:19 rsadowski Exp $
ffsll not available on OpenBSD
--- lib/Alembic/AbcCoreOgawa/StreamManager.cpp.orig Tue Dec 1 15:36:46 2020
+++ lib/Alembic/AbcCoreOgawa/StreamManager.cpp Tue Dec 1 15:37:15 2020
@@ -45,6 +45,25 @@ namespace ALEMBIC_VERSION_NS {
// C++11 std::atomics version
#if !defined( ALEMBIC_LIB_USES_TR1 ) && __cplusplus >= 201103L
#define COMPARE_EXCHANGE( V, COMP, EXCH ) V.compare_exchange_weak( COMP, EXCH, std::memory_order_seq_cst, std::memory_order_seq_cst )
+
+Alembic::Util::int64_t ffsll( Alembic::Util::int64_t iValue )
+{
+ if ( !iValue )
+ {
+ return 0;
+ }
+
+ for ( Alembic::Util::int64_t bit = 0; bit < 64; ++bit )
+ {
+ if ( iValue & ( Alembic::Util::int64_t( 1 ) << bit ) )
+ {
+ return bit + 1;
+ }
+ }
+
+ return 0;
+}
+
// Windows
#elif defined( _MSC_VER )
#define COMPARE_EXCHANGE( V, COMP, EXCH ) (InterlockedCompareExchange64( &V, EXCH, COMP ) == COMP)

View File

@ -0,0 +1,10 @@
Alembic is an open computer graphics interchange framework. It distills
complex, animated scenes into a non-procedural, application-independent
set of baked geometric results. This "distillation" of scenes into baked
geometry is exactly analogous to the distillation of lighting and
rendering scenes into rendered image data.
Alembic is focused on efficiently storing the computed results of complex
procedural geometric constructions. It is very specifically NOT concerned
with storing the complex dependency graph of procedural tools used to
create the computed results.

144
graphics/alembic/pkg/PLIST Normal file
View File

@ -0,0 +1,144 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/01/26 15:46:19 rsadowski Exp $
@bin bin/abcdiff
@bin bin/abcecho
@bin bin/abcechobounds
@bin bin/abcls
@bin bin/abcstitcher
@bin bin/abctree
include/Alembic/
include/Alembic/Abc/
include/Alembic/Abc/All.h
include/Alembic/Abc/ArchiveInfo.h
include/Alembic/Abc/Argument.h
include/Alembic/Abc/Base.h
include/Alembic/Abc/ErrorHandler.h
include/Alembic/Abc/Foundation.h
include/Alembic/Abc/IArchive.h
include/Alembic/Abc/IArrayProperty.h
include/Alembic/Abc/IBaseProperty.h
include/Alembic/Abc/ICompoundProperty.h
include/Alembic/Abc/IObject.h
include/Alembic/Abc/ISampleSelector.h
include/Alembic/Abc/IScalarProperty.h
include/Alembic/Abc/ISchema.h
include/Alembic/Abc/ISchemaObject.h
include/Alembic/Abc/ITypedArrayProperty.h
include/Alembic/Abc/ITypedScalarProperty.h
include/Alembic/Abc/OArchive.h
include/Alembic/Abc/OArrayProperty.h
include/Alembic/Abc/OBaseProperty.h
include/Alembic/Abc/OCompoundProperty.h
include/Alembic/Abc/OObject.h
include/Alembic/Abc/OScalarProperty.h
include/Alembic/Abc/OSchema.h
include/Alembic/Abc/OSchemaObject.h
include/Alembic/Abc/OTypedArrayProperty.h
include/Alembic/Abc/OTypedScalarProperty.h
include/Alembic/Abc/Reference.h
include/Alembic/Abc/SourceName.h
include/Alembic/Abc/TypedArraySample.h
include/Alembic/Abc/TypedPropertyTraits.h
include/Alembic/AbcCollection/
include/Alembic/AbcCollection/All.h
include/Alembic/AbcCollection/ICollections.h
include/Alembic/AbcCollection/OCollections.h
include/Alembic/AbcCollection/SchemaInfoDeclarations.h
include/Alembic/AbcCoreAbstract/
include/Alembic/AbcCoreAbstract/All.h
include/Alembic/AbcCoreAbstract/ArchiveReader.h
include/Alembic/AbcCoreAbstract/ArchiveWriter.h
include/Alembic/AbcCoreAbstract/ArrayPropertyReader.h
include/Alembic/AbcCoreAbstract/ArrayPropertyWriter.h
include/Alembic/AbcCoreAbstract/ArraySample.h
include/Alembic/AbcCoreAbstract/ArraySampleKey.h
include/Alembic/AbcCoreAbstract/BasePropertyReader.h
include/Alembic/AbcCoreAbstract/BasePropertyWriter.h
include/Alembic/AbcCoreAbstract/CompoundPropertyReader.h
include/Alembic/AbcCoreAbstract/CompoundPropertyWriter.h
include/Alembic/AbcCoreAbstract/DataType.h
include/Alembic/AbcCoreAbstract/ForwardDeclarations.h
include/Alembic/AbcCoreAbstract/Foundation.h
include/Alembic/AbcCoreAbstract/MetaData.h
include/Alembic/AbcCoreAbstract/ObjectHeader.h
include/Alembic/AbcCoreAbstract/ObjectReader.h
include/Alembic/AbcCoreAbstract/ObjectWriter.h
include/Alembic/AbcCoreAbstract/PropertyHeader.h
include/Alembic/AbcCoreAbstract/ReadArraySampleCache.h
include/Alembic/AbcCoreAbstract/ScalarPropertyReader.h
include/Alembic/AbcCoreAbstract/ScalarPropertyWriter.h
include/Alembic/AbcCoreAbstract/ScalarSample.h
include/Alembic/AbcCoreAbstract/TimeSampling.h
include/Alembic/AbcCoreAbstract/TimeSamplingType.h
include/Alembic/AbcCoreFactory/
include/Alembic/AbcCoreFactory/All.h
include/Alembic/AbcCoreFactory/IFactory.h
include/Alembic/AbcCoreLayer/
include/Alembic/AbcCoreLayer/Foundation.h
include/Alembic/AbcCoreLayer/Read.h
include/Alembic/AbcCoreLayer/Util.h
include/Alembic/AbcCoreOgawa/
include/Alembic/AbcCoreOgawa/All.h
include/Alembic/AbcCoreOgawa/ReadWrite.h
include/Alembic/AbcGeom/
include/Alembic/AbcGeom/All.h
include/Alembic/AbcGeom/ArchiveBounds.h
include/Alembic/AbcGeom/Basis.h
include/Alembic/AbcGeom/CameraSample.h
include/Alembic/AbcGeom/CurveType.h
include/Alembic/AbcGeom/FaceSetExclusivity.h
include/Alembic/AbcGeom/FilmBackXformOp.h
include/Alembic/AbcGeom/Foundation.h
include/Alembic/AbcGeom/GeometryScope.h
include/Alembic/AbcGeom/ICamera.h
include/Alembic/AbcGeom/ICurves.h
include/Alembic/AbcGeom/IFaceSet.h
include/Alembic/AbcGeom/IGeomBase.h
include/Alembic/AbcGeom/IGeomParam.h
include/Alembic/AbcGeom/ILight.h
include/Alembic/AbcGeom/INuPatch.h
include/Alembic/AbcGeom/IPoints.h
include/Alembic/AbcGeom/IPolyMesh.h
include/Alembic/AbcGeom/ISubD.h
include/Alembic/AbcGeom/IXform.h
include/Alembic/AbcGeom/OCamera.h
include/Alembic/AbcGeom/OCurves.h
include/Alembic/AbcGeom/OFaceSet.h
include/Alembic/AbcGeom/OGeomBase.h
include/Alembic/AbcGeom/OGeomParam.h
include/Alembic/AbcGeom/OLight.h
include/Alembic/AbcGeom/ONuPatch.h
include/Alembic/AbcGeom/OPoints.h
include/Alembic/AbcGeom/OPolyMesh.h
include/Alembic/AbcGeom/OSubD.h
include/Alembic/AbcGeom/OXform.h
include/Alembic/AbcGeom/SchemaInfoDeclarations.h
include/Alembic/AbcGeom/Visibility.h
include/Alembic/AbcGeom/XformOp.h
include/Alembic/AbcGeom/XformSample.h
include/Alembic/AbcMaterial/
include/Alembic/AbcMaterial/All.h
include/Alembic/AbcMaterial/IMaterial.h
include/Alembic/AbcMaterial/MaterialAssignment.h
include/Alembic/AbcMaterial/MaterialFlatten.h
include/Alembic/AbcMaterial/OMaterial.h
include/Alembic/AbcMaterial/SchemaInfoDeclarations.h
include/Alembic/Util/
include/Alembic/Util/All.h
include/Alembic/Util/Config.h
include/Alembic/Util/Digest.h
include/Alembic/Util/Dimensions.h
include/Alembic/Util/Exception.h
include/Alembic/Util/Export.h
include/Alembic/Util/Foundation.h
include/Alembic/Util/Murmur3.h
include/Alembic/Util/Naming.h
include/Alembic/Util/OperatorBool.h
include/Alembic/Util/PlainOldDataType.h
include/Alembic/Util/SpookyV2.h
include/Alembic/Util/TokenMap.h
lib/cmake/Alembic/
lib/cmake/Alembic/AlembicConfig.cmake
lib/cmake/Alembic/AlembicConfigVersion.cmake
lib/cmake/Alembic/AlembicTargets${MODCMAKE_BUILD_SUFFIX}
lib/cmake/Alembic/AlembicTargets.cmake
@lib lib/libAlembic.so.${LIBAlembic_VERSION}