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

github.setup        acaudwell Gource 0.56 gource-
name                gource
revision            0
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

distname            gource-${version}
checksums           rmd160  ddd8f8ad3873116369b7cdc4c101d96e5a0f37ef \
                    sha256  332d89b9a979b17417fbce0edd72b19914f1409fd126a13d11787d0e15dc0d79 \
                    size    903712
github.tarball_from releases

depends_build       port:glm \
                    path:bin/pkg-config:pkgconfig

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

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

compiler.cxx_standard \
                    2011

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