mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
$secondaryArchSuffix (as well as $commandSuffix) should not be used in the call to defineDebugInfoPackage. Obviously, this latent bug did not affect any primary arch nor the x86 2nd arch because commandSuffix is set to the empty string in that case.
108 lines
2.5 KiB
Bash
108 lines
2.5 KiB
Bash
SUMMARY="A library for particle IO and manipulation"
|
|
DESCRIPTION="The goal of Partio is to provide a unified interface akin to \
|
|
unified image libraries that makes it easier to load, save, and manipulate \
|
|
particle files.
|
|
|
|
Major Features:
|
|
|
|
* Supports Houdini's GEO and BGEO, Maya's PDB and PDA, RenderMan's PTC
|
|
* Arbitrary back end in-memory/cached formats can be supported from a single \
|
|
interface
|
|
* A Python API for easy scripting of particle manipulation
|
|
* A C++ API for high performance particle manipulation
|
|
* Nearest Neighbor Lookups for density estimation, Voronoi computation, etc."
|
|
HOMEPAGE="https://www.disneyanimation.com/technology/partio.html"
|
|
COPYRIGHT="2010-2012 Disney Enterprises"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/wdas/partio/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256='133f386f076bd6958292646b6ba0e3db6d1e37bde3b8a6d1bc4b7809d693999d'
|
|
PATCHES="partio-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
partio$secondaryArchSuffix = $portVersion compat >= 1
|
|
cmd:partattr$commandSuffix = $portVersion
|
|
cmd:partconv$commandSuffix = $portVersion
|
|
cmd:partinfo$commandSuffix = $portVersion
|
|
cmd:partview$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libGLU$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
partio${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpartio$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
partio$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libGLU$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
# cmd:doxygen
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
# cmd:python
|
|
cmd:swig
|
|
"
|
|
|
|
defineDebugInfoPackage partio$secondaryArchSuffix \
|
|
$commandBinDir/partattr \
|
|
$commandBinDir/partconv \
|
|
$commandBinDir/partinfo \
|
|
$commandBinDir/partview
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. \
|
|
$cmakeDirArgs \
|
|
-Wno-dev
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $includeDir
|
|
mv $prefix/include/* $includeDir/
|
|
rm -rf $prefix/include $prefix/test
|
|
|
|
prepareInstalledDevelLib libpartio
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|