From 2862aff9ca7aea99862fafba0415d2d3b06e3d0b Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 26 Sep 2017 20:44:22 +0200 Subject: [PATCH] ptex: add recipe for version 2.1.28 (#1673) --- media-libs/ptex/licenses/PTEX SOFTWARE | 32 +++++++++++ media-libs/ptex/ptex-2.1.28.recipe | 79 ++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 media-libs/ptex/licenses/PTEX SOFTWARE create mode 100644 media-libs/ptex/ptex-2.1.28.recipe diff --git a/media-libs/ptex/licenses/PTEX SOFTWARE b/media-libs/ptex/licenses/PTEX SOFTWARE new file mode 100644 index 000000000..6b29b9ca9 --- /dev/null +++ b/media-libs/ptex/licenses/PTEX SOFTWARE @@ -0,0 +1,32 @@ +PTEX SOFTWARE +Copyright 2014 Disney Enterprises, Inc. All rights reserved + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * The names "Disney", "Walt Disney Pictures", "Walt Disney Animation + Studios" or the names of its contributors may NOT be used to + endorse or promote products derived from this software without + specific prior written permission from Walt Disney Pictures. + +Disclaimer: THIS SOFTWARE IS PROVIDED BY WALT DISNEY PICTURES AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, NONINFRINGEMENT AND TITLE ARE DISCLAIMED. +IN NO EVENT SHALL WALT DISNEY PICTURES, THE COPYRIGHT HOLDER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND BASED ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. diff --git a/media-libs/ptex/ptex-2.1.28.recipe b/media-libs/ptex/ptex-2.1.28.recipe new file mode 100644 index 000000000..12a8035b2 --- /dev/null +++ b/media-libs/ptex/ptex-2.1.28.recipe @@ -0,0 +1,79 @@ +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 +}