@@ -5,8 +5,8 @@ PortGroup github 1.0
5
5
PortGroup cmake 1.1
6
6
PortGroup legacysupport 1.1
7
7
8
- github.setup KhronosGroup glslang 13.0.0
9
- revision 3
8
+ github.setup KhronosGroup glslang 1.3.296.0 vulkan-sdk-
9
+ revision 0
10
10
11
11
categories graphics devel
12
12
license {BSD Permissive}
@@ -17,19 +17,19 @@ long_description Glslang is the official reference compiler for \
17
17
the OpenGL and OpenGL ES shading languages.
18
18
homepage https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
19
19
20
- checksums sha256 d4eece144c4930b4793779396665bd415dd641c8f33115b4de4c83d42a39d9f1 \
21
- rmd160 a187c2d1c75a05eb5aba4afadf9ba689b15c63f9 \
22
- size 3712855
20
+ checksums sha256 4d455a9a9a0d23231b22c7595ee343989a5f6ee50b5eb05aa663b92352bb51e8 \
21
+ rmd160 c0e219aee3a62a8d0fd25c2f96a5a5851437963d \
22
+ size 3867163
23
23
24
- set py_ver 3.11
24
+ set py_ver 3.12
25
25
set py_ver_nodot [string map {. {}} ${py_ver} ]
26
26
27
27
compiler.cxx_standard 2017
28
28
29
29
# Need to use MacPorts libc++ on macOS 10.14 Mojave and older, because
30
30
# Apple Clang only added support for the C++17 <filesystem> library
31
31
# starting in Xcode 11 (clang-1100) for macOS 10.15+.
32
- #
32
+ #
33
33
# References:
34
34
# * https://stackoverflow.com/a/55353263
35
35
# * https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes
@@ -45,9 +45,16 @@ legacysupport.use_mp_libcxx yes
45
45
# https://github.com/KhronosGroup/glslang/pull/3371
46
46
patchfiles-append create-pkgconfig-file.diff
47
47
48
+ depends_lib-append port:spirv-tools
49
+ depends_lib-append port:python${py_ver_nodot}
50
+
48
51
depends_build-append port:python${py_ver_nodot}
52
+
49
53
configure.python ${prefix} /bin/python${py_ver}
50
- configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${configure.python}
54
+
55
+ # there is no such option in CMakeLists.txt, cmake discovers and uses right python
56
+ # configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${configure.python}
51
57
52
58
configure.args-append -DBUILD_SHARED_LIBS=ON \
53
- -DENABLE_GLSLANG_INSTALL=ON
59
+ -DGLSLANG_ENABLE_INSTALL=ON \
60
+ -DALLOW_EXTERNAL_SPIRV_TOOLS=ON
0 commit comments