# -*- 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
# $Id$

PortSystem          1.0
PortGroup           github 1.0

name                google-glog
github.setup        google glog 0.3.4 v
checksums           rmd160 63e7cf4e100c9b60f989035a775609f8abd8076f \
                    sha256 ca79393258ecbcd7d4f51759c99cfbbce2b5be8fa60e34231b585bf9475d6eff

categories          devel
maintainers         hum openmaintainer

description         Logging library for C++
long_description    The glog library implements application-level logging. \
                    This library provides logging APIs based on C++-style \
                    streams and various helper macros.

platforms           darwin
license             BSD

variant gflags description {Includes gflags command line control of logging} { 
    configure.args-append --with-gflags=${prefix} 
    depends_lib-append port:gflags 
} 
 
default_variants +gflags 

post-destroot {
    set dest_doc ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${dest_doc}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog doc/designstyle.css doc/glog.html \
        ${dest_doc}
}