Files
haikuports/media-libs/ptex/ptex-2.1.28.recipe
2023-04-19 13:48:42 +02:00

77 lines
1.7 KiB
Bash

SUMMARY="Per-Face Texture Mapping for Production Rendering"
DESCRIPTION="Ptex is a texture mapping system developed by Walt Disney \
Animation Studios for production-quality rendering:
No UV assignment is required! Ptex applies a separate texture to each face \
of a subdivision or polygon mesh.
The Ptex file format can efficiently store hundreds of thousands of texture \
images in a single file.
The Ptex API provides cached file I/O and high-quality filtering - everything \
that is needed to easily add Ptex support to a production-quality renderer or \
texture authoring application."
HOMEPAGE="http://ptex.us"
COPYRIGHT="2014 Disney Enterprises"
LICENSE="PTEX SOFTWARE"
REVISION="2"
SOURCE_URI="https://github.com/wdas/ptex/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="919af3cc56a7617079757bac5c0202f4375acf21861a3990e313739e56a6142c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
ptex$secondaryArchSuffix = $portVersion
cmd:ptxinfo$secondaryArchSuffix
lib:libPtex$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
ptex${secondaryArchSuffix}_devel = $portVersion
devel:libPtex$secondaryArchSuffix
"
REQUIRES_devel="
ptex$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:doxygen
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# remove static library
rm -f $libDir/libPtex.a
prepareInstalledDevelLib libPtex
packageEntries devel \
$developDir
}
TEST()
{
make -C build test
}