mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
53 lines
1.7 KiB
Tcl
53 lines
1.7 KiB
Tcl
# -*- 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.4
|
|
revision 0
|
|
|
|
checksums rmd160 17e00654b27c95f537e320a6ba2579fab5a17fa4 \
|
|
sha256 6be43f19397e43214ff56aab056bf3ff4925ca14012ce5a1538a172406a09e63 \
|
|
size 1383350
|
|
|
|
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}"
|