source: trunk/dports/graphics/shapelib/Portfile

Last change on this file was 140023, checked in by takeshi@…, 2 years ago

shapelib: update to 1.3.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 140023 2015-09-07 08:11:54Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                shapelib
7version             1.3.0
8set libver          1
9categories          graphics
10platforms           darwin
11maintainers         nomaintainer
12license             LGPL-2+
13
14description         Library and tools for dealing with ESRI ShapeFiles
15
16long_description    This software provides support for the ESRI ShapeFiles.
17
18homepage            http://shapelib.maptools.org
19master_sites        http://download.osgeo.org/shapelib/
20
21checksums           rmd160 8b6a6a47c1fecc1f679129d40901776b656cdc29 \
22                    sha256 23d474016158ab5077db2f599527631706ba5c0dc7c4178a6a1d685bb014f68f
23
24use_configure       no
25
26variant universal {}
27
28build.target        all shptree.o
29
30build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
31
32post-build {
33    set libcmd "${configure.cc} [get_canonical_archflags] -dynamiclib -all_load \
34        -install_name ${prefix}/lib/libshp.${version}.dylib \
35        -compatibility_version ${version} \
36        -o libshp.${version}.dylib shpopen.o shptree.o \
37        dbfopen.o safileio.o"
38    ui_info $libcmd
39    system -W ${worksrcpath} $libcmd
40}
41
42destroot.destdir
43destroot.target
44
45post-destroot {
46    xinstall -m 644 -c -W ${worksrcpath} shapefil.h ${destroot}${prefix}/include
47    xinstall -m 644 -c -W ${worksrcpath} libshp.${version}.dylib ${destroot}${prefix}/lib
48    ln -s libshp.${version}.dylib ${destroot}${prefix}/lib/libshp.${libver}.dylib
49    ln -s libshp.${version}.dylib ${destroot}${prefix}/lib/libshp.dylib
50}
Note: See TracBrowser for help on using the repository browser.