# -*- 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            libimobiledevice ifuse 1.1.4
github.tarball_from     releases
revision                1
categories              fuse devel
license                 LGPL-2.1
maintainers             {@therealketo gmail.com:therealketo} openmaintainer
description             A fuse filesystem to access the contents of iOS devices
long_description        {*}${description}.

homepage                https://libimobiledevice.org/

checksums               rmd160  03c646a374a2724db9eed0e4ffbe6acbc9fa5062 \
                        sha256  3550702ef94b2f5f16c7db91c6b3282b2aed1340665834a03e47458e09d98d87 \
                        size    94137

use_bzip2               yes

depends_build-append    port:autoconf \
                        port:automake \
                        port:libtool \
                        path:bin/pkg-config:pkgconfig

depends_lib-append      path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:libimobiledevice \
                        port:libplist \
                        port:macfuse

# Add support for legacy systems using osxfuse instead
if {${os.platform} eq "darwin" && ${os.major} < 16} {
    depends_lib-replace port:macfuse port:osxfuse
}

configure.args          --disable-silent-rules
