pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics



Module Name:    pkgsrc
Committed By:   maya
Date:           Sun Jan 24 18:59:47 UTC 2021

Modified Files:
        pkgsrc/graphics: Makefile
Added Files:
        pkgsrc/graphics/mojoshader: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.917 -r1.918 pkgsrc/graphics/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/mojoshader/DESCR \
    pkgsrc/graphics/mojoshader/Makefile pkgsrc/graphics/mojoshader/PLIST \
    pkgsrc/graphics/mojoshader/buildlink3.mk \
    pkgsrc/graphics/mojoshader/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/Makefile
diff -u pkgsrc/graphics/Makefile:1.917 pkgsrc/graphics/Makefile:1.918
--- pkgsrc/graphics/Makefile:1.917      Sun Jan 24 18:57:46 2021
+++ pkgsrc/graphics/Makefile    Sun Jan 24 18:59:47 2021
@@ -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+=    materia-gtk-theme
 SUBDIR+=       metacam
 SUBDIR+=       mgl
 SUBDIR+=       mng
+SUBDIR+=       mojoshader
 SUBDIR+=       moka-icon-theme
 SUBDIR+=       mpeg2codec
 SUBDIR+=       mpgtx

Added files:

Index: pkgsrc/graphics/mojoshader/DESCR
diff -u /dev/null pkgsrc/graphics/mojoshader/DESCR:1.1
--- /dev/null   Sun Jan 24 18:59:47 2021
+++ pkgsrc/graphics/mojoshader/DESCR    Sun Jan 24 18:59:47 2021
@@ -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.
Index: pkgsrc/graphics/mojoshader/Makefile
diff -u /dev/null pkgsrc/graphics/mojoshader/Makefile:1.1
--- /dev/null   Sun Jan 24 18:59:47 2021
+++ pkgsrc/graphics/mojoshader/Makefile Sun Jan 24 18:59:47 2021
@@ -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"
Index: pkgsrc/graphics/mojoshader/PLIST
diff -u /dev/null pkgsrc/graphics/mojoshader/PLIST:1.1
--- /dev/null   Sun Jan 24 18:59:47 2021
+++ pkgsrc/graphics/mojoshader/PLIST    Sun Jan 24 18:59:47 2021
@@ -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
Index: pkgsrc/graphics/mojoshader/buildlink3.mk
diff -u /dev/null pkgsrc/graphics/mojoshader/buildlink3.mk:1.1
--- /dev/null   Sun Jan 24 18:59:47 2021
+++ pkgsrc/graphics/mojoshader/buildlink3.mk    Sun Jan 24 18:59:47 2021
@@ -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
Index: pkgsrc/graphics/mojoshader/distinfo
diff -u /dev/null pkgsrc/graphics/mojoshader/distinfo:1.1
--- /dev/null   Sun Jan 24 18:59:47 2021
+++ pkgsrc/graphics/mojoshader/distinfo Sun Jan 24 18:59:47 2021
@@ -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