aboutsummaryrefslogtreecommitdiffstats
path: root/math/lapack
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2015-04-02 14:45:10 +0800
committermaho <maho@FreeBSD.org>2015-04-02 14:45:10 +0800
commitb41f336887e4cd0c9e502d002c6f065b8506cf28 (patch)
treeb6c4f7169f59a3c22825fb322f7958fcd084a3fb /math/lapack
parent6f387bff012c6442939ebd6a8701bc0186bccc90 (diff)
downloadfreebsd-ports-gnome-b41f336887e4cd0c9e502d002c6f065b8506cf28.tar.gz
freebsd-ports-gnome-b41f336887e4cd0c9e502d002c6f065b8506cf28.tar.zst
freebsd-ports-gnome-b41f336887e4cd0c9e502d002c6f065b8506cf28.zip
math/lapacke : update port to slave port of math/lapack, and updated to
3.5.0 accordingly. PR: 98614 Submitted by: phd_kimberlite@yahoo.co.jp
Diffstat (limited to 'math/lapack')
-rw-r--r--math/lapack/Makefile32
-rw-r--r--math/lapack/pkg-plist13
2 files changed, 38 insertions, 7 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index 34ba355db8a0..876416d4cfd0 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -39,9 +39,20 @@ WRKSRC_STATIC= ${WRKSRC}
ALL_TARGET= blaslib
BLASLIB= ../../libblas.a
LIBS= blas
-PLIST_SUB+= BLAS="" LAPACK="@comment " XLAPACK="@comment "
+PLIST_SUB+= BLAS="" LAPACK="@comment " XLAPACK="@comment " LAPACKE="@comment "
SVERSION= 2
TEST_TARGET= blas_testing
+.elif defined(LAPACKE_SLAVEPORT)
+ALL_TARGET= lapackelib
+LAPACKELIB= liblapacke.a
+LAPACKETMGLIB= liblapacke_tmg.a
+MAKE_ENV+= LAPACKELIB="${LAPACKELIB}" LAPACKETMGLIB="${LAPACKETMGLIB}"
+LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \
+ liblapack.so:${PORTSDIR}/math/lapack
+LIBS= lapacke lapacke_tmg
+INCLS= lapacke lapacke_utils lapacke_mangling
+PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="@comment " LAPACKE=""
+SVERSION= 1
.else
ALL_TARGET= lib
BLASLIB?= -L${LOCALBASE}/lib -lblas
@@ -59,11 +70,11 @@ S= \#
LIB_DEPENDS+= libxblas.so:${PORTSDIR}/math/xblas
MAKE_ENV+= USEXBLAS=yes XBLASLIB="${XBLASLIB}"
P= x
-PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK=""
+PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="" LAPACKE="@comment "
XBLASLIB?= -L${LOCALBASE}/lib -lxblas
.else
PLIST_FILES+= ${MAN3L:S|^|man/man3/|:S|$|.gz|}
-PLIST_SUB+= BLAS="@comment " LAPACK="" XLAPACK="@comment "
+PLIST_SUB+= BLAS="@comment " LAPACK="" XLAPACK="@comment " LAPACKE="@comment "
.if defined(MAINTAINER_MODE)
BUILD_DEPENDS += doxygen:${PORTSDIR}/devel/doxygen
MAN_TARGET= build-manpages
@@ -107,7 +118,9 @@ post-patch:
s@^(OPTS[[:blank:]]*=)(.*)@\1 $${FFLAGS} $${EXTRAFLAGS}@; \
s@^NOOPT[[:blank:]]*=.*@& $${EXTRAFLAGS}@; \
s@^(LOADOPTS[[:blank:]]*=)(.*)@\1 $${LDFLAGS} $${EXTRAFLAGS}@; \
- \@(BLAS|RAN)LIB[[:blank:]]*=@d;' \
+ s@^(CC[[:blank:]]*=)(.*)@@; \
+ s@^(CFLAGS[[:blank:]]*)(=)(.*)@\1 += $${EXTRAFLAGS}@; \
+ \@(BLAS|LAPACKE|RAN)LIB[[:blank:]]*=@d;' \
${WRKSRC}/make.inc.example > ${WRKSRC}/make.inc
@${REINPLACE_CMD} -e 's@\./lapack_testing\.py@${S} &@' \
${WRKSRC}/Makefile
@@ -153,8 +166,8 @@ TESTS ?= test-static
TESTS ?= test-profile
.endif
+.if !defined(LAPACKE_SLAVEPORT)
check regression-test test: ${TESTS}
-
.for o in PROFILE SHARED STATIC
test-${o:tl}: build-${o:tl}
.if ${PORT_OPTIONS:M${o}}
@@ -164,9 +177,9 @@ test-${o:tl}: build-${o:tl}
.if defined(BLAS_SLAVEPORT)
@${CAT} ${WRKSRC_${o}}/BLAS/*.out
.endif
-
.endif
.endfor
+.endif
do-install:
.for L in ${LIBS}
@@ -182,10 +195,15 @@ do-install:
@${INSTALL_DATA} ${WRKSRC_PROFILE}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}_p.a
.endif
.endfor
+.if defined(LAPACKE_SLAVEPORT)
+.for I in ${INCLS}
+ @${INSTALL_DATA} ${WRKSRC}/lapacke/include/${I}.h ${STAGEDIR}${PREFIX}/include
+.endfor
+.endif
.include <bsd.port.pre.mk>
-.if !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT))
+.if !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT))
.include "${FILESDIR}/manpages"
diff --git a/math/lapack/pkg-plist b/math/lapack/pkg-plist
index 5f59f47506b2..8b84a6fb6256 100644
--- a/math/lapack/pkg-plist
+++ b/math/lapack/pkg-plist
@@ -23,3 +23,16 @@
%%XLAPACK%%%%SHARED%%lib/libxtmglib.so
%%XLAPACK%%%%SHARED%%lib/libxtmglib.so.%%SVERSION%%
%%XLAPACK%%%%PROFILE%%lib/libxtmglib_p.a
+%%LAPACKE%%include/lapacke.h
+%%LAPACKE%%include/lapacke_utils.h
+%%LAPACKE%%include/lapacke_mangling.h
+%%LAPACKE%%%%STATIC%%lib/liblapacke.a
+%%LAPACKE%%%%SHARED%%lib/liblapacke_pic.a
+%%LAPACKE%%%%SHARED%%lib/liblapacke.so
+%%LAPACKE%%%%SHARED%%lib/liblapacke.so.%%SVERSION%%
+%%LAPACKE%%%%PROFILE%%lib/liblapacke_p.a
+%%LAPACKE%%%%STATIC%%lib/liblapacke_tmg.a
+%%LAPACKE%%%%SHARED%%lib/liblapacke_tmg_pic.a
+%%LAPACKE%%%%SHARED%%lib/liblapacke_tmg.so
+%%LAPACKE%%%%SHARED%%lib/liblapacke_tmg.so.%%SVERSION%%
+%%LAPACKE%%%%PROFILE%%lib/liblapacke_tmg_p.a