# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 github.setup KhronosGroup glslang 13.0.0 revision 3 categories graphics devel license {BSD Permissive} maintainers {judaew @judaew} openmaintainer description OpenGL shader compiler libraries & tools long_description Glslang is the official reference compiler for \ the OpenGL and OpenGL ES shading languages. homepage https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ checksums sha256 d4eece144c4930b4793779396665bd415dd641c8f33115b4de4c83d42a39d9f1 \ rmd160 a187c2d1c75a05eb5aba4afadf9ba689b15c63f9 \ size 3712855 set py_ver 3.11 set py_ver_nodot [string map {. {}} ${py_ver}] compiler.cxx_standard 2017 # Need to use MacPorts libc++ on macOS 10.14 Mojave and older, because # Apple Clang only added support for the C++17 library # starting in Xcode 11 (clang-1100) for macOS 10.15+. # # References: # * https://stackoverflow.com/a/55353263 # * https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes legacysupport.newest_darwin_requires_legacy 18 legacysupport.use_mp_libcxx yes # Generate a pkg-config file, so that software projects that use # pkg-config to locate external dependencies (e.g., Godot 4.x) are able # to find and link against glslang. # # This patch has also been submitted upstream, and when it gets added # to the glslang codebase, our patchfile can be deleted: # https://github.com/KhronosGroup/glslang/pull/3371 patchfiles-append create-pkgconfig-file.diff depends_build-append port:python${py_ver_nodot} configure.python ${prefix}/bin/python${py_ver} configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${configure.python} configure.args-append -DBUILD_SHARED_LIBS=ON \ -DENABLE_GLSLANG_INSTALL=ON