diff options
author | kamil <kamil@pkgsrc.org> | 2016-10-18 02:47:16 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2016-10-18 02:47:16 +0000 |
commit | 254e1ec28e49ce451c3d1fcb973825230827970a (patch) | |
tree | 0002e17f196a2121d8917a3b9ece41da030494e8 /graphics | |
parent | 5e38b170f0a9e75e1af848496331acaa04416b35 (diff) | |
download | pkgsrc-254e1ec28e49ce451c3d1fcb973825230827970a.tar.gz |
Import ptex-2.1.28 as graphics/ptex.
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.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ptex/DESCR | 12 | ||||
-rw-r--r-- | graphics/ptex/Makefile | 22 | ||||
-rw-r--r-- | graphics/ptex/PLIST | 9 | ||||
-rw-r--r-- | graphics/ptex/buildlink3.mk | 12 | ||||
-rw-r--r-- | graphics/ptex/distinfo | 7 | ||||
-rw-r--r-- | graphics/ptex/patches/patch-src_ptex_PtexPlatform.h | 18 |
6 files changed, 80 insertions, 0 deletions
diff --git a/graphics/ptex/DESCR b/graphics/ptex/DESCR new file mode 100644 index 00000000000..ed9e91c645c --- /dev/null +++ b/graphics/ptex/DESCR @@ -0,0 +1,12 @@ +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. diff --git a/graphics/ptex/Makefile b/graphics/ptex/Makefile new file mode 100644 index 00000000000..9c4f624c74b --- /dev/null +++ b/graphics/ptex/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2016/10/18 02:47:16 kamil Exp $ + +DISTNAME= ptex-2.1.28 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_GITHUB:=wdas/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://ptex.us/ +COMMENT= Per-Face Texture Mapping for Production Rendering +LICENSE= modified-bsd # with slightly changes spelling + +USE_CMAKE= yes +USE_LANGUAGES= c c++ + +BUILDLINK_TRANSFORM+= opt:-std=c++98:-std=gnu++98 # alloca(3) + +TEST_TARGET= test + +TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/src/ptex/ + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/ptex/PLIST b/graphics/ptex/PLIST new file mode 100644 index 00000000000..f2cb32cb6dc --- /dev/null +++ b/graphics/ptex/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2016/10/18 02:47:16 kamil Exp $ +bin/ptxinfo +include/PtexHalf.h +include/PtexInt.h +include/PtexUtils.h +include/PtexVersion.h +include/Ptexture.h +lib/libPtex.a +lib/libPtex.so diff --git a/graphics/ptex/buildlink3.mk b/graphics/ptex/buildlink3.mk new file mode 100644 index 00000000000..04f068b79e5 --- /dev/null +++ b/graphics/ptex/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/10/18 02:47:16 kamil Exp $ + +BUILDLINK_TREE+= ptex + +.if !defined(PTEX_BUILDLINK3_MK) +PTEX_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ptex+= ptex>=2.1.28 +BUILDLINK_PKGSRCDIR.ptex?= ../../graphics/ptex +.endif # PTEX_BUILDLINK3_MK + +BUILDLINK_TREE+= -ptex diff --git a/graphics/ptex/distinfo b/graphics/ptex/distinfo new file mode 100644 index 00000000000..3f4dd3ac84a --- /dev/null +++ b/graphics/ptex/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/10/18 02:47:16 kamil Exp $ + +SHA1 (ptex-2.1.28.tar.gz) = 67ba20b98247a12f075631b6e65271953e519eda +RMD160 (ptex-2.1.28.tar.gz) = eecce0d629551a827a866c63e2ca17651deef5fd +SHA512 (ptex-2.1.28.tar.gz) = ddce3c79f14d196e550c1e8a5b371482f88190cd667a2e2aa84601de1639f7cabb8571c1b3a49b48df46ce550d27088a00a67b1403c3bfec2ed73437c3dca3e8 +Size (ptex-2.1.28.tar.gz) = 305327 bytes +SHA1 (patch-src_ptex_PtexPlatform.h) = f3c859f62b3f4ef0b0274939c522c735681fb70e diff --git a/graphics/ptex/patches/patch-src_ptex_PtexPlatform.h b/graphics/ptex/patches/patch-src_ptex_PtexPlatform.h new file mode 100644 index 00000000000..5f07c2c9d1b --- /dev/null +++ b/graphics/ptex/patches/patch-src_ptex_PtexPlatform.h @@ -0,0 +1,18 @@ +$NetBSD: patch-src_ptex_PtexPlatform.h,v 1.1 2016/10/18 02:47:17 kamil Exp $ + +The alloca(3) function is an extension and place of its definition varies. +The <alloca.h> header is required on SunOS and acceptable on other systems, but +unavailable on NetBSD. + +--- src/ptex/PtexPlatform.h.orig 2016-04-04 17:14:05.000000000 +0000 ++++ src/ptex/PtexPlatform.h +@@ -62,7 +62,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE + + // linux/unix/posix + #include <stdlib.h> ++#if !defined(__NetBSD__) + #include <alloca.h> ++#endif + #include <string.h> + #include <pthread.h> + |