pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics Add mojoshader version 0.0.20210110



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a22c0f092ce
branches:  trunk
changeset: 445505:2a22c0f092ce
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Jan 24 18:59:47 2021 +0000

description:
Add mojoshader version 0.0.20210110

MojoShader is a library to work with Direct3D shaders on alternate
3D APIs and non-Windows platforms. The primary motivation is moving
shaders to OpenGL languages on the fly. The developer deals with
"profiles" that represent various target languages, such as GLSL
or ARB_*_program.

This allows a developer to manage one set of shaders, presumably
written in Direct3D HLSL, and use them across multiple rendering
backends. This also means that the developer only has to worry
about one (offline) compiler to manage program complexity, while
MojoShader itself deals with the reduced complexity of the bytecode
at runtime.

MojoShader provides both a simple API to convert bytecode to various
profiles, and (optionally) basic glue to rendering APIs to abstract
the management of the shaders at runtime.

diffstat:

 graphics/Makefile                 |   3 ++-
 graphics/mojoshader/DESCR         |  16 ++++++++++++++++
 graphics/mojoshader/Makefile      |  33 +++++++++++++++++++++++++++++++++
 graphics/mojoshader/PLIST         |   8 ++++++++
 graphics/mojoshader/buildlink3.mk |  13 +++++++++++++
 graphics/mojoshader/distinfo      |   6 ++++++
 6 files changed, 78 insertions(+), 1 deletions(-)

diffs (113 lines):

diff -r 59aea9533ffa -r 2a22c0f092ce graphics/Makefile
--- a/graphics/Makefile Sun Jan 24 18:58:07 2021 +0000
+++ b/graphics/Makefile Sun Jan 24 18:59:47 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.917 2021/01/24 18:57:46 maya Exp $
+# $NetBSD: Makefile,v 1.918 2021/01/24 18:59:47 maya Exp $
 #
 
 COMMENT=       Graphics tools and libraries
@@ -364,6 +364,7 @@
 SUBDIR+=       metacam
 SUBDIR+=       mgl
 SUBDIR+=       mng
+SUBDIR+=       mojoshader
 SUBDIR+=       moka-icon-theme
 SUBDIR+=       mpeg2codec
 SUBDIR+=       mpgtx
diff -r 59aea9533ffa -r 2a22c0f092ce graphics/mojoshader/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mojoshader/DESCR Sun Jan 24 18:59:47 2021 +0000
@@ -0,0 +1,16 @@
+MojoShader is a library to work with Direct3D shaders on alternate
+3D APIs and non-Windows platforms. The primary motivation is moving
+shaders to OpenGL languages on the fly. The developer deals with
+"profiles" that represent various target languages, such as GLSL
+or ARB_*_program.
+
+This allows a developer to manage one set of shaders, presumably
+written in Direct3D HLSL, and use them across multiple rendering
+backends. This also means that the developer only has to worry
+about one (offline) compiler to manage program complexity, while
+MojoShader itself deals with the reduced complexity of the bytecode
+at runtime.
+
+MojoShader provides both a simple API to convert bytecode to various
+profiles, and (optionally) basic glue to rendering APIs to abstract
+the management of the shaders at runtime.
diff -r 59aea9533ffa -r 2a22c0f092ce graphics/mojoshader/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mojoshader/Makefile      Sun Jan 24 18:59:47 2021 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2021/01/24 18:59:47 maya Exp $
+
+DISTNAME=      f9036699b53a
+PKGNAME=       mojoshader-0.0.20210110
+CATEGORIES=    graphics
+MASTER_SITES=  https://hg.icculus.org/icculus/mojoshader/archive/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.icculus.org/mojoshader/
+COMMENT=       Library to move calls to Direct3D shaders to OpenGL
+LICENSE=       zlib
+
+USE_LANGUAGES+=        c c++
+
+WRKSRC=                ${WRKDIR}/mojoshader-f9036699b53a
+USE_CMAKE=     yes
+
+
+# FLIP_VIEWPORT is needed by some FNA games (FEZ if I recall correctly)
+CMAKE_ARGS=    -DBUILD_SHARED_LIBS=ON \
+               -DFLIP_VIEWPORT=1 \
+               -DPROFILE_METAL=OFF
+
+INSTALLATION_DIRS=     lib include
+
+# No upstream install target
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/mojoshader*.h ${DESTDIR}${PREFIX}/include
+       ${INSTALL_DATA} ${WRKSRC}/libmojoshader.so ${DESTDIR}${PREFIX}/lib
+
+.include "../../graphics/vulkan-headers/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 59aea9533ffa -r 2a22c0f092ce graphics/mojoshader/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mojoshader/PLIST Sun Jan 24 18:59:47 2021 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2021/01/24 18:59:47 maya Exp $
+include/mojoshader.h
+include/mojoshader_effects.h
+include/mojoshader_internal.h
+include/mojoshader_parser_hlsl.h
+include/mojoshader_version.h
+include/mojoshader_vulkan_vkfuncs.h
+lib/libmojoshader.so
diff -r 59aea9533ffa -r 2a22c0f092ce graphics/mojoshader/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mojoshader/buildlink3.mk Sun Jan 24 18:59:47 2021 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/01/24 18:59:47 maya Exp $
+
+BUILDLINK_TREE+=       mojoshader
+
+.if !defined(MOJOSHADER_BUILDLINK3_MK)
+MOJOSHADER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mojoshader+=     mojoshader>=0.0.20210110
+BUILDLINK_PKGSRCDIR.mojoshader?=       ../../graphics/mojoshader
+
+.endif # MOJOSHADER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -mojoshader
diff -r 59aea9533ffa -r 2a22c0f092ce graphics/mojoshader/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/mojoshader/distinfo      Sun Jan 24 18:59:47 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/01/24 18:59:47 maya Exp $
+
+SHA1 (f9036699b53a.tar.gz) = 0496ababb6cecfca3a233c6f260cc35239a59b8d
+RMD160 (f9036699b53a.tar.gz) = 4676134312c056ccfba3be6b00bcf6ddc1eae861
+SHA512 (f9036699b53a.tar.gz) = ce2d51dfc8b17f9012401f9ed3200b3a31f9c1e6a645d0f207f976821550f76d9335e042148b65885dcedac8c3a63c67a4f3a12b637e9b96719d476cd078dac7
+Size (f9036699b53a.tar.gz) = 466291 bytes



Home | Main Index | Thread Index | Old Index