source: trunk/dports/gis/gctpc/Portfile

Last change on this file was 121276, checked in by takeshi@…, 3 years ago

gctpc: svn propset svn:keywords Id

  • 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 121276 2014-06-21 23:52:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gctpc
7version             20
8revision            1
9categories          gis
10platforms           darwin
11license             Unknown
12maintainers         takeshi
13description         The General Cartographic Transformation Package
14long_description    \
15    The General Cartographic Transformation Package (GCTP) is a system of \
16    software routines designed to permit the transformation of coordinate \
17    pairs from one map projection to another.
18homepage            http://edcftp.cr.usgs.gov/pub/software/gctpc/
19master_sites        ${homepage}
20distname            ${name}${version}
21extract.suffix      .tar.Z
22worksrcdir          ${name}/source
23
24checksums           rmd160  dabacf08b0c977cfa537b0c7aa28cdd6c5d3eb83 \
25                    sha256  217eae42f580175a04bae11b87afc59fde4f770aeccc16c90ef9f826a94fa66b
26
27patch.dir           ${workpath}/${name}
28patchfiles          patch-test-test_proj-Makefile.diff
29
30use_configure       no
31
32pre-build {
33    file copy ${filespath}/makefile.gctpc ${worksrcpath}
34}
35
36variant universal {}
37if {[variant_isset universal]} {
38    set cflags "${configure.cflags} ${configure.universal_cflags}"
39    set ldflags "${configure.ldflags} ${configure.universal_ldflags}"
40} else {
41    set cflags "${configure.cflags} ${configure.cc_archflags}"
42    set ldflags "${configure.ldflags} ${configure.cc_archflags}"
43}
44
45build.env-append    LDFLAGS=\"${ldflags}\" \
46                    CC=\"${configure.cc}\" \
47                    CPPFLAGS=\"${configure.cppflags}\" \
48                    CFLAGS=\"${cflags}\"
49build.target        ""
50build.args-append   "-f makefile.gctpc"
51
52destroot {
53    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
54    xinstall -m 755 -d ${destroot}${prefix}/include/${name}
55    foreach f {cproj.h proj.h} {
56        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/include/${name}
57    }
58    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
59    file copy ${workpath}/${name}/test ${destroot}${prefix}/share/${name}
60    xinstall -m 755 -d ${destroot}${prefix}/share/doc
61    file copy ${workpath}/${name}/doc ${destroot}${prefix}/share/doc/${name}
62}
Note: See TracBrowser for help on using the repository browser.