# $Id: Portfile 83567 2011-09-06 01:48:33Z ryandesign@macports.org $

PortSystem       1.0

name             fastlink
version          4.1P
revision         1
categories       science
maintainers      nomaintainer
description	 Genetic Analysis Software
long_description Genetic linkage analysis is a statistical technique \
                 used to map genes and find the approximate location \
                 of disease genes.
homepage         http://www.ncbi.nlm.nih.gov/CBBresearch/Schaffer/fastlink.html
master_sites     http://ftp.ncbi.nih.gov/pub/fastlink/ \
                 ftp://ftp.ncbi.nih.gov/pub/fastlink/
platforms        darwin
distfiles        fastlink.tar.Z
dist_subdir      ${name}/${version}_1

checksums        rmd160  50482843cf91287b72cc1bc833a1e3a5c4f64665 \
                 sha256  277226e6192f9750a80e6a092f72144096394bc6cfb158e12dabf6d2247bef0b

worksrcdir       ${name}/${version}/src

use_configure    no

variant universal {}

build.target     installfast

build.args       CC=${configure.cc} \
                 EXTRAFLAGS="${configure.cppflags} -I/usr/include -I/usr/include/malloc ${configure.ldflags} [get_canonical_archflags]"

destroot         {
                 xinstall -m 755 -W ${worksrcpath} lodscore ilink linkmap mlink unknown ${destroot}${prefix}/bin
                 xinstall -m 755 -d ${destroot}${prefix}/share/doc/fastlink
                 eval xinstall -m 444 [glob ${workpath}/fastlink/README.*] ${destroot}$prefix/share/doc/fastlink
                 eval xinstall -m 444 [glob ${workpath}/fastlink/*.ps] ${destroot}$prefix/share/doc/fastlink
}
