Ticket #69342: shaderc-newport.diff

File shaderc-newport.diff, 2.9 KB (added by DanielO (Daniel O'Connor), 7 months ago)
  • graphics/shaderc/Portfile

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/shaderc/Portfile graphics/shaderc/Portfile
    old new  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2
     3PortSystem          1.0
     4PortGroup           github 1.0
     5PortGroup           cmake 1.0
     6
     7github.setup        google shaderc 2023.8 v
     8github.tarball_from archive
     9name                shaderc
     10
     11categories          graphics devel
     12license             Apache-2
     13maintainers         darius@dons.net.au
     14
     15description         Shader compilations
     16long_description    A collection of tools, libraries and tests for shader compilation. At \
     17                    the moment it includes: \
     18                      - glslc, a command line compiler for GLSL/HLSL to SPIR-V, and \
     19                      - libshaderc, a library API for accessing glslc functionality.
     20homepage            https://github.com/google/shaderc
     21
     22depends_build-append \
     23                    port:glslang \
     24                    port:spirv-tools
     25
     26checksums           sha256  dfec5045f30d8f6d3d3914ab5b3cc2695947f266d41261b1459177cd789308d1 \
     27                    rmd160  7d180ceeb4c3af8717733afb3153b7e5036c90cd \
     28                    size    227238
     29
     30patchfiles-append     patch-CMakeLists.diff
     31
     32configure.args-append \
     33                    -DSHADERC_SKIP_TESTS=yes \
     34
     35configure.cxxflags-append \
     36                    "-I${prefix}/include/spirv-tools -I${prefix}/include/glslang"
     37
  • graphics/shaderc/files/patch-CMakeLists.diff

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/shaderc/files/patch-CMakeLists.diff graphics/shaderc/files/patch-CMakeLists.diff
    old new  
     1--- CMakeLists.txt.orig 2024-02-14 15:34:05
     2+++ CMakeLists.txt      2024-02-14 15:34:23
     3@@ -124,7 +124,7 @@
     4 
     5 # Configure subdirectories.
     6 # We depend on these for later projects, so they should come first.
     7-add_subdirectory(third_party)
     8+#add_subdirectory(third_party)
     9 
     10 add_subdirectory(libshaderc_util)
     11 add_subdirectory(libshaderc)
     12@@ -136,7 +136,7 @@
     13 add_custom_target(build-version
     14   ${PYTHON_EXECUTABLE}
     15   ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
     16-  ${shaderc_SOURCE_DIR} ${spirv-tools_SOURCE_DIR} ${glslang_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/build-version.inc
     17+  ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/build-version.inc
     18   COMMENT "Update build-version.inc in the Shaderc build directory (if necessary).")
     19 
     20 function(define_pkg_config_file NAME LIBS)