# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name shapelib version 1.3.0 set libver 1 categories graphics platforms darwin maintainers nomaintainer license LGPL-2+ description Library and tools for dealing with ESRI ShapeFiles long_description This software provides support for the ESRI ShapeFiles. homepage http://shapelib.maptools.org master_sites http://download.osgeo.org/shapelib/ checksums rmd160 8b6a6a47c1fecc1f679129d40901776b656cdc29 \ sha256 23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f use_configure no variant universal {} build.target all shptree.o build.args CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]" post-build { set libcmd "${configure.cc} [get_canonical_archflags] -dynamiclib -all_load \ -install_name ${prefix}/lib/libshp.${version}.dylib \ -compatibility_version ${version} \ -o libshp.${version}.dylib shpopen.o shptree.o \ dbfopen.o safileio.o" ui_info $libcmd system -W ${worksrcpath} $libcmd } destroot.destdir destroot.target post-destroot { xinstall -m 644 -c -W ${worksrcpath} shapefil.h ${destroot}${prefix}/include xinstall -m 644 -c -W ${worksrcpath} libshp.${version}.dylib ${destroot}${prefix}/lib ln -s libshp.${version}.dylib ${destroot}${prefix}/lib/libshp.${libver}.dylib ln -s libshp.${version}.dylib ${destroot}${prefix}/lib/libshp.dylib }