# -*- 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: Portfile 83234 2011-08-29 06:01:44Z ryandesign@macports.org $

PortSystem          1.0

name                libranlib
version             1.0
categories          math
platforms           darwin
maintainers         nomaintainer

description         Library of Routines for Random Number Generation

long_description    This library provides routines that return: Beta random \
                    deviates, Chi-square random deviates, Exponential random \
                    deviates, F random deviates, Gamma random deviates, \
                    Multivariate normal random deviates (mean and covariance \
                    matrix specified), Noncentral chi-square random deviates, \
                    Noncentral F random deviates, Univariate normal random \
                    deviates, Random permutations of an integer array, Real \
                    uniform random deviates between specif, Binomial random \
                    deviates, Negative Binomial random deviates, Multinomial \
                    random deviates, Poisson random deviates, Integer uniform \
                    deviates between specified limits and Seeds for the \
                    random number generator calculated from a character string.

homepage            ftp://ftp.netlib.org/random/
master_sites        ftp://ftp.netlib.org/random/
distname            ranlib.c

fetch.use_epsv      no
fetch.user          anonymous
fetch.password      guest@macports.org

checksums           md5     110d02ab91eb834e45044bb0368dfb7e

worksrcdir          ${worksrcdir}/src

post-extract {
    file copy ${filespath}/Makefile ${worksrcpath}
}

use_configure       no

variant universal {}

build.args          CC=${configure.cc} \
                    CFLAGS="[get_canonical_archflags] -fno-common" \
                    prefix=${prefix}

eval destroot.args  ${build.args}
