# -*- 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
set branch [join [lrange [split ${version} .] 0 1] .]
set minor [lindex [split ${version} .] end]
description Computational fluid dynamics data container.
The CFD General Notation System (CGNS) provides a general, portable, \
and extensible standard for the storage and retrieval of computational \
fluid dynamics (CFD) analysis data. It consists of a collection of \
conventions, and free and open software implementing those conventions. \
It is self-descriptive, machine-independent, well-documented, and \
administered by an international steering committee.
homepage http://cgns.sourceforge.net/
master_sites sourceforge:cgns
distname ${name}_${branch}-${minor}
worksrcdir ${name}_${branch}
checksums sha1 38f934cae9d0cac1137e51640116f9a750c8d420 \
rmd160 1c7452605afb664f4661cd057ccbb4e0c9230ed7
configure.args-append --enable-lfs
system "cd ${worksrcpath}/tools && make"
destroot.destdir INCLUDEDIR=${destroot}${prefix}/include \
LIBDIR=${destroot}${prefix}/lib
xinstall -m 755 -W ${worksrcpath}/tools \
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} \
# cgnslib 2.5.4_0 installed items directly in ${prefix}; remove them if found
# Note: check if this is the appropriate solution
foreach file {include/cgnslib.h include/cgnslib_f.h include/cgnswin_f.h lib/libcgns.a} {
set filepath ${prefix}/${file}
if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {