mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
80 lines
1.8 KiB
Bash
80 lines
1.8 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="1"
|
|
SOURCE_URI="https://github.com/wdas/ptex/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256='919af3cc56a7617079757bac5c0202f4375acf21861a3990e313739e56a6142c'
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
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()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. -DCMAKE_INSTALL_BINDIR=$binDir \
|
|
-DCMAKE_INSTALL_LIBDIR=$libDir \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
|
-DCMAKE_INSTALL_DOCDIR=$docDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLib libPtex
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|