# -*- 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           boost   1.0

github.setup        acaudwell Gource 0.54 gource-
name                gource
revision            2
categories          devel
license             GPL-3+
maintainers         nomaintainer

description         Version Control Visualization Tool

long_description    Gource is a tool that can be used to visualize who \
                    committed when, and to which files. It supports git, CVS, \
                    Mercurial, Bazaar, and svn.

homepage            https://gource.io/
github.tarball_from releases
distname            gource-${version}

checksums           rmd160  43a5f753b8a0574fd69aa744f63d64f9c51df26a \
                    sha256  1dcbcedf65d2cf4d69fe0b633e54c202926c08b829bcad0b73eaf9e29cd6fae5 \
                    size    900831

depends_build       port:glm \
                    port:pkgconfig

depends_lib         port:ftgl \
                    port:libsdl2 \
                    port:libsdl2_image \
                    port:pcre2 \
                    port:libpng \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:glew \
                    port:freetype \
                    port:tinyxml

post-patch {
    file delete -force ${worksrcpath}/src/tinyxml
}

compiler.cxx_standard \
                    2011

configure.args      --with-boost=[boost::install_area] \
                    --with-tinyxml
