source: trunk/dports/graphics/dcraw/Portfile

Last change on this file was 148514, checked in by ryandesign@…, 17 months ago

dcraw: update to 9.27.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- 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
2# $Id: Portfile 148514 2016-05-11 05:17:42Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    dcraw
7version                 9.27.0
8categories              graphics
9maintainers             ryandesign openmaintainer
10license                 GPL-2+
11platforms               darwin
12homepage                http://www.cybercom.net/~dcoffin/dcraw/
13master_sites            ${homepage}archive/
14worksrcdir              ${name}
15use_configure           no
16use_parallel_build      yes
17
18description             Digital camera raw photo decoding software supporting \
19                        hundreds of cameras
20
21long_description        ${name} is a small program for processing raw, \
22                        unprocessed CCD data files from any of hundreds of \
23                        digital cameras with better quality output than the \
24                        tools provided by camera vendors.
25
26checksums               rmd160  a08397a230a34e08d942bed73e9c3184e0477a57 \
27                        sha256  c1d8cc4f19752a3d3aaab1fceb712ea85b912aa25f1f33f68c69cd42ef987099
28
29depends_lib             port:gettext \
30                        port:libiconv \
31                        port:jpeg \
32                        port:jasper \
33                        port:lcms2
34
35post-extract {
36    xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
37}
38
39patchfiles              patch-dcraw.c.diff
40
41variant universal {}
42
43build.args              CC="${configure.cc} [get_canonical_archflags]" \
44                        CFLAGS="${configure.cflags}" \
45                        CPPFLAGS="${configure.cppflags}" \
46                        LDFLAGS="${configure.ldflags}" \
47                        PREFIX=${prefix}
48
49destroot.args           PREFIX=${prefix}
50
51set my_locales          {ca cs da de eo es fr hu it nl pl pt ru sv zh_CN zh_TW}
52
53post-destroot {
54    xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1
55    foreach locale ${my_locales} {
56        if {[file exists ${worksrcpath}/dcraw_${locale}.1]} {
57            xinstall -m 755 -d ${destroot}${prefix}/share/man/${locale}/man1
58            xinstall -m 644 -W ${worksrcpath} dcraw_${locale}.1 ${destroot}${prefix}/share/man/${locale}/man1/dcraw.1
59        }
60        if {[file exists ${worksrcpath}/build/dcraw_${locale}.mo]} {
61            xinstall -m 755 -d ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES
62            xinstall -m 644 -W ${worksrcpath}/build dcraw_${locale}.mo ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES/dcraw.mo
63        }
64    }
65}
66
67livecheck.type          regex
68livecheck.url           [lindex ${master_sites} 0]
69livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.