source: trunk/dports/graphics/dcraw/Portfile @ 53520

Last change on this file since 53520 was 53520, checked in by ryandesign@…, 8 years ago

dcraw: update description

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 53520 2009-07-07 14:41:39Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    dcraw
6version                 8.95-20090704172500
7set version_number      [lindex [split ${version} -] 0]
8categories              graphics
9maintainers             ryandesign
10platforms               darwin
11homepage                http://www.cybercom.net/~dcoffin/dcraw/
12master_sites            ${homepage}archive/
13distname                ${name}-${version_number}
14worksrcdir              $name
15dist_subdir             ${name}/${version}
16use_parallel_build      yes
17
18description \
19    Digital camera raw photo decoding software supporting hundreds of cameras
20
21long_description \
22    ${name} is a small program for processing raw, unprocessed CCD data \
23    files from any of hundreds of digital cameras with better quality output \
24    than the tools provided by camera vendors.
25
26checksums \
27    md5     b4cf5f275bd87ef998924d9576c90996 \
28    sha1    fb447b7fd03edc355f5f1cf34e7a3042128791ae \
29    rmd160  1e3e95c7e025aa52a8fbb420236af87dff551356
30
31depends_lib \
32    port:gettext \
33    port:libiconv \
34    port:jpeg \
35    port:lcms
36
37post-extract {
38    xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile
39}
40
41configure {
42    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
43    reinplace "s|@CFLAGS@|${configure.cflags}|g" ${worksrcpath}/Makefile
44    reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile
45    reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/Makefile
46    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
47}
48
49set my_locales          {eo ru fr it de pt es zh_TW zh_CN nl pl hu ca cs sv}
50
51post-destroot {
52    xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1
53    foreach locale ${my_locales} {
54        if {[file exist ${worksrcpath}/dcraw_${locale}.1]} {
55            xinstall -m 755 -d ${destroot}${prefix}/share/man/${locale}/man1
56            xinstall -m 644 -W ${worksrcpath} dcraw_${locale}.1 ${destroot}${prefix}/share/man/${locale}/man1/dcraw.1
57        }
58        if {[file exist ${worksrcpath}/build/dcraw_${locale}.mo]} {
59            xinstall -m 755 -d ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES
60            xinstall -m 644 -W ${worksrcpath}/build dcraw_${locale}.mo ${destroot}${prefix}/share/locale/${locale}/LC_MESSAGES/dcraw.mo
61        }
62    }
63}
64
65pre-activate {
66    ui_msg "This port conflicts with ufraw. If this port fails to"
67    ui_msg "activate, uninstall or deactivate ufraw and attempt to"
68    ui_msg "activate this port again."
69}
70
71livecheck.check         regex
72livecheck.url           http://www.ryandesign.com/macports/version.php/${name}
73livecheck.regex         (.*)
Note: See TracBrowser for help on using the repository browser.