summaryrefslogtreecommitdiff
path: root/media-libs/ptex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/ptex
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/ptex')
-rw-r--r--media-libs/ptex/Manifest7
-rw-r--r--media-libs/ptex/files/ptex-2.1.28-20170213.patch72
-rw-r--r--media-libs/ptex/files/ptex-2.1.28-allow-custom-build-type.patch39
-rw-r--r--media-libs/ptex/metadata.xml22
-rw-r--r--media-libs/ptex/ptex-2.1.28-r1.ebuild25
-rw-r--r--media-libs/ptex/ptex-2.1.28.ebuild22
6 files changed, 187 insertions, 0 deletions
diff --git a/media-libs/ptex/Manifest b/media-libs/ptex/Manifest
new file mode 100644
index 000000000000..b58ef4e790af
--- /dev/null
+++ b/media-libs/ptex/Manifest
@@ -0,0 +1,7 @@
+AUX ptex-2.1.28-20170213.patch 2324 SHA256 77ba090fa87c4b8dc6e78e00ac5499d5313664b8a3b73ecde38ae6ea491f060c SHA512 dcdad0e6b2b37c523b5b54c4d885cd99facd7d50733150b2c75fac3b600010c61d2c219a14aecc24a86ff869b62a962e975dd5790228112fe004aa2d8b2fa51a WHIRLPOOL df188d9af626db931c6f2b19de7db1275099f1f6235627a77374782024201701f1d7b617f0cf3c8fc69f3aed90c4a4e1d28ba2be21fe8495bd7289ec494b090d
+AUX ptex-2.1.28-allow-custom-build-type.patch 1410 SHA256 2cad16b145ca8c87584cb759904c313ac683f145dba8e9aa50d4527975434da7 SHA512 fc51d24895c7624ee610f5f8537bacc15903816cf4cebb2c32f15afa6c9ab4dd087e21018a81e4d032b37735bf4fba73a406acef8e0c88cebfd6606ba2b11b24 WHIRLPOOL 34f108608d4d094c75adbfd59744185e6a14458f5359734dfe055a7a749706476f1035a46f846527cd22929070d34540ebd118f551e4ab570fd9076c0f168ac9
+DIST ptex-2.1.28.tar.gz 305327 SHA256 919af3cc56a7617079757bac5c0202f4375acf21861a3990e313739e56a6142c SHA512 ddce3c79f14d196e550c1e8a5b371482f88190cd667a2e2aa84601de1639f7cabb8571c1b3a49b48df46ce550d27088a00a67b1403c3bfec2ed73437c3dca3e8 WHIRLPOOL 996faad06ce8f016d24c8ec82e4422eab0e576976184bb27c24a3843eede53a3a2db5a6f572148c55bed3c6953dcdba30fa5d38e82fc1ea76e907bb5730fe5c7
+EBUILD ptex-2.1.28-r1.ebuild 576 SHA256 81c49c1fcae3044bfc58956e932bac44d4ceaf7950b6517d64a8beec4c1595b1 SHA512 e4de67adc85e04e70c2ea4a471fa263b9c923348825607e38698fad3c54b63dea628e3ad09e726c2e7a97394443ded0e5955d0211604b0bbc992738ade558ac7 WHIRLPOOL faeab08e0b3dbc4f9d0b8aa730bbb1608eb1fe62dc1bbc67df79e96992ddd99a7420f3fe36b6dbcdbbfe804b0389f7d6d67d49211f7216244d255787ed9be17b
+EBUILD ptex-2.1.28.ebuild 544 SHA256 09f67f25512196d60807565e73420a8017206d518eb409a65ad713e221cd7263 SHA512 546b82932cdb673e44b6aa7e843e8f96564cb22436e274678c0910d4beda2cd483812cc5a6b4b03bab8c2dcdf028ea3ac62bcffd088bf1f51c8a974e9e58f39e WHIRLPOOL 33758e7b6ed25c08581f4af84a8b1cb00e2c149195abfe34423561338add19b759f62146f6c987acbf106c75637c87b8e4845944653d105e7867671a9b769937
+MISC ChangeLog 1056 SHA256 8080644b5511277ec7adfe1575abc41dc2baebafc5048a1527722a537273a5e3 SHA512 129a1d1c627e492c45b9a6625c99da7321ddc64e76720e3fc61cfbf3dde480f0cfe0cc5aefa06f2f28f5a340e093e668fc41e8539d52e742284badbdadfa01b3 WHIRLPOOL 48514ff9219166b17cdc175be4fa3e7e3eb682e4045e992a0031ccabefdd8681ea5ffc6be34bb8f056f64d831e61e51ca9d63ded7f432251742dd99adb8992b1
+MISC metadata.xml 724 SHA256 49e2f388adc1932b4ab02ffea198ea92346327b5bc9ef6f4f997ada9d4f1a7c5 SHA512 7831bd58c292891f71606da8adb5f86c8c2af43995bab50815b6536710786809451c37fc70319b66a5217a637bb5dc137abc7cbf67a7c5f9544aa28f264d871c WHIRLPOOL 3c072b19e9428c9555768d602e143d5dcca43eae486682af9e777aa6314df052827d966f1d1ee97e1d1f049c8472136e02b48f645a5da5d9854e4be0a0b2f17f
diff --git a/media-libs/ptex/files/ptex-2.1.28-20170213.patch b/media-libs/ptex/files/ptex-2.1.28-20170213.patch
new file mode 100644
index 000000000000..335d07788632
--- /dev/null
+++ b/media-libs/ptex/files/ptex-2.1.28-20170213.patch
@@ -0,0 +1,72 @@
+diff -purN a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2016-04-04 18:14:05.000000000 +0100
++++ b/CMakeLists.txt 2017-02-13 22:59:10.000000000 +0000
+@@ -16,7 +16,7 @@ else ()
+ endif ()
+
+ if (NOT WIN32)
+- set(CMAKE_CXX_FLAGS "-std=c++98 -Wall -Wextra -pedantic")
++ set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -pedantic ${CMAKE_CXX_FLAGS}")
+ endif ()
+
+ if(MSVC)
+diff -purN a/Makefile b/Makefile
+--- a/Makefile 2016-04-04 18:14:05.000000000 +0100
++++ b/Makefile 2017-02-13 22:59:10.000000000 +0000
+@@ -17,6 +17,10 @@ ifdef PRMAN_15_COMPATIBLE_PTEX
+ CMAKE_FLAGS += -DPRMAN_15_COMPATIBLE_PTEX:BOOL=TRUE
+ endif
+
++ifdef TOOLCHAIN
++ CMAKE_FLAGS += -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN)
++endif
++
+ # make V=1 shortcut for VERBOSE=1
+ ifdef V
+ VERBOSE=1
+diff -purN a/src/ptex/PtexHashMap.h b/src/ptex/PtexHashMap.h
+--- a/src/ptex/PtexHashMap.h 2016-04-04 18:14:05.000000000 +0100
++++ b/src/ptex/PtexHashMap.h 2017-02-13 22:59:10.000000000 +0000
+@@ -284,14 +284,11 @@ private:
+
+ Entry* lockEntriesAndGrowIfNeeded(size_t& newMemUsed)
+ {
+- while (_size*2 >= _numEntries) {
+- Entry* entries = lockEntries();
+- if (_size*2 >= _numEntries) {
+- entries = grow(entries, newMemUsed);
+- }
+- return entries;
++ Entry* entries = lockEntries();
++ if (_size*2 >= _numEntries) {
++ entries = grow(entries, newMemUsed);
+ }
+- return lockEntries();
++ return entries;
+ }
+
+ Entry* grow(Entry* oldEntries, size_t& newMemUsed)
+diff -purN a/src/ptex/PtexIO.h b/src/ptex/PtexIO.h
+--- a/src/ptex/PtexIO.h 2016-04-04 18:14:05.000000000 +0100
++++ b/src/ptex/PtexIO.h 2017-02-13 22:59:10.000000000 +0000
+@@ -40,6 +40,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+
+ PTEX_NAMESPACE_BEGIN
+
++#pragma pack(push, 1)
+ struct Header {
+ uint32_t magic;
+ uint32_t version;
+@@ -98,6 +99,7 @@ struct EditMetaDataHeader {
+ uint32_t metadatazipsize;
+ uint32_t metadatamemsize;
+ };
++#pragma pack(pop)
+
+ const uint32_t Magic = 'P' | ('t'<<8) | ('e'<<16) | ('x'<<24);
+ const int HeaderSize = sizeof(Header);
+diff -purN a/.workonrc.products b/.workonrc.products
+--- a/.workonrc.products 1970-01-01 01:00:00.000000000 +0100
++++ b/.workonrc.products 2017-02-13 22:59:10.000000000 +0000
+@@ -0,0 +1 @@
++Ptex
diff --git a/media-libs/ptex/files/ptex-2.1.28-allow-custom-build-type.patch b/media-libs/ptex/files/ptex-2.1.28-allow-custom-build-type.patch
new file mode 100644
index 000000000000..fd79759f7ed4
--- /dev/null
+++ b/media-libs/ptex/files/ptex-2.1.28-allow-custom-build-type.patch
@@ -0,0 +1,39 @@
+diff -purN a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2017-02-13 22:59:10.000000000 +0000
++++ b/CMakeLists.txt 2017-08-08 14:19:10.325817085 +0100
+@@ -8,11 +8,16 @@ include(FindThreads)
+
+ enable_testing()
+
+-# Detect the build type from the $FLAVOR environment variable
+-if ("$ENV{FLAVOR}" MATCHES "debug")
+- set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "type of build" FORCE)
+-else ()
+- set(CMAKE_BUILD_TYPE "Release" CACHE STRING "type of build" FORCE)
++if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
++ # Detect the build type from the $FLAVOR environment variable
++ # Default to optimized Release builds when unspecified.
++ if ("$ENV{FLAVOR}" MATCHES "debug")
++ set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "type of build" FORCE)
++ elseif ("$ENV{FLAVOR}" MATCHES "profile")
++ set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "type of build" FORCE)
++ else ()
++ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "type of build" FORCE)
++ endif ()
+ endif ()
+
+ if (NOT WIN32)
+diff -purN a/Makefile b/Makefile
+--- a/Makefile 2017-02-13 22:59:10.000000000 +0000
++++ b/Makefile 2017-08-08 14:19:16.939829578 +0100
+@@ -21,6 +21,10 @@ ifdef TOOLCHAIN
+ CMAKE_FLAGS += -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN)
+ endif
+
++ifdef BUILD_TYPE
++ CMAKE_FLAGS += -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
++endif
++
+ # make V=1 shortcut for VERBOSE=1
+ ifdef V
+ VERBOSE=1
diff --git a/media-libs/ptex/metadata.xml b/media-libs/ptex/metadata.xml
new file mode 100644
index 000000000000..dd7f2efea148
--- /dev/null
+++ b/media-libs/ptex/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer restrict="&gt;=media-libs/ptex-2.1.10" type="person">
+ <email>j.scruggs@gmail.com</email>
+ <name>Jonathan Scruggs</name>
+ </maintainer>
+ <maintainer restrict="&gt;=media-libs/ptex-2.1.10" type="person">
+ <email>agrigo2001@yahoo.com.au</email>
+ <name>Adrian Grigo</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Per-Face Texture Mapping for Production Rendering.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">wdas/ptex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-libs/ptex/ptex-2.1.28-r1.ebuild b/media-libs/ptex/ptex-2.1.28-r1.ebuild
new file mode 100644
index 000000000000..494ddef43b0e
--- /dev/null
+++ b/media-libs/ptex/ptex-2.1.28-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Per-Face Texture Mapping for Production Rendering"
+HOMEPAGE="http://ptex.us/"
+SRC_URI="https://github.com/wdas/ptex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-libs/zlib:="
+DEPEND="${RDEPEND}
+ app-doc/doxygen"
+
+PATCHES=(
+ "${FILESDIR}/${P}-20170213.patch"
+ "${FILESDIR}/${P}-allow-custom-build-type.patch"
+)
+
+mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/html" )
diff --git a/media-libs/ptex/ptex-2.1.28.ebuild b/media-libs/ptex/ptex-2.1.28.ebuild
new file mode 100644
index 000000000000..b766367ac446
--- /dev/null
+++ b/media-libs/ptex/ptex-2.1.28.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Per-Face Texture Mapping for Production Rendering"
+HOMEPAGE="http://ptex.us/"
+SRC_URI="https://github.com/wdas/ptex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-doc/doxygen"
+
+KEYWORDS="~amd64 ~x86"
+
+src_configure() {
+ local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html )
+ cmake-utils_src_configure
+}