# -*- 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        libyal libewf 20140608
revision            1
categories          security
platforms           darwin
maintainers         nomaintainer
license             LGPL-3+

description         Libewf is a library for support of the Expert Witness Compression Format

long_description    Libewf is a library for support of the Expert Witness \
                    Compression Format (EWF), it support both the SMART \
                    format (EWF-S01) and the EnCase format (EWF-E01). \
                    Libewf allows you to read and write media information \
                    within the EWF files.

master_sites        https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/

checksums           rmd160  bd86f502d9e196dde0de81753595b7b34daa545f \
                    sha256  d14030ce6122727935fbd676d0876808da1e112721f3cb108564a4d9bf73da71

depends_build       port:pkgconfig

depends_lib         port:bzip2 \
                    port:gettext \
                    port:libiconv \
                    path:lib/libssl.dylib:openssl \
                    path:lib/pkgconfig/fuse.pc:osxfuse \
                    port:zlib

# osxfuse is not universal
universal_variant   no

configure.args      --with-bzip2=${prefix} \
                    --with-libfuse=${prefix} \
                    --with-openssl=${prefix} \
                    --with-zlib=${prefix} \
                    --without-libbfio \
                    --without-libcaes \
                    --without-libcdata \
                    --without-libcdatetime \
                    --without-libcerror \
                    --without-libcfile \
                    --without-libclocale \
                    --without-libcnotify \
                    --without-libcpath \
                    --without-libcsplit \
                    --without-libcstring \
                    --without-libcsystem \
                    --without-libcthreads \
                    --without-libfcache \
                    --without-libfdata \
                    --without-libfvalue \
                    --without-libhmac \
                    --without-libmfdata \
                    --without-libodraw \
                    --without-libsmdev \
                    --without-libsmraw \
                    --without-libuna \
                    --without-libuuid

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}