# -*- 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

PortSystem          1.0

name                libranlib
version             1.0
revision            1
categories          math
license             Restrictive/Distributable Noncommercial
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            http://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 cc] -fno-common" \
                    prefix="${prefix}"

destroot.args  {*}${build.args}
