pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/osl



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sun Nov  8 15:03:19 UTC 2026

Added Files:
        pkgsrc/graphics/osl: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/graphics/osl/patches: patch-src_testrender_rapidobj_rapidobj.hpp

Log Message:
graphics/osl: import osl-1.15.7.0

Open Shading Language (OSL) is a small but rich language for
programmable shading in advanced renderers and other applications,
ideal for describing materials, lights, displacement, and pattern
generation.

OSL was originally developed by Sony Pictures Imageworks for use
in its in- house renderer used for feature film animation and visual
effects, released as open source so it could be used by other visual
effects and animation studios and rendering software vendors. Now
it's the de facto standard shading language for VFX and animated
features, used across the industry in many commercial and studio-
proprietary renderers. Because of this, the work on OSL received
an Academy Award for Technical Achievement in 2017.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/osl/DESCR pkgsrc/graphics/osl/Makefile \
    pkgsrc/graphics/osl/PLIST pkgsrc/graphics/osl/buildlink3.mk \
    pkgsrc/graphics/osl/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/osl/patches/patch-src_testrender_rapidobj_rapidobj.hpp

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

Added files:

Index: pkgsrc/graphics/osl/DESCR
diff -u /dev/null pkgsrc/graphics/osl/DESCR:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/DESCR   Sun Nov  8 15:03:18 2026
@@ -0,0 +1,13 @@
+Open Shading Language (OSL) is a small but rich language for
+programmable shading in advanced renderers and other applications,
+ideal for describing materials, lights, displacement, and pattern
+generation.
+
+OSL was originally developed by Sony Pictures Imageworks for use
+in its in- house renderer used for feature film animation and visual
+effects, released as open source so it could be used by other visual
+effects and animation studios and rendering software vendors. Now
+it's the de facto standard shading language for VFX and animated
+features, used across the industry in many commercial and studio-
+proprietary renderers. Because of this, the work on OSL received
+an Academy Award for Technical Achievement in 2017.
Index: pkgsrc/graphics/osl/Makefile
diff -u /dev/null pkgsrc/graphics/osl/Makefile:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/Makefile        Sun Nov  8 15:03:18 2026
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2026/11/08 15:03:18 ryoon Exp $
+
+DISTNAME=      OSL-1.15.7.0
+PKGNAME=       ${DISTNAME:tl}
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=AcademySoftwareFoundation/}
+GITHUB_PROJECT=        OpenShadingLanguage
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
+COMMENT=       Advanced shading language for production GI renderers
+LICENSE=       modified-bsd
+
+USE_TOOLS+=    bison flex gmake pkg-config
+USE_LANGUAGES= c c++
+
+# Run oslc during build.
+MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}/lib
+
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE
+CMAKE_CONFIGURE_ARGS+= -DUSE_PYTHON=OFF
+CMAKE_CONFIGURE_ARGS+= -DUSE_QT=OFF
+
+PKGCONFIG_OVERRIDE+=   src/build-scripts/oslcomp.pc.in
+PKGCONFIG_OVERRIDE+=   src/build-scripts/oslexec.pc.in
+PKGCONFIG_OVERRIDE+=   src/build-scripts/oslquery.pc.in
+
+post-install:
+       ${RM} -r ${DESTDIR}${PREFIX}/build-scripts/serialize-bc.py
+       ${RM} -r ${DESTDIR}${PREFIX}/cmake/llvm_macros.cmake
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/robin-map/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../math/imath/buildlink3.mk"
+.include "../../graphics/openimageio/buildlink3.mk"
+.include "../../graphics/partio/buildlink3.mk"
+.include "../../textproc/pugixml/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/osl/PLIST
diff -u /dev/null pkgsrc/graphics/osl/PLIST:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/PLIST   Sun Nov  8 15:03:18 2026
@@ -0,0 +1,105 @@
+@comment $NetBSD: PLIST,v 1.1 2026/11/08 15:03:18 ryoon Exp $
+bin/oslc
+bin/oslinfo
+bin/testrender
+bin/testshade
+bin/testshade_dso
+include/OSL/Imathx/Imathx.h
+include/OSL/accum.h
+include/OSL/batched_rendererservices.h
+include/OSL/batched_shaderglobals.h
+include/OSL/batched_texture.h
+include/OSL/device_ptr.h
+include/OSL/dual.h
+include/OSL/dual_vec.h
+include/OSL/encodedtypes.h
+include/OSL/export.h
+include/OSL/fmt_util.h
+include/OSL/genclosure.h
+include/OSL/hashes.h
+include/OSL/journal.h
+include/OSL/llvm_util.h
+include/OSL/mask.h
+include/OSL/optautomata.h
+include/OSL/oslclosure.h
+include/OSL/oslcomp.h
+include/OSL/oslconfig.h
+include/OSL/oslexec.h
+include/OSL/oslnoise.h
+include/OSL/oslquery.h
+include/OSL/oslversion.h
+include/OSL/platform.h
+include/OSL/rendererservices.h
+include/OSL/rs_free_function.h
+include/OSL/sfm_simplex.h
+include/OSL/sfm_staticmatrix.h
+include/OSL/sfmath.h
+include/OSL/shaderglobals.h
+include/OSL/strdecls.h
+include/OSL/variant.h
+include/OSL/wide.h
+lib/cmake/OSL/OSLConfig.cmake
+lib/cmake/OSL/OSLConfigVersion.cmake
+lib/cmake/OSL/OSLTargets-release.cmake
+lib/cmake/OSL/OSLTargets.cmake
+lib/liboslcomp.so
+lib/liboslcomp.so.1.15
+lib/liboslcomp.so.1.15.7
+lib/liboslexec.so
+lib/liboslexec.so.1.15
+lib/liboslexec.so.1.15.7
+lib/liboslnoise.so
+lib/liboslnoise.so.1.15
+lib/liboslnoise.so.1.15.7
+lib/liboslquery.so
+lib/liboslquery.so.1.15
+lib/liboslquery.so.1.15.7
+lib/libtestshade.so
+lib/libtestshade.so.1.15
+lib/libtestshade.so.1.15.7
+lib/osl.imageio.so
+lib/pkgconfig/oslcomp.pc
+lib/pkgconfig/oslexec.pc
+lib/pkgconfig/oslquery.pc
+share/OSL/shaders/color2.h
+share/OSL/shaders/color4.h
+share/OSL/shaders/emitter.osl
+share/OSL/shaders/emitter.oso
+share/OSL/shaders/glass.osl
+share/OSL/shaders/glass.oso
+share/OSL/shaders/image.osl
+share/OSL/shaders/image.oso
+share/OSL/shaders/mandelbrot.osl
+share/OSL/shaders/mandelbrot.oso
+share/OSL/shaders/matrix33.h
+share/OSL/shaders/matte.osl
+share/OSL/shaders/matte.oso
+share/OSL/shaders/metal.osl
+share/OSL/shaders/metal.oso
+share/OSL/shaders/oslutil.h
+share/OSL/shaders/stdosl.h
+share/OSL/shaders/ubersurface.osl
+share/OSL/shaders/ubersurface.oso
+share/OSL/shaders/vector2.h
+share/OSL/shaders/vector4.h
+share/doc/OSL/CHANGES.md
+share/doc/OSL/Figures/osltoy/osltoy-error.jpg
+share/doc/OSL/Figures/osltoy/osltoy-fbm.jpg
+share/doc/OSL/Figures/osltoy/osltoy-start.jpg
+share/doc/OSL/Figures/testshade/fBm_default.jpg
+share/doc/OSL/Figures/testshade/fBm_freq.jpg
+share/doc/OSL/Figures/testshade/fBm_gain.jpg
+share/doc/OSL/Figures/testshade/fBm_lac.jpg
+share/doc/OSL/Figures/testshade/fBm_octaves.jpg
+share/doc/OSL/Figures/testshade/makenoise.jpg
+share/doc/OSL/Figures/testshade/noisetex.jpg
+share/doc/OSL/Figures/testshade/show_uv.jpg
+share/doc/OSL/INSTALL.md
+share/doc/OSL/LICENSE.md
+share/doc/OSL/OSLQuery.md.html
+share/doc/OSL/README.md
+share/doc/OSL/docdeep.md.html
+share/doc/OSL/docs.css
+share/doc/OSL/markdeep.min.js
+share/doc/OSL/osltoy.md.html
+share/doc/OSL/testshade.md.html
Index: pkgsrc/graphics/osl/buildlink3.mk
diff -u /dev/null pkgsrc/graphics/osl/buildlink3.mk:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/buildlink3.mk   Sun Nov  8 15:03:18 2026
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2026/11/08 15:03:18 ryoon Exp $
+
+BUILDLINK_TREE+=       osl
+
+.if !defined(OSL_BUILDLINK3_MK)
+OSL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.osl+=    osl>=1.15.7.0
+BUILDLINK_PKGSRCDIR.osl?=      ../../graphics/osl
+
+BUILDLINK_FILES.osl+=          bin/oslc
+BUILDLINK_FILES.osl+=          bin/oslinfo
+BUILDLINK_FILES.osl+=          lib/osl.imageio.so
+
+.include "../../devel/robin-map/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../math/imath/buildlink3.mk"
+.include "../../graphics/openimageio/buildlink3.mk"
+.include "../../graphics/partio/buildlink3.mk"
+.include "../../textproc/pugixml/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.endif # OSL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -osl
Index: pkgsrc/graphics/osl/distinfo
diff -u /dev/null pkgsrc/graphics/osl/distinfo:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/distinfo        Sun Nov  8 15:03:18 2026
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2026/11/08 15:03:18 ryoon Exp $
+
+BLAKE2s (OSL-1.15.7.0.tar.gz) = a318813b44923fac0980132a3cf4a7ac7774d7e6d2f933b362d891b6d2efe5cf
+SHA512 (OSL-1.15.7.0.tar.gz) = 9665c3ad3f71eb494f3c318e0bc1c2602d1b3bdd934623199fdd7208cb3dca3eb713271d40768643709141d267581d5b9434d831455a50e37ed2fc18edbeb6d8
+Size (OSL-1.15.7.0.tar.gz) = 44286161 bytes
+SHA1 (patch-src_testrender_rapidobj_rapidobj.hpp) = a5c25bbbd01c6d40407970fe97d3075f456aea58

Index: pkgsrc/graphics/osl/patches/patch-src_testrender_rapidobj_rapidobj.hpp
diff -u /dev/null pkgsrc/graphics/osl/patches/patch-src_testrender_rapidobj_rapidobj.hpp:1.1
--- /dev/null   Sun Nov  8 15:03:19 2026
+++ pkgsrc/graphics/osl/patches/patch-src_testrender_rapidobj_rapidobj.hpp      Sun Nov  8 15:03:18 2026
@@ -0,0 +1,48 @@
+$NetBSD: patch-src_testrender_rapidobj_rapidobj.hpp,v 1.1 2026/11/08 15:03:18 ryoon Exp $
+
+* Support NetBSD.
+
+--- src/testrender/rapidobj/rapidobj.hpp.orig  2026-09-07 16:59:49.000000000 +0000
++++ src/testrender/rapidobj/rapidobj.hpp
+@@ -43,7 +43,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 
+ #include <variant>
+ #include <vector>
+ 
+-#ifdef __linux__
++#if defined(__linux__) || defined(__NetBSD__)
+ 
+ #include <fcntl.h>
+ #include <sys/stat.h>
+@@ -4835,7 +4835,10 @@ namespace sys {
+ 
+ namespace sys {
+ 
+-#ifdef __linux__
++#if defined(__linux__) || defined(__NetBSD__)
++#if defined(__NetBSD__)
++#define pread64 pread
++#endif
+ 
+ inline auto AlignedAllocate(size_t size, size_t alignment)
+ {
+@@ -4902,7 +4905,9 @@ struct FileReader : Reader {
+         m_size   = size;
+         m_buffer = buffer;
+ 
++#if !defined(__NetBSD__)
+         readahead(m_fd, offset, size);
++#endif
+ 
+         auto t2 = std::chrono::steady_clock::now();
+ 
+@@ -5203,6 +5208,10 @@ struct FileReader : Reader {
+     size_t m_size{};
+     char*  m_buffer{};
+ };
++
++#if defined(__NetBSD__)
++#undef pread64
++#endif
+ 
+ #endif
+ 



Home | Main Index | Thread Index | Old Index