source: trunk/dports/gis/libproj4/Portfile

Last change on this file was 143516, checked in by devans@…, 2 years ago

some dependents of gsl: increment revision to rebuild with gsl 2.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 143516 2015-12-14 06:09:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libproj4
7version             3_20081120
8revision            4
9categories          gis
10maintainers         takeshi
11description         Cartographic projections C libary
12homepage            http://home.comcast.net/~gevenden56/proj/index.html
13platforms           darwin
14master_sites        http://home.comcast.net/~gevenden56/proj/
15long_description    a comprehensive library of cartographic projection functions \
16                    and lproj that performs cartographic projections on tabular data
17
18distname            ${name}.${version}
19worksrcdir          ${name}
20checksums           md5     fd3f085f5f772be6f0831c538ae4f70e \
21                    sha1    d66bc9de0a5612c5efe9172c76e11a9b1a655d61 \
22                    rmd160  97d82a408e9e8fd1994477a9591bf6b6bfda3a76
23
24use_bzip2           yes
25
26depends_lib         port:gsl
27use_configure       no
28
29patch {
30    reinplace "s|\$T -L./ -lproj4 \$(gsll) \$(thrl) -lm|\$(LDFLAGS)|" ${worksrcpath}/Makefile
31}
32
33variant universal {}
34use_parallel_build  no
35build.args-append   -e
36build.target        libproj4 lproj
37if {![variant_isset universal]} {
38    build.env-append    CC=${configure.cc} \
39                        CFLAGS=\"-I. ${configure.cppflags} -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 \
40                                 ${configure.cflags} ${configure.cc_archflags}\" \
41                        LDFLAGS=\"-L./ -lproj4 ${configure.ldflags} ${configure.cc_archflags} -lgsl -lgslcblas\"
42} else {
43    build.env-append    CC=${configure.cc} \
44                        CFLAGS=\"-I. ${configure.cppflags} -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 \
45                                 ${configure.cflags} ${configure.universal_cflags}\" \
46                        LDFLAGS=\"-L./ -lproj4 ${configure.ldflags} ${configure.universal_ldflags} -lgsl -lgslcblas\"
47}
48
49destroot {
50    xinstall -m 644 ${worksrcpath}/libproj4.a ${destroot}${prefix}/lib/
51    xinstall -m 644 ${worksrcpath}/lib_proj.h ${destroot}${prefix}/include/
52    xinstall -m 755 ${worksrcpath}/lproj ${destroot}${prefix}/bin/lproj4
53}
Note: See TracBrowser for help on using the repository browser.