Skip to content
Permalink
Browse files

vulkan-loader: new port

  • Loading branch information
jdek authored and cjones051073 committed Apr 6, 2019
1 parent 1956050 commit 002886c428e50da868540b230e3c5a50431de27b
Showing with 54 additions and 0 deletions.
  1. +47 −0 graphics/vulkan-loader/Portfile
  2. +7 −0 graphics/vulkan-loader/files/MoltenVK_icd.json
@@ -0,0 +1,47 @@
# -*- 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.0

github.setup KhronosGroup Vulkan-Loader sdk-1.1.101.0
name vulkan-loader
version 1.1.101.0

categories graphics devel
platforms darwin
license Apache-2

maintainers {@eintw1ck itanimul.li:josh} 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.

depends_build port:moltenvk port:vulkan-headers port:python37

homepage https://vulkan.lunarg.com
checksums sha256 fb111c9855ca0a0c6fc033530a318e7c9e7b9e1b0ceb8ae0b7962ff8d33ecd58 \
rmd160 74bafe603877202f150364c1d843f2d3ec5b5774 \
size 1346500
use_zip no


configure.args-append -DPython_ADDITIONAL_VERSIONS=3.7 -DFALLBACK_DATA_DIRS=${prefix}/share:/usr/local/share:/usr/share

variant manifest description {Install default MoltenVK ICD Manifest} {}

destroot {
xinstall -d ${destroot}${prefix}/Library/Frameworks
file copy ${worksrcpath}/loader/vulkan.framework ${destroot}${frameworks_dir}/vulkan.framework
xinstall -m 755 {*}[glob ${worksrcpath}/loader/*.dylib] ${destroot}${prefix}/lib/

if {[variant_isset manifest]} {
xinstall -d ${destroot}${prefix}/share/vulkan/icd.d
file copy ${portpath}/files/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
@@ -0,0 +1,7 @@
{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "@@PREFIX@@/lib/libMoltenVK.dylib",
"api_version" : "1.0.0"
}
}

0 comments on commit 002886c

Please sign in to comment.
You can’t perform that action at this time.