# -*- 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 cgnslib version 2.5.5 set branch [join [lrange [split ${version} .] 0 1] .] set minor [lindex [split ${version} .] end] categories science platforms darwin maintainers nomaintainer license zlib description Computational fluid dynamics data container. long_description \ 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 # cgns tools post-build { system "cd ${worksrcpath}/tools && make" } destroot.destdir INCLUDEDIR=${destroot}${prefix}/include \ LIBDIR=${destroot}${prefix}/lib post-destroot { xinstall -m 755 -W ${worksrcpath}/tools \ cgnsversion \ cgnspack \ cgnsdiff \ cgnscheck \ cgnslist \ ${destroot}${prefix}/bin set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ LICENSE \ README \ ${docdir} } # cgnslib 2.5.4_0 installed items directly in ${prefix}; remove them if found # Note: check if this is the appropriate solution post-install { 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"} { if {[catch {delete ${filepath}}]} { ui_warn "Cannot delete ${filepath}; please remove it manually" } } } }