[64063] trunk/dports/gis

takeshi at macports.org takeshi at macports.org
Sat Feb 20 23:51:39 PST 2010


Revision: 64063
          http://trac.macports.org/changeset/64063
Author:   takeshi at macports.org
Date:     2010-02-20 23:51:36 -0800 (Sat, 20 Feb 2010)
Log Message:
-----------
libproj4: added for use in gnudatalanguage in place of proj

Added Paths:
-----------
    trunk/dports/gis/libproj4/
    trunk/dports/gis/libproj4/Portfile

Added: trunk/dports/gis/libproj4/Portfile
===================================================================
--- trunk/dports/gis/libproj4/Portfile	                        (rev 0)
+++ trunk/dports/gis/libproj4/Portfile	2010-02-21 07:51:36 UTC (rev 64063)
@@ -0,0 +1,53 @@
+# -*- 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                libproj4
+version             3_20081120
+categories          gis
+maintainers         takeshi
+description         Cartographic projections C libary
+homepage            http://home.comcast.net/~gevenden56/proj/index.html
+platforms           darwin
+master_sites        http://home.comcast.net/~gevenden56/proj/
+long_description    a comprehensive library of cartographic projection functions \
+                    and lproj that performs cartographic projections on tabular data
+
+distname            ${name}.${version}
+worksrcdir          ${name}
+checksums           md5     fd3f085f5f772be6f0831c538ae4f70e \
+                    sha1    d66bc9de0a5612c5efe9172c76e11a9b1a655d61 \
+                    rmd160  97d82a408e9e8fd1994477a9591bf6b6bfda3a76
+
+use_bzip2           yes
+
+use_configure       no
+
+patch {
+    reinplace "s|\$T -L./ -lproj4 \$(gsll) \$(thrl) -lm|\$(LDFLAGS)|" ${worksrcpath}/Makefile
+}
+
+variant universal {}
+use_parallel_build  no
+build.args-append   -e
+build.target        libproj4 lproj
+if {![variant_isset universal]} {
+    build.env-append    CC=${configure.cc} \
+                        CFLAGS=\"-I. -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 \
+                                 ${configure.cflags} ${configure.cc_archflags}\" \
+                        LDFLAGS=\"-L./ -lproj4 ${configure.ldflags} -lgsl -lgslcblas\"
+} else {
+    build.env-append    CC=${configure.cc} \
+                        CFLAGS=\"-I. -DPROJ_HAVE_GSL=1 -DPROJ_HAVE_THREADS=1 \
+                                 ${configure.cflags} ${configure.universal_cflags}\" \
+                        LDFLAGS=\"-L./ -lproj4 ${configure.ldflags} ${configure.universal_ldflags} -lgsl -lgslcblas\"
+}
+
+depends_lib         port:gsl
+
+destroot {
+    xinstall -m 644 ${worksrcpath}/libproj4.a ${destroot}${prefix}/lib/
+    xinstall -m 644 ${worksrcpath}/lib_proj.h ${destroot}${prefix}/include/
+    xinstall -m 755 ${worksrcpath}/lproj ${destroot}${prefix}/bin/
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100220/e4dd0ffe/attachment.html>


More information about the macports-changes mailing list