[125375] trunk/dports/devel
takeshi at macports.org
takeshi at macports.org
Mon Sep 15 05:55:51 PDT 2014
Revision: 125375
https://trac.macports.org/changeset/125375
Author: takeshi at macports.org
Date: 2014-09-15 05:55:51 -0700 (Mon, 15 Sep 2014)
Log Message:
-----------
vecLibFort: add to the repository
Added Paths:
-----------
trunk/dports/devel/vecLibFort/
trunk/dports/devel/vecLibFort/Portfile
trunk/dports/devel/vecLibFort/files/
trunk/dports/devel/vecLibFort/files/patch-Makefile.diff
Added: trunk/dports/devel/vecLibFort/Portfile
===================================================================
--- trunk/dports/devel/vecLibFort/Portfile (rev 0)
+++ trunk/dports/devel/vecLibFort/Portfile 2014-09-15 12:55:51 UTC (rev 125375)
@@ -0,0 +1,32 @@
+# -*- 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
+
+github.setup mcg1969 vecLibFort 0.4.1
+categories devel math science
+platforms darwin
+maintainers takeshi
+license Boost-1.0
+description Fortran interface to vecLib BLAS/LAPACK
+long_description \
+ vecLibFort is lightweight but flexible "shim" designed to rectify \
+ the incompatibilities between the Accelerate/vecLib \
+ BLAS and LAPACK libraries shipped with Mac OS X and \
+ FORTRAN code compiled with modern compilers such as GNU Fortran.
+
+checksums rmd160 37598523a301c04f170e348f674fd7d28940e5e3 \
+ sha256 103a46b966868971983b717182b14fe7884f5656e6e4b939153e2d6b2b2b60ca
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+build.args CC=${configure.cc} \
+ CFLAGS="${configure.cflags} [get_canonical_archflags]" \
+ PREFIX=${prefix} \
+ LD=${configure.cc} \
+ DESTDIR=${destroot}${prefix}
+
+destroot.args PREFIX=${prefix}
Property changes on: trunk/dports/devel/vecLibFort/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/vecLibFort/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/vecLibFort/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/vecLibFort/files/patch-Makefile.diff 2014-09-15 12:55:51 UTC (rev 125375)
@@ -0,0 +1,43 @@
+--- Makefile.orig 2014-07-31 01:32:44.000000000 +0900
++++ Makefile 2014-09-15 09:33:31.000000000 +0900
+@@ -12,6 +12,8 @@
+ PRELOAD=$(LIBRARY)I.dylib
+ INCLUDES=cloak.h static.h
+ DEPEND=$(INCLUDES) Makefile
++LD=clang
++FC=gfortran
+
+ all: static dynamic preload
+ static: $(STATIC)
+@@ -25,25 +27,24 @@
+ ranlib $@
+
+ $(DYNAMIC): $(OBJECT)
+- clang -shared -o $@ $^ \
++ $(LD) -shared -o $@ $^ \
+ -Wl,-reexport_framework -Wl,Accelerate \
+ -install_name $(LIBDIR)/$@
+
+ $(PRELOAD): $(SOURCE) $(DEPEND)
+- clang -shared $(CFLAGS) -DVECLIBFORT_INTERPOSE -o $@ -O $(SOURCE) \
++ $(LD) -shared $(CFLAGS) -DVECLIBFORT_INTERPOSE -o $@ -O $(SOURCE) \
+ -Wl,-reexport_framework -Wl,Accelerate \
+ -install_name $(LIBDIR)/$@
+
+ install: all
+- mkdir -p $(LIBDIR)
+- cp -f $(STATIC) $(LIBDIR)
+- cp -f $(DYNAMIC) $(LIBDIR)
+- cp -f $(PRELOAD) $(LIBDIR)
++ cp -f $(STATIC) $(DESTDIR)$(LIBDIR)
++ cp -f $(DYNAMIC) $(DESTDIR)$(LIBDIR)
++ cp -f $(PRELOAD) $(DESTDIR)$(LIBDIR)
+
+ clean:
+ rm -f $(OBJECT) $(STATIC) $(DYNAMIC) $(PRELOAD)
+
+ check: tester.f90 $(OBJECT)
+- gfortran -o tester -O $^ -framework Accelerate
++ $(FC) -o tester -O $^ -framework Accelerate
+ ./tester
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140915/559fb374/attachment.html>
More information about the macports-changes
mailing list