# -*- 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: Portfile 119124 2014-04-17 22:22:49Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        gerard ext4fuse 0.1.3 v
categories          fuse
license             GPL-2
platforms           darwin
maintainers         nomaintainer

description         ext4 filesystem in user space
long_description    Implementation of the ext4 filesystem in user space, \
                    using the FUSE library. This allows read-only access.

checksums           rmd160  33b3f6c3a72f86daec20fe191340f9a1e3294c70 \
                    sha256  9fdf0d1855d62d6ab108157d627e62b4996144a8eb49a38b094712f924448694

depends_build-append \
                    port:pkgconfig
depends_lib-append  path:lib/libfuse.dylib:osxfuse \
                    port:libiconv

use_configure       no

variant universal {}

build.env           CC=${configure.cc} \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

build.target

destroot            {
    xinstall -m 755 ${worksrcpath}/ext4fuse ${destroot}${prefix}/bin/
}
