pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add mojoshader-0.0.20210110
Module Name: pkgsrc-wip
Committed By: Maya Rashish <maya%NetBSD.org@localhost>
Pushed By: coypu
Date: Sat Jan 23 11:40:32 2021 +0200
Changeset: e0c9896e3b0917e213771d99b15091313b496e82
Modified Files:
Makefile
Added Files:
mojoshader/DESCR
mojoshader/Makefile
mojoshader/PLIST
mojoshader/buildlink3.mk
mojoshader/distinfo
Log Message:
Add mojoshader-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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e0c9896e3b0917e213771d99b15091313b496e82
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
mojoshader/DESCR | 16 ++++++++++++++++
mojoshader/Makefile | 33 +++++++++++++++++++++++++++++++++
mojoshader/PLIST | 8 ++++++++
mojoshader/buildlink3.mk | 13 +++++++++++++
mojoshader/distinfo | 6 ++++++
6 files changed, 77 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b477b97a5e..abab457c89 100644
--- a/Makefile
+++ b/Makefile
@@ -2313,6 +2313,7 @@ SUBDIR+= modular-xorg-server-dfbsd
SUBDIR+= modular-xorg-server-dfbsd-meson
SUBDIR+= modular-xorg-xspice
SUBDIR+= moe
+SUBDIR+= mojoshader
SUBDIR+= mona
SUBDIR+= monajat
SUBDIR+= mono
diff --git a/mojoshader/DESCR b/mojoshader/DESCR
new file mode 100644
index 0000000000..8979226a7d
--- /dev/null
+++ b/mojoshader/DESCR
@@ -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 --git a/mojoshader/Makefile b/mojoshader/Makefile
new file mode 100644
index 0000000000..dd95bd1234
--- /dev/null
+++ b/mojoshader/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+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 "../../wip/vulkan-headers/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mojoshader/PLIST b/mojoshader/PLIST
new file mode 100644
index 0000000000..0ac90144a4
--- /dev/null
+++ b/mojoshader/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+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 --git a/mojoshader/buildlink3.mk b/mojoshader/buildlink3.mk
new file mode 100644
index 0000000000..b1e075adb5
--- /dev/null
+++ b/mojoshader/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= mojoshader
+
+.if !defined(MOJOSHADER_BUILDLINK3_MK)
+MOJOSHADER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mojoshader+= mojoshader>=0.0.20210110
+BUILDLINK_PKGSRCDIR.mojoshader?= ../../wip/mojoshader
+
+.endif # MOJOSHADER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mojoshader
diff --git a/mojoshader/distinfo b/mojoshader/distinfo
new file mode 100644
index 0000000000..c26ab98ead
--- /dev/null
+++ b/mojoshader/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+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