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

name                mtpfs
version             1.1
revision            1
categories          sysutils
maintainers         {snc @nerdling} openmaintainer
license             GPL-3
description         read and write from any MTP device
long_description    MTPfs is a FUSE filesystem that supports reading and \
                    writing from any MTP device (as supported by libmtp)
homepage            https://www.adebenham.com/mtpfs/

platforms           freebsd darwin
depends_build       port:pkgconfig
depends_lib         port:libmtp port:osxfuse path:lib/pkgconfig/glib-2.0.pc:glib2 port:libmad port:libid3tag

# osxfuse is not universal
universal_variant   no

master_sites        https://www.adebenham.com/files/mtp

checksums           rmd160  2fb67b80a95445369412166cdfbe5b88b1a74f24 \
                    sha256  1baf357de16995a5f0b5bc1b6833517a77456481d861cdba70f1ce1316ce4c1d

patchfiles          patch-mtpfs.h.diff
post-patch {
    reinplace s|-DFUSE_USE_VERSION=22|-DFUSE_USE_VERSION=25| ${worksrcpath}/Makefile.in
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)
