# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            fairthreads
version         1.0
maintainers     nomaintainer
categories      devel
license         LGPL
platforms       darwin
description     Fair Threads in C

long_description \
    FairThreads offers a very simple framework for concurrent and parallel programming. \
    Basically, it defines schedulers which are synchronization servers, to which threads can \
    dynamically link or unlink. All threads linked to the same scheduler are executed in a \
    cooperative way, at the same pace, and they can synchronize and communicate using broadcast \
    events. Threads which are not linked to any scheduler are executed by the OS in a \
    preemptive way, at their own pace. FairThreads offers programming constructs for \
    linking and unlinking threads.

homepage        http://www-sop.inria.fr/mimosa/rp/FairThreads/FTC/
master_sites    $homepage
distname        ft_v${version}_src
extract.suffix  .tar

checksums       md5     f649f13b0937b1e4f5e4f45aa259d39e \
                sha1    b23d74b493da63dff01d5c372312045cde95b54e \
                rmd160  9a7be313c2421ce7b4c9a856c4b7f1c08217a088

extract.cmd     cat
extract.pre_args

worksrcdir      ft_v${version}/src

use_configure   no

destroot.destdir    LIB_DIR=${destroot}${prefix}/lib \
                    INCL_DIR=${destroot}${prefix}/include

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 {*}[glob -path ${worksrcpath}/../doc/ *.html] ${destroot}${docdir}
}

universal_variant   no

livecheck.type  none
