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

github.setup        Velocidex c-aff4 fd984ea3cddc034740d5d03ba510a407a2e451a3
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                aff4
epoch               1
version             1.0-20180212
revision            4
categories          security
license             Apache-2
maintainers         {ricci @ghosthound} openmaintainer
description         AFF4 -The Advanced Forensics File Format
long_description    The Advanced Forensics File Format 4 (AFF4) is an open source \
                    format used for the storage of digital evidence and data.

checksums           rmd160  08295532a5abaa4634e40913af5cf8ed0786f3bf \
                    sha256  9cf9eebd7146191d59feeac182cc00133921d074702d2d5683895ff0ce0c79bf \
                    size    667085

depends_lib-append  port:ossp-uuid \
                    port:pcrexx \
                    port:raptor2 \
                    port:snappy \
                    port:tclap \
                    port:uriparser \
                    port:yaml-cpp \
                    port:zlib

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh
autoreconf.args     --verbose

depends_build-append port:autoconf \
                    port:automake \
                    port:libtool \
                    port:pkgconfig \
                    port:spdlog0
# Not compatible with spdlog 1.x:
# https://github.com/Velocidex/c-aff4/issues/38

patchfiles          nobundle.patch

compiler.cxx_standard \
                    2011

test.run            yes
test.target         check