[143309] trunk/dports/math/shogun/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Sat Dec 12 09:26:29 PST 2015
Revision: 143309
https://trac.macports.org/changeset/143309
Author: dstrubbe at macports.org
Date: 2015-12-10 08:45:29 -0800 (Thu, 10 Dec 2015)
Log Message:
-----------
shogun: Use compilers portgroup for Fortran.
Modified Paths:
--------------
trunk/dports/math/shogun/Portfile
Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile 2015-12-10 13:12:12 UTC (rev 143308)
+++ trunk/dports/math/shogun/Portfile 2015-12-10 16:45:29 UTC (rev 143309)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
name shogun
version 2.1.0
@@ -15,7 +16,7 @@
maintainers nomaintainer
-description The machine learning toolbox's focus is on large scale \
+description The machine-learning toolbox's focus is on large-scale \
kernel methods
long_description ${description} and especially on Support Vector Machines \
@@ -41,6 +42,7 @@
depends_build-append port:pkgconfig
+# FIXME: enable use of OpenBLAS(-devel) and Accelerate/vecLibFort?
depends_lib-append port:hdf5 \
port:json-c \
port:libxml2 \
@@ -64,54 +66,18 @@
}
}
-# Define compilers variants
-configure.args-append --ldflags=-lgfortran
-configure.env-append POSTLINKFLAGS="-L${prefix}/lib/gcc47"
-
-set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-set default_fortran_variant +gcc48
-
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}
-
- foreach over ${gcc_versions} {
- if {${ver} == ${over}} {
- continue
- }
-
- set over_no_dot [join [split ${over} "."] ""]
- append variant_line " conflicts gcc${over_no_dot}"
- }
- append variant_line { {}}
-
- eval $variant_line
-
- if {[variant_isset gcc${ver_no_dot}]} {
- if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
- set default_fortran_variant ""
- }
- }
+compilers.choose fc f77 f90
+compilers.setup require_fortran
+pre-configure {
+ configure.args-append --ldflags=${compilers.libfortran}
}
-if {${default_fortran_variant} != ""} {
- default_variants "${default_fortran_variant}"
-}
+# These compiler warnings appear:
+#clang: warning: argument unused during compilation: '-mcpu=native'
+#clang: warning: argument unused during compilation: '-pthread'
+#ld: warning: directory not found for option '-L../libshogun'
+#ld: warning: directory not found for option '-LDYLD_LIBRARY_PATH'
-foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- if {[variant_isset gcc${ver_no_dot}]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc${ver_no_dot}
-
- configure.fc ${prefix}/bin/gfortran-mp-${ver}
- configure.f77 ${prefix}/bin/gfortran-mp-${ver}
- configure.f90 ${prefix}/bin/gfortran-mp-${ver}
- }
-}
-
# Define python variants
set pythons_suffixes {26 27}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/d72608aa/attachment.html>
More information about the macports-changes
mailing list