Ticket #32853: Portfile

File Portfile, 1.7 KB (added by mklein-de (Michael Klein), 12 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name              gpsphoto
6version           1.157
7categories        gis
8maintainers       puffin.lb.shuttle.de:michael.klein openmaintainer
9description       geotagging utility for digital photos
10long_description  ${name} geotags digital photos by using GPS track \
11                  data recorded at the same time. Matches are based on \
12                  closest timestamps. An optionally generated Google \
13                  Earth KML or KMZ file contains the GPS tracks and the \
14                  geotagged photos.
15
16platforms         darwin
17supported_archs   noarch
18homepage          http://www.carto.net/projects/photoTools/gpsPhoto
19
20master_sites      http://gps2photo.cvs.sourceforge.net/viewvc/gps2photo/gpsPhoto/src
21
22extract.suffix
23use_configure     no
24
25dist_subdir       ${name}/${version}
26distname          gpsPhoto.pl
27worksrcdir        .
28
29checksums         rmd160  2ee71e9d76b66e3f595a77d51901c365a232fd16 \
30                  sha256  642e00054a7a877cf0bdd1107d5a92950fd2f20c6ceeeeaa9fba018d8515644e
31
32depends_lib       port:p5-image-exiftool port:p5-xml-parser
33
34fetch {
35        eval curl fetch ${master_sites}/${distname}?revision=${version} ${distpath}/${distname}
36}
37
38extract {
39        file copy ${distpath}/${distname} ${worksrcpath}
40}
41
42patch {
43        reinplace "s,/usr/bin/perl,${prefix}/bin/perl," ${worksrcpath}/${distname}
44}
45
46build {
47        system "cd ${worksrcpath} && pod2man < ${distname} > ${distname}.1"
48}
49
50destroot {
51        xinstall -m 755 ${worksrcpath}/${distname} ${destroot}/${prefix}/bin
52        xinstall -m 444 ${worksrcpath}/${distname}.1 ${destroot}/${prefix}/share/man/man1
53}
54
55livecheck.type    regex
56livecheck.url     ${master_sites}
57livecheck.regex   {^# \$Id: gpsPhoto.pl,v ([0-9.]+)}