Sun Jan 24 18:59:47 2021 UTC ()
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.
(maya)
diff -r1.917 -r1.918 pkgsrc/graphics/Makefile
diff -r0 -r1.1 pkgsrc/graphics/mojoshader/DESCR
diff -r0 -r1.1 pkgsrc/graphics/mojoshader/Makefile
diff -r0 -r1.1 pkgsrc/graphics/mojoshader/PLIST
diff -r0 -r1.1 pkgsrc/graphics/mojoshader/buildlink3.mk
diff -r0 -r1.1 pkgsrc/graphics/mojoshader/distinfo
--- pkgsrc/graphics/Makefile 2021/01/24 18:57:46 1.917
+++ pkgsrc/graphics/Makefile 2021/01/24 18:59:47 1.918
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.917 2021/01/24 18:57:46 maya Exp $ | | 1 | # $NetBSD: Makefile,v 1.918 2021/01/24 18:59:47 maya Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Graphics tools and libraries | | 4 | COMMENT= Graphics tools and libraries |
5 | | | 5 | |
6 | SUBDIR+= CRWInfo | | 6 | SUBDIR+= CRWInfo |
7 | SUBDIR+= Cenon | | 7 | SUBDIR+= Cenon |
8 | SUBDIR+= Coin | | 8 | SUBDIR+= Coin |
9 | SUBDIR+= GMT | | 9 | SUBDIR+= GMT |
10 | SUBDIR+= GUIlib | | 10 | SUBDIR+= GUIlib |
11 | SUBDIR+= GraphicsMagick | | 11 | SUBDIR+= GraphicsMagick |
12 | SUBDIR+= ImageMagick | | 12 | SUBDIR+= ImageMagick |
13 | SUBDIR+= ImageMagick6 | | 13 | SUBDIR+= ImageMagick6 |
14 | SUBDIR+= ImageViewer | | 14 | SUBDIR+= ImageViewer |
| @@ -354,26 +354,27 @@ SUBDIR+= luv-icon-theme | | | @@ -354,26 +354,27 @@ SUBDIR+= luv-icon-theme |
354 | SUBDIR+= lxde-icon-theme | | 354 | SUBDIR+= lxde-icon-theme |
355 | SUBDIR+= lximage-qt | | 355 | SUBDIR+= lximage-qt |
356 | SUBDIR+= lxqt-themes | | 356 | SUBDIR+= lxqt-themes |
357 | SUBDIR+= magicpoint | | 357 | SUBDIR+= magicpoint |
358 | SUBDIR+= mandelbulber | | 358 | SUBDIR+= mandelbulber |
359 | SUBDIR+= mate-backgrounds | | 359 | SUBDIR+= mate-backgrounds |
360 | SUBDIR+= mate-icon-theme | | 360 | SUBDIR+= mate-icon-theme |
361 | SUBDIR+= mate-icon-theme-faenza | | 361 | SUBDIR+= mate-icon-theme-faenza |
362 | SUBDIR+= mate-themes | | 362 | SUBDIR+= mate-themes |
363 | SUBDIR+= materia-gtk-theme | | 363 | SUBDIR+= materia-gtk-theme |
364 | SUBDIR+= metacam | | 364 | SUBDIR+= metacam |
365 | SUBDIR+= mgl | | 365 | SUBDIR+= mgl |
366 | SUBDIR+= mng | | 366 | SUBDIR+= mng |
| | | 367 | SUBDIR+= mojoshader |
367 | SUBDIR+= moka-icon-theme | | 368 | SUBDIR+= moka-icon-theme |
368 | SUBDIR+= mpeg2codec | | 369 | SUBDIR+= mpeg2codec |
369 | SUBDIR+= mpgtx | | 370 | SUBDIR+= mpgtx |
370 | SUBDIR+= mscgen | | 371 | SUBDIR+= mscgen |
371 | SUBDIR+= mygui | | 372 | SUBDIR+= mygui |
372 | SUBDIR+= mypaint | | 373 | SUBDIR+= mypaint |
373 | SUBDIR+= mypaint-brushes | | 374 | SUBDIR+= mypaint-brushes |
374 | SUBDIR+= ncview | | 375 | SUBDIR+= ncview |
375 | SUBDIR+= netpbm | | 376 | SUBDIR+= netpbm |
376 | SUBDIR+= ns-cult3d | | 377 | SUBDIR+= ns-cult3d |
377 | SUBDIR+= numix-gtk-theme | | 378 | SUBDIR+= numix-gtk-theme |
378 | SUBDIR+= numix-icon-theme | | 379 | SUBDIR+= numix-icon-theme |
379 | SUBDIR+= numix-icon-theme-circle | | 380 | SUBDIR+= numix-icon-theme-circle |
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.
# $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
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"
@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
# $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
$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