# -*- 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.4.0 v
github.tarball_from     archive
revision                1

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  a0a71cfd21ca452421bcd2039c845b81e698b12e \
                        sha256  822aa850c6ce77346ae96a8a1d351d52e77e85929f35363849a0a4e638e0a2a1 \
                        size    1002168

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    bin:doxygen:doxygen
    configure.args-append   -DVMA_BUILD_DOCUMENTATION=ON
}
