# -*- 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 github.setup KhronosGroup Vulkan-Loader 1.3.296.0 vulkan-sdk- github.tarball_from archive name vulkan-loader revision 0 categories graphics devel license Apache-2 maintainers {judaew @judaew} openmaintainer description Vulkan loader long_description Loader for Vulkan Installable Client Drivers (ICDs) and Vulkan Layers. \ While MoltenVK on macOS can be linked to directly, it is a Level 0 ICD \ and thus requires a loader in order to use Layers. homepage https://vulkan.lunarg.com set py_ver 3.12 set py_ver_nodot [string map {. {}} ${py_ver}] depends_build-append \ port:MoltenVK \ port:python${py_ver_nodot} \ port:vulkan-headers \ path:bin/pkg-config:pkgconfig checksums sha256 924b439421c30513f59dfd360cb1309639c1522de28608eb64c9d79581e44c72 \ rmd160 a456ca25c2d1724684343e77aa224b76d76631b5 \ size 1719284 # looked into /opt/local/include instead of the vulkan-headers include paths. # Corrected use off file(GLOB_RECURSE ...) . patchfiles vulkan-headers-find.patch configure.args-append \ -DPython_ADDITIONAL_VERSIONS=${py_ver} \ -DFALLBACK_DATA_DIRS=${prefix}/share:/usr/local/share:/usr/share \ -DCMAKE_INSTALL_PREFIX=${prefix} variant manifest description {Install default MoltenVK ICD Manifest} {} post-destroot { copy ${workpath}/build/loader/vulkan.framework ${destroot}${frameworks_dir}/vulkan.framework delete ${destroot}${prefix}/loader if {[variant_isset manifest]} { xinstall -d ${destroot}${prefix}/share/vulkan/icd.d copy ${filespath}/MoltenVK_icd.json ${workpath}/MoltenVK_icd.json reinplace "s|@@PREFIX@@|${prefix}|g" ${workpath}/MoltenVK_icd.json xinstall -m 644 ${workpath}/MoltenVK_icd.json ${destroot}${prefix}/share/vulkan/icd.d/MoltenVK_icd.json } } default_variants +manifest