# -*- 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                libptp2
version             1.1.10
revision            1
categories          devel
license             GPL-2+
platforms           darwin
maintainers         nomaintainer

description         libptp2 is a library used to communicate with PTP devices like digital cameras.

long_description    libptp2 is a library used to communicate with PTP devices like still \
                    imaging cameras or MP3 players (KODAK mc3). You can download files \
                    or tweak camera properties using ptpcam program bundled with libptp2.

homepage            http://libptp.sourceforge.net/
master_sites        sourceforge:project/libptp/libptp2/libptp2-${version}

checksums           md5     5a0e2965d1077c316d6ae6a8cef96238 \
                    sha1    b671b029c869b330780f4ebb0cb91d0a850946a1 \
                    rmd160  f29a1422e096e3376e141a72c2f916abc0446843

depends_lib         port:libusb-compat

use_parallel_build  no

destroot.target     install-strip

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog INSTALL README TODO \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      sourceforge
livecheck.name      libptp
livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
