mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
153 lines
3.7 KiB
Bash
153 lines
3.7 KiB
Bash
SUMMARY="An open framework for storing and sharing scene data"
|
|
DESCRIPTION="Alembic is an open computer graphics interchange framework. \
|
|
Alembic 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."
|
|
HOMEPAGE="http://www.alembic.io/"
|
|
COPYRIGHT="2009-2016 Sony Pictures Imageworks
|
|
2009-2016 Industrial Light and Magic
|
|
2010-2012 Christopher Horvath
|
|
2011-2012 Luxology LLC
|
|
2011-2013 Autodesk, Inc.
|
|
2011-2018 Side Effects Software Inc.
|
|
2011-2013 Mark Elendt, Senior Mathematician, Side Effects Software Inc.
|
|
2011-2013 Nicholas Yue
|
|
2011 Fabric Engine, Inc.
|
|
2011 Luma Pictures
|
|
2012 Solid Angle S.L.
|
|
2012 Zhicheng YE
|
|
2013 Digital Domain 3.0, Inc.
|
|
2016-2018 Tim Yanalunas
|
|
2016-2018 Blizzard Entertainment, Inc.
|
|
2018 J Cube, Inc."
|
|
LICENSE="ALEMBIC"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/alembic/alembic/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="04012fb37c02fd1ba8e4d4f37f5b1e7a3d78151c6368718c4be07f89a99c8148"
|
|
SOURCE_FILENAME="alembic-$portVersion.tar.gz"
|
|
PATCHES="alembic-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
alembic$secondaryArchSuffix = $portVersion
|
|
cmd:abcconvert
|
|
cmd:abcdiff
|
|
cmd:abcecho
|
|
cmd:abcechobounds
|
|
cmd:abcls
|
|
cmd:abcstitcher
|
|
cmd:abctree
|
|
lib:libalembic$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_program_options$secondaryArchSuffix
|
|
lib:libHalf$secondaryArchSuffix
|
|
lib:libhdf5$secondaryArchSuffix
|
|
lib:libIex_2_2$secondaryArchSuffix
|
|
lib:libIexMath_2_2$secondaryArchSuffix
|
|
lib:libIlmThread_2_2$secondaryArchSuffix
|
|
lib:libImath_2_2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
alembic${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libalembic$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
alembic$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_program_options$secondaryArchSuffix
|
|
devel:libHalf$secondaryArchSuffix
|
|
devel:libhdf5$secondaryArchSuffix
|
|
devel:libIex_2_2$secondaryArchSuffix
|
|
devel:libIexMath_2_2$secondaryArchSuffix
|
|
devel:libIlmThread_2_2$secondaryArchSuffix
|
|
devel:libImath_2_2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage alembic$secondaryArchSuffix \
|
|
$libDir/libAlembic.so.$portVersion \
|
|
$commandBinDir/abcconvert \
|
|
$commandBinDir/abcdiff \
|
|
$commandBinDir/abcecho \
|
|
$commandBinDir/abcechobounds \
|
|
$commandBinDir/abcls \
|
|
$commandBinDir/abcstitcher \
|
|
$commandBinDir/abctree
|
|
|
|
PATCH()
|
|
{
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
sed -i \
|
|
-e "s|\(DESTINATION\) lib|\1 $relativeLibDir|;" \
|
|
-e "s|\(ConfigPackageLocation\) lib/cmake/|\1 $relativeLibDir/cmake/|;" \
|
|
lib/Alembic/CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
|
|
export ILMBASE_INC_DIR="`finddir B_SYSTEM_DIRECTORY`/$relativeIncludeDir/OpenEXR"
|
|
|
|
cmake .. \
|
|
-DUSE_HDF5=ON \
|
|
-DALEMBIC_LIB_USES_BOOST=ON \
|
|
$cmakeDirArgs
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $includeDir
|
|
mv $prefix/include/* $includeDir/
|
|
rm -rf $prefix/include
|
|
mv $prefix/lib $prefix/lib2
|
|
mkdir -p $libDir/cmake
|
|
mv $prefix/lib2/* $libDir
|
|
rm -rf $prefix/lib2
|
|
|
|
prepareInstalledDevelLib libAlembic
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|