Ticket #1652: Portfile

File Portfile, 1.4 KB (added by shadow@…, 21 years ago)

Portfile for shapelib

Line 
1# $Id: Portfile,v 1.15 2003/08/08 21:25:26 waqar Exp $
2
3PortSystem 1.0
4name            shapelib
5version         1.2.10
6set libver      1
7categories      graphics
8maintainers     shadow@dementia.org
9description     Library and tools for dealing with ESRI ShapeFiles
10long_description This software provides support for the ESRI ShapeFiles.
11homepage        http://gdal.velocet.ca/projects/shapelib/index.html
12platforms       darwin
13master_sites    ftp://gdal.velocet.ca/pub/outgoing/
14distname        ${portname}-${portversion}
15checksums       md5 4d96bd926167193d27bf14d56e2d484e
16
17configure {}
18build.target    all shptree.o
19
20destroot.destdir
21
22post-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
29pre-destroot    {}
30
31destroot.target   {}
32
33post-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" }