# -*- 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 libraw version 0.21.2 revision 0 checksums rmd160 7fe2461241ec66e0b63fdeffdc76d2033ade2b48 \ sha256 fe7288013206854baf6e4417d0fb63ba4ed7227bf36fff021992671c2dd34b03 \ size 1639305 description Library for RAW image manipulation long_description A library for reading RAW files obtained from digital photo \ cameras (CRW/CR2, NEF, RAF, DNG, and others). categories graphics license {LGPL-2.1 CDDL} maintainers nomaintainer homepage https://www.libraw.org master_sites ${homepage}/data/ distname LibRaw-${version} depends_build port:pkgconfig depends_lib port:jasper \ path:include/turbojpeg.h:libjpeg-turbo \ port:lcms2 use_autoreconf yes autoreconf.args -fvi # libraw_datastream.h:125:8: error: no template named 'unique_ptr' in namespace 'std' compiler.cxx_standard 2011 # disable openmp as it is not consistently applicable in MacPorts at present configure.args-append --disable-openmp configure.cppflags-append -DUSE_X3FTOOLS # don't hardcode a link against libstc++ patchfiles-append patch-libraw-no-libstdcxx.diff post-destroot { set htmlDir ${destroot}${prefix}/share/doc/${name}/html xinstall -d -m 0755 ${htmlDir} xinstall -m 644 {*}[glob -directory ${worksrcpath}/doc/ *.html] ${htmlDir} } livecheck.type regex livecheck.url ${homepage}/download/ livecheck.regex "LibRaw-(\\d+(?:\\.\\d+)*)${extract.suffix}"