# -*- 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        Pulse-Eight platform 2.1.0.1 p8-platform-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                p8-platform
categories          multimedia
license             GPL-2+
maintainers         nomaintainer
description         Pulse-Eight platform library
long_description    Platform support library used by libCEC and binary add-ons for Kodi
homepage            https://www.pulse-eight.com/

checksums           md5     0d655ee34b30ac1887c8168a9743dd04 \
                    sha1    32c7955a9ec5bdbe30fcc9f7c7d0466db42441c7 \
                    rmd160  07981887169663e48b5a50693b81cd7a9c6a634f \
                    sha256  56074379574a1148c570d9794ef34932f06acb4d79395e9f1d175e53ff5acef3

depends_build-append \
                    port:pkgconfig

cmake.out_of_source yes

set docdir          ${prefix}/share/doc/${name}

post-destroot {
     xinstall -m 0755 -d ${destroot}${docdir}
     
     xinstall -m 0644 -W ${worksrcpath} \
         debian/changelog.in \
         debian/copyright \
         README.md \
         ${destroot}${docdir}
}
