Ticket #1686: Portfile.diff

File Portfile.diff, 3.0 KB (added by simon@…, 20 years ago)

Portfile diff

  • Portfile

     
    11# $Id: Portfile,v 1.6 2003/10/18 08:15:18 fkr Exp $
    22
    33PortSystem 1.0
    4 name            jhead
    5 version         2.0
    6 categories      graphics
    7 platforms       darwin
    8 maintainers     simon@cotsworth.com
    9 description     Program for extracting Digicam setting information from Exif Jpeg headers.
    10 
    11 long_description        jhead is used to display and manipulate data contained in \
    12                         the Exif header of jpeg images from digital cameras. By \
    13                         default, jhead displays the more useful camera settings \
    14                         from the file in a user friendly format. \
    15                         jhead can also be used to manipulate some aspects of the \
    16                         image relating to jpeg and Exif headers, such as changing \
    17                         the internal timestamps, removing the thumbnail, or \
    18                         transferring Exif headers back into edited images after \
    19                         graphical editors deleted the exif header. jhead can also \
    20                         be used to launch other programs, similar in style to \
    21                         the UNIX find command, but much simpler.
     4name                    jhead
     5version                 2.1
     6categories              graphics
     7platforms               darwin
     8maintainers             simon@cotsworth.com
     9description             Program for extracting Digicam setting information from Exif Jpeg headers.
    2210
    23 homepage        http://www.sentex.net/~mwandel/jhead/
     11long_description        ${name} is used to display and manipulate data contained in \
     12                                the Exif header of jpeg images from digital cameras. By \
     13                                default, jhead displays the more useful camera settings \
     14                                from the file in a user friendly format. \
     15                                jhead can also be used to manipulate some aspects of the \
     16                                image relating to jpeg and Exif headers, such as changing \
     17                                the internal timestamps, removing the thumbnail, or \
     18                                transferring Exif headers back into edited images after \
     19                                graphical editors deleted the exif header. jhead can also \
     20                                be used to launch other programs, similar in style to \
     21                                the UNIX find command, but much simpler.
     22
     23homepage        http://www.sentex.net/~mwandel/${name}/
    2424master_sites    ${homepage}
    25 checksums       md5 0fa7c878390b5019b017f3c5d087a35e
     25checksums       md5 882081eb1f41cb3d3791f8dc87a27e0f
    2626
    2727configure       {}
    2828
    2929build.target    jhead
    3030
    31 destroot        { system "install -m 755 -d ${destroot}${prefix}/bin"
    32                   system "install -m 755 ${worksrcpath}/${portname} ${destroot}${prefix}/bin"
    33                   system "install -m 755 -d ${destroot}${prefix}/share/doc/${portname}"
    34                   system "install -m 644 ${worksrcpath}/*.html ${destroot}${prefix}/share/doc/${portname}"
    35                   system "install -m 644 ${worksrcpath}/*.txt ${destroot}${prefix}/share/doc/${portname}"
    36                   system "gunzip ${worksrcpath}/${portname}.1.gz"
    37                   system "install -m 644 ${worksrcpath}/${portname}.1 ${destroot}${prefix}/share/man/man1" }
     31destroot        {
     32        set _d  ${destroot}${prefix}
     33        set _w  ${worksrcpath}
     34        set _dd ${_d}/share/doc/${name}
     35
     36        system "gunzip ${_w}/${name}.1.gz"
     37
     38        xinstall -m 0755 ${_w}/${name} ${_d}/bin
     39        xinstall -m 0644 ${_w}/${name}.1 ${_d}/share/man/man1
     40        xinstall -d -m 0755 ${_dd}
     41
     42        foreach doc [glob ${_w}/*.html ${_w}/*.txt] {
     43                xinstall -m 0644 $doc ${_dd}
     44        }
     45}