1 | # $Id: Portfile,v 1.15 2003/08/08 21:25:26 waqar Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name libgeotiff |
---|
5 | version 1.2.1 |
---|
6 | set libver 1 |
---|
7 | categories graphics |
---|
8 | maintainers shadow@dementia.org |
---|
9 | description Library and tools for dealing with GeoTIFF |
---|
10 | long_description This software provides support for the Tag Image File \ |
---|
11 | Format (TIFF) Geo extensions. |
---|
12 | homepage http://www.remotesensing.org/geotiff/ |
---|
13 | platforms darwin |
---|
14 | master_sites ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ |
---|
15 | distname ${portname}-${portversion} |
---|
16 | checksums md5 cd02f28915f964e4aa914e0e1b39ab4b |
---|
17 | |
---|
18 | depends_lib lib:libtiff.3:tiff lib:libproj.0:proj |
---|
19 | |
---|
20 | configure.env MANPATH=${prefix}/man |
---|
21 | |
---|
22 | configure.args --with-zip=${prefix} --with-jpeg=${prefix} \ |
---|
23 | --with-proj=${prefix} --enable-incode-epsg |
---|
24 | |
---|
25 | destroot.destdir |
---|
26 | build.env DESTDIR=${destroot} |
---|
27 | destroot.env DESTDIR=${destroot} |
---|
28 | |
---|
29 | post-build { cd ${worksrcpath} |
---|
30 | system "cc -dynamiclib -all_load \ |
---|
31 | -install_name ${prefix}/lib/libgeotiff.${portversion}.dylib \ |
---|
32 | -compatibility_version ${portversion} \ |
---|
33 | -o libgeotiff.${portversion}.dylib libgeotiff.a -L${prefix}/lib \ |
---|
34 | -lproj -ltiff -ljpeg -lz" } |
---|
35 | |
---|
36 | pre-destroot "file mkdir ${destroot}/${prefix}" |
---|
37 | |
---|
38 | post-destroot { system "rm ${destroot}/${prefix}/lib/libgeotiff.a" |
---|
39 | cd ${worksrcpath} |
---|
40 | system "install -m 755 -d ${destroot}/${prefix}/lib" |
---|
41 | system "install -m 644 -c \ |
---|
42 | libgeotiff.${portversion}.dylib ${destroot}${prefix}/lib" |
---|
43 | system "ln -sf libgeotiff.${portversion}.dylib \ |
---|
44 | ${destroot}/${prefix}/lib/libgeotiff.${libver}.dylib" |
---|
45 | system "ln -sf libgeotiff.${portversion}.dylib \ |
---|
46 | ${destroot}/${prefix}/lib/libgeotiff.dylib" } |
---|