1 | # $Id: Portfile,v 1.15 2003/08/08 21:25:26 waqar Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name shapelib |
---|
5 | version 1.2.10 |
---|
6 | set libver 1 |
---|
7 | categories graphics |
---|
8 | maintainers shadow@dementia.org |
---|
9 | description Library and tools for dealing with ESRI ShapeFiles |
---|
10 | long_description This software provides support for the ESRI ShapeFiles. |
---|
11 | homepage http://gdal.velocet.ca/projects/shapelib/index.html |
---|
12 | platforms darwin |
---|
13 | master_sites ftp://gdal.velocet.ca/pub/outgoing/ |
---|
14 | distname ${portname}-${portversion} |
---|
15 | checksums md5 4d96bd926167193d27bf14d56e2d484e |
---|
16 | |
---|
17 | configure {} |
---|
18 | build.target all shptree.o |
---|
19 | |
---|
20 | destroot.destdir |
---|
21 | |
---|
22 | post-build { cd ${worksrcpath} |
---|
23 | system "cc -dynamiclib -all_load \ |
---|
24 | -install_name ${prefix}/lib/libshp.${portversion}.dylib \ |
---|
25 | -compatibility_version ${portversion} \ |
---|
26 | -o libshp.${portversion}.dylib shpopen.o shptree.o \ |
---|
27 | dbfopen.o" } |
---|
28 | |
---|
29 | pre-destroot {} |
---|
30 | |
---|
31 | destroot.target {} |
---|
32 | |
---|
33 | post-destroot { cd ${worksrcpath} |
---|
34 | system "install -m 755 -d \ |
---|
35 | ${destroot}${prefix}/include" |
---|
36 | system "install -m 755 -d \ |
---|
37 | ${destroot}${prefix}/lib" |
---|
38 | system "install -m 644 -c \ |
---|
39 | shapefil.h ${destroot}${prefix}/include" |
---|
40 | system "install -m 644 -c \ |
---|
41 | shapefil.h ${destroot}${prefix}/include" |
---|
42 | system "install -m 644 -c \ |
---|
43 | libshp.${portversion}.dylib ${destroot}${prefix}/lib" |
---|
44 | system "ln -sf libshp.${portversion}.dylib \ |
---|
45 | ${destroot}/${prefix}/lib/libshp.${libver}.dylib" |
---|
46 | system "ln -sf libshp.${portversion}.dylib \ |
---|
47 | ${destroot}/${prefix}/lib/libshp.dylib" } |
---|