# $Id$ PortSystem 1.0 name shapelib version 1.2.10 set libver 1 categories graphics maintainers shadow@dementia.org description Library and tools for dealing with ESRI ShapeFiles long_description This software provides support for the ESRI ShapeFiles. homepage http://gdal.velocet.ca/projects/shapelib/index.html platforms darwin master_sites http://dl.maptools.org/dl/shapelib/ distname ${name}-${version} checksums md5 4d96bd926167193d27bf14d56e2d484e use_configure no build.target all shptree.o destroot.destdir post-build { cd ${worksrcpath} system "cc -dynamiclib -all_load \ -install_name ${prefix}/lib/libshp.${version}.dylib \ -compatibility_version ${version} \ -o libshp.${version}.dylib shpopen.o shptree.o \ dbfopen.o" } pre-destroot {} destroot.target {} post-destroot { cd ${worksrcpath} system "install -m 755 -d \ ${destroot}${prefix}/include" system "install -m 755 -d \ ${destroot}${prefix}/lib" system "install -m 644 -c \ shapefil.h ${destroot}${prefix}/include" system "install -m 644 -c \ shapefil.h ${destroot}${prefix}/include" system "install -m 644 -c \ libshp.${version}.dylib ${destroot}${prefix}/lib" system "ln -sf libshp.${version}.dylib \ ${destroot}/${prefix}/lib/libshp.${libver}.dylib" system "ln -sf libshp.${version}.dylib \ ${destroot}/${prefix}/lib/libshp.dylib" }