# -*- 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
maintainers {takeshi @tenomoto}
description The General Cartographic Transformation Package
The General Cartographic Transformation Package (GCTP) is a system of \
software routines designed to permit the transformation of coordinate \
pairs from one map projection to another.
homepage http://edcftp.cr.usgs.gov/pub/software/gctpc/
distname ${name}${version}
worksrcdir ${name}/source
checksums rmd160 dabacf08b0c977cfa537b0c7aa28cdd6c5d3eb83 \
sha256 217eae42f580175a04bae11b87afc59fde4f770aeccc16c90ef9f826a94fa66b
patch.dir ${workpath}/${name}
patchfiles patch-test-test_proj-Makefile.diff
file copy ${filespath}/makefile.gctpc ${worksrcpath}
if {[variant_isset universal]} {
set cflags "${configure.cflags} ${configure.universal_cflags}"
set ldflags "${configure.ldflags} ${configure.universal_ldflags}"
set cflags "${configure.cflags} ${configure.cc_archflags}"
set ldflags "${configure.ldflags} ${configure.cc_archflags}"
build.env-append LDFLAGS=\"${ldflags}\" \
CPPFLAGS=\"${configure.cppflags}\" \
build.args-append "-f makefile.gctpc"
xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
xinstall -m 755 -d ${destroot}${prefix}/include/${name}
foreach f {cproj.h proj.h} {
xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/include/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
file copy ${workpath}/${name}/test ${destroot}${prefix}/share/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/doc
file copy ${workpath}/${name}/doc ${destroot}${prefix}/share/doc/${name}