# -*- 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        sshock AFFLIBv3 3.7.20 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                afflib
categories          security
maintainers         nomaintainer
license             BSD

description         The Advanced Forensic Format

long_description    AFF(R) is an open and extensible file format designed \
                    to store disk images and associated metadata.

checksums           rmd160  8268c228bd30a5a7f516f905cfba91316a56dd1a \
                    sha256  cbc64858ac59f50d44f906b72e116ee261517c33f26fca14b65db3ae5de2a6b8 \
                    size    560519

depends_lib         port:expat \
                    path:lib/libssl.dylib:openssl \
                    port:readline \
                    port:zlib

patchfiles          patch-configure.ac.diff

use_autoreconf      yes

configure.args      --enable-fuse=no \
                    --enable-s3=no

##                  --with-ssl=${prefix} \
##                  --with-zlib=${prefix}


variant s3 description {Enable the use of Amazon's S3 service} {
    depends_lib-append      port:curl

    configure.args-append   --enable-s3=yes \
                            --with-curl=${prefix}/lib
    configure.args-delete   --enable-s3=no
}


## untested....
## variant fuse description {Access AFF data through FUSE} {
##      configure.args-append   --enable-fuse=yes
##      configure.args-delete   --enable-fuse=no
## }