# -*- 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                libdc1394
version             2.2.6
revision            0
categories          devel
license             LGPL-2.1+
platforms           darwin

maintainers         nomaintainer

description         Library for Firewire IIDC Cameras
long_description    libdc1394 is a library that provides a complete \
                    high level application programming interface (API) \
                    for developers who wish to control IEEE 1394 based \
                    cameras that conform to the 1394-based Digital \
                    Camera Specifications (also known as the IIDC or \
                    DCAM Specifications).

homepage            https://damien.douxchamps.net/ieee1394/libdc1394/

master_sites        sourceforge

checksums           rmd160  3af4130b2979e22e17a03d34301a5239fc177b12 \
                    sha256  2b905fc9aa4eec6bdcf6a2ae5f5ba021232739f5be047dec8fe8dd6049c10fed \
                    size    612067

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/libusb-1.0.pc:libusb \
                    port:libsdl

patchfiles          patch-01-macosx-status.diff

post-patch {
	reinplace "s:-lIOKit:-framework IOKit:" \
		${worksrcpath}/configure \
		${worksrcpath}/dc1394/macosx/Makefile.am \
		${worksrcpath}/dc1394/macosx/Makefile.in
}

configure.args      --disable-examples \
                    --disable-sdltest

livecheck.regex     "libdc1394-2/(\\d+(?:\\.\\d+)*)"