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

cvs diff -r1.917 -r1.918 pkgsrc/graphics/Makefile (expand / switch to unified diff)

--- 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
4COMMENT= Graphics tools and libraries 4COMMENT= Graphics tools and libraries
5 5
6SUBDIR+= CRWInfo 6SUBDIR+= CRWInfo
7SUBDIR+= Cenon 7SUBDIR+= Cenon
8SUBDIR+= Coin 8SUBDIR+= Coin
9SUBDIR+= GMT 9SUBDIR+= GMT
10SUBDIR+= GUIlib 10SUBDIR+= GUIlib
11SUBDIR+= GraphicsMagick 11SUBDIR+= GraphicsMagick
12SUBDIR+= ImageMagick 12SUBDIR+= ImageMagick
13SUBDIR+= ImageMagick6 13SUBDIR+= ImageMagick6
14SUBDIR+= ImageViewer 14SUBDIR+= ImageViewer
@@ -354,26 +354,27 @@ SUBDIR+= luv-icon-theme @@ -354,26 +354,27 @@ SUBDIR+= luv-icon-theme
354SUBDIR+= lxde-icon-theme 354SUBDIR+= lxde-icon-theme
355SUBDIR+= lximage-qt 355SUBDIR+= lximage-qt
356SUBDIR+= lxqt-themes 356SUBDIR+= lxqt-themes
357SUBDIR+= magicpoint 357SUBDIR+= magicpoint
358SUBDIR+= mandelbulber 358SUBDIR+= mandelbulber
359SUBDIR+= mate-backgrounds 359SUBDIR+= mate-backgrounds
360SUBDIR+= mate-icon-theme 360SUBDIR+= mate-icon-theme
361SUBDIR+= mate-icon-theme-faenza 361SUBDIR+= mate-icon-theme-faenza
362SUBDIR+= mate-themes 362SUBDIR+= mate-themes
363SUBDIR+= materia-gtk-theme 363SUBDIR+= materia-gtk-theme
364SUBDIR+= metacam 364SUBDIR+= metacam
365SUBDIR+= mgl 365SUBDIR+= mgl
366SUBDIR+= mng 366SUBDIR+= mng
 367SUBDIR+= mojoshader
367SUBDIR+= moka-icon-theme 368SUBDIR+= moka-icon-theme
368SUBDIR+= mpeg2codec 369SUBDIR+= mpeg2codec
369SUBDIR+= mpgtx 370SUBDIR+= mpgtx
370SUBDIR+= mscgen 371SUBDIR+= mscgen
371SUBDIR+= mygui 372SUBDIR+= mygui
372SUBDIR+= mypaint 373SUBDIR+= mypaint
373SUBDIR+= mypaint-brushes 374SUBDIR+= mypaint-brushes
374SUBDIR+= ncview 375SUBDIR+= ncview
375SUBDIR+= netpbm 376SUBDIR+= netpbm
376SUBDIR+= ns-cult3d 377SUBDIR+= ns-cult3d
377SUBDIR+= numix-gtk-theme 378SUBDIR+= numix-gtk-theme
378SUBDIR+= numix-icon-theme 379SUBDIR+= numix-icon-theme
379SUBDIR+= numix-icon-theme-circle 380SUBDIR+= numix-icon-theme-circle

File Added: pkgsrc/graphics/mojoshader/DESCR
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.

File Added: pkgsrc/graphics/mojoshader/Makefile
# $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"

File Added: pkgsrc/graphics/mojoshader/PLIST
@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

File Added: pkgsrc/graphics/mojoshader/buildlink3.mk
# $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

File Added: pkgsrc/graphics/mojoshader/distinfo
$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