Permalink
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (52 sloc) 2.25 KB
# -*- 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
PortSystem 1.0
name gctpc
version 20
revision 1
categories gis
platforms darwin
license Unknown
maintainers {takeshi @tenomoto}
description The General Cartographic Transformation Package
long_description \
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/
master_sites ${homepage}
distname ${name}${version}
extract.suffix .tar.Z
worksrcdir ${name}/source
checksums rmd160 dabacf08b0c977cfa537b0c7aa28cdd6c5d3eb83 \
sha256 217eae42f580175a04bae11b87afc59fde4f770aeccc16c90ef9f826a94fa66b
patch.dir ${workpath}/${name}
patchfiles patch-test-test_proj-Makefile.diff
use_configure no
pre-build {
file copy ${filespath}/makefile.gctpc ${worksrcpath}
}
variant universal {}
if {[variant_isset universal]} {
set cflags "${configure.cflags} ${configure.universal_cflags}"
set ldflags "${configure.ldflags} ${configure.universal_ldflags}"
} else {
set cflags "${configure.cflags} ${configure.cc_archflags}"
set ldflags "${configure.ldflags} ${configure.cc_archflags}"
}
build.env-append LDFLAGS=\"${ldflags}\" \
CC=\"${configure.cc}\" \
CPPFLAGS=\"${configure.cppflags}\" \
CFLAGS=\"${cflags}\"
build.target ""
build.args-append "-f makefile.gctpc"
destroot {
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}
}