[111442] trunk/dports/math
Ryan Schmidt
ryandesign at macports.org
Mon Sep 23 03:52:25 PDT 2013
On Sep 22, 2013, at 03:37, nicos at macports.org wrote:
> Revision: 111442
> https://trac.macports.org/changeset/111442
> Author: nicos at macports.org
> Date: 2013-09-22 01:37:28 -0700 (Sun, 22 Sep 2013)
> Log Message:
> -----------
> OpenBLAS: new port
>
> Added Paths:
> -----------
> trunk/dports/math/OpenBLAS/
> trunk/dports/math/OpenBLAS/Portfile
> trunk/dports/math/OpenBLAS/files/
> trunk/dports/math/OpenBLAS/files/patch-libnoarch.diff
>
> Added: trunk/dports/math/OpenBLAS/Portfile
> ===================================================================
> --- trunk/dports/math/OpenBLAS/Portfile (rev 0)
> +++ trunk/dports/math/OpenBLAS/Portfile 2013-09-22 08:37:28 UTC (rev 111442)
> @@ -0,0 +1,115 @@
> +# -*- 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
> +PortGroup github 1.0
> +PortGroup muniversal 1.0
> +
> +version 0.2.8
> +github.setup xianyi OpenBLAS ${version} v
You're meant to just put the version number into the github.setup line, i.e.:
github.setup xianyi OpenBLAS 0.2.8 v
This sets the name and version variables for you, as well as several others.
> +variant gcc45 conflicts gcc46 gcc47 gcc48 \
> + description "Use Gcc45 as compiler" {
> + configure.compiler macports-gcc-4.5
> +}
> +
> +variant gcc46 conflicts gcc45 gcc47 gcc48 \
> + description "Use Gcc46 as compiler" {
> + configure.compiler macports-gcc-4.6
> +}
> +
> +variant gcc47 conflicts gcc45 gcc46 gcc48 \
> + description "Use Gcc47 as compiler" {
> + configure.compiler macports-gcc-4.7
> +}
> +
> +variant gcc48 conflicts gcc45 gcc46 gcc47 \
> + description "Use Gcc48 as compiler" {
> + configure.compiler macports-gcc-4.8
> +}
> +
> +if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && \
> + ![variant_isset gcc48]} {
> + default_variants +gcc47
> +}
Unless there's a specific reason not to do so, the default should be gcc48 now.
https://trac.macports.org/wiki/PortfileRecipes#gcc
More information about the macports-dev
mailing list