# -*- 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               cmake 1.1
PortGroup               github 1.0

name                    vulkan-memory-allocator
github.setup            GPUOpen-LibrariesAndSDKs VulkanMemoryAllocator 3.5.0 v
github.tarball_from     archive
revision                0

categories              graphics devel
license                 MIT
platforms               any
supported_archs         noarch
homepage                https://gpuopen.com/vulkan-memory-allocator
maintainers             {@herby-gillot gmail.com:herby.gillot} \
                        {sethm.id.au:dev @McDaMastR} \
                        openmaintainer

description             Easy to integrate Vulkan memory allocation library
long_description        A single header C/C++ library that helps with memory \
                        allocation for the Vulkan API.  The interface mirrors \
                        Vulkan and is designed to be cross-platform while \
                        still making use of extensions when supported.

checksums               rmd160  ccf37f79782004eb3d6e3a88b565bd76444ccbdf \
                        sha256  c5f3db848fca9cb9726b41f256cc3007773321fa92a86d1e0902e66474e8a9e3 \
                        size    1001213

post-destroot {
    set destdocdir  ${destroot}${prefix}/share/doc/VulkanMemoryAllocator

    xinstall -d ${destdocdir}
    xinstall -W ${worksrcpath} -m 644 \
        CHANGELOG.md \
        LICENSE.txt \
        README.md \
        ${destdocdir}
}

variant doc \
        description {Install HTML documentation} {
    depends_build-append    path:bin/doxygen:doxygen
    configure.args-append   -DVMA_BUILD_DOCUMENTATION=ON
}
