Ticket #1466: Portfile

File Portfile, 1.6 KB (added by shadow@…, 20 years ago)

Portfile for libgeotiff collection

Line 
1# $Id: Portfile,v 1.15 2003/08/08 21:25:26 waqar Exp $
2
3PortSystem 1.0
4name            libgeotiff
5version         1.2.1
6set libver      1
7categories      graphics
8maintainers     shadow@dementia.org
9description     Library and tools for dealing with GeoTIFF
10long_description This software provides support for the Tag Image File \
11                 Format (TIFF) Geo extensions.
12homepage        http://www.remotesensing.org/geotiff/
13platforms       darwin
14master_sites    ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/
15distname        ${portname}-${portversion}
16checksums       md5 cd02f28915f964e4aa914e0e1b39ab4b
17
18depends_lib     lib:libtiff.3:tiff lib:libproj.0:proj
19
20configure.env   MANPATH=${prefix}/man
21
22configure.args  --with-zip=${prefix} --with-jpeg=${prefix} \
23                --with-proj=${prefix} --enable-incode-epsg
24
25destroot.destdir
26build.env       DESTDIR=${destroot}
27destroot.env    DESTDIR=${destroot}
28
29post-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
36pre-destroot    "file mkdir ${destroot}/${prefix}"
37
38post-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" }