Lines 2-225
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME?= lapack |
4 |
PORTNAME?= lapack |
5 |
PORTVERSION= 3.5.0 |
5 |
PORTVERSION= 3.9.0 |
6 |
PORTREVISION?= 8 # Never remove this line, keep PORTREVISION?=0 in case. |
6 |
PORTREVISION?= 0 # Never remove this line, keep PORTREVISION?=0 in case. |
7 |
CATEGORIES= math |
7 |
CATEGORIES= math |
8 |
MASTER_SITES= NL/lapack/ |
8 |
MASTER_SITES= NL/lapack/ |
9 |
DISTFILES= lapack-${PORTVERSION}.tgz |
9 |
DISTFILES= v${PORTVERSION}${EXTRACT_SUFX} |
10 |
.if make(makesum) || !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT)) |
10 |
.if make(makesum) || !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT)) |
11 |
DISTFILES+= manpages-${PORTVERSION}.tgz |
11 |
DISTFILES+= manpages.tgz |
12 |
.endif |
12 |
.endif |
13 |
DIST_SUBDIR= lapack |
13 |
DIST_SUBDIR= lapack |
14 |
|
14 |
|
15 |
MAINTAINER?= fortran@FreeBSD.org |
15 |
MAINTAINER?= fortran@FreeBSD.org |
16 |
COMMENT?= Library of Fortran 77 subroutines for linear algebra |
16 |
COMMENT?= Linear Algebra PACKage |
17 |
|
17 |
|
18 |
LICENSE= BSD3CLAUSE |
18 |
LICENSE= BSD3CLAUSE |
19 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
|
|
20 |
|
19 |
|
21 |
USES= fortran |
20 |
USES= cmake fortran |
|
|
21 |
WRKSRC= ${WRKDIR}/lapack-${PORTVERSION} |
22 |
# The actual math/scilab needs deprecated functions - to be removed later |
23 |
CMAKE_ON= BUILD_SHARED_LIBS BUILD_DEPRECATED |
24 |
USE_LDCONFIG= yes |
22 |
|
25 |
|
23 |
OPTIONS_DEFINE= PROFILE SHARED STATIC |
26 |
SVERSION= ${PORTVERSION:R:R} |
24 |
OPTIONS_DEFAULT= SHARED STATIC |
27 |
PLIST_SUB= SVERSION="${SVERSION}" VER=${PORTVERSION} |
25 |
PROFILE_DESC= Build profiling libraries |
|
|
26 |
SHARED_DESC= Build shared libraries and PIC archives |
27 |
STATIC_DESC= Build (non-PIC) archives |
28 |
|
28 |
|
29 |
MAKE_ENV= BLASLIB="${BLASLIB}" |
|
|
30 |
FFLAGS+= -std=legacy |
31 |
PLIST_SUB= SVERSION="${SVERSION}" |
32 |
|
33 |
WRKSRC= ${WRKDIR}/lapack-${PORTVERSION} |
34 |
WRKSRC_PROFILE= ${WRKSRC}_PROFILE |
35 |
WRKSRC_SHARED= ${WRKSRC}_SHARED |
36 |
WRKSRC_STATIC= ${WRKSRC} |
37 |
|
38 |
.include <bsd.port.options.mk> |
29 |
.include <bsd.port.options.mk> |
39 |
|
30 |
|
40 |
.if defined(BLAS_SLAVEPORT) |
31 |
.if defined(BLAS_SLAVEPORT) |
41 |
ALL_TARGET= blaslib |
32 |
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}/BLAS/SRC |
42 |
BLASLIB= ../../libblas.a |
33 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
|
|
34 |
BLASLIB= libblas.a |
43 |
LIBS= blas |
35 |
LIBS= blas |
44 |
PLIST_SUB+= BLAS="" LAPACK="@comment " XLAPACK="@comment " LAPACKE="@comment " |
36 |
PLIST_SUB+= BLAS="" CBLAS="@comment " LAPACK="@comment " XLAPACK="@comment " LAPACKE="@comment " |
45 |
SVERSION= 2 |
37 |
.elif defined(CBLAS_SLAVEPORT) |
46 |
TEST_TARGET= blas_testing |
38 |
BUILD_DEPENDS+= lapack>0:math/lapack |
|
|
39 |
LIB_DEPENDS+= libblas.so:math/blas |
40 |
CMAKE_ON+= CBLAS |
41 |
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}/CBLAS |
42 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
43 |
CBLASLIB= libcblas.a |
44 |
LIBS= cblas |
45 |
PLIST_SUB+= BLAS="@comment " CBLAS="" LAPACK="@comment " XLAPACK="@comment " LAPACKE="@comment " |
47 |
.elif defined(LAPACKE_SLAVEPORT) |
46 |
.elif defined(LAPACKE_SLAVEPORT) |
48 |
ALL_TARGET= lapackelib |
47 |
USES+= blaslapack |
|
|
48 |
CMAKE_ON+= USE_OPTIMIZED_BLAS USE_OPTIMIZED_LAPACK LAPACKE |
49 |
CMAKE_ARGS+= -DBLAS_LIBRARIES="${LOCALBASE}/lib/libblas.so" \ |
50 |
-DLAPACK_LIBRARIES="${LOCALBASE}/lib/liblapack.so" |
51 |
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}/LAPACKE |
52 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
49 |
LAPACKELIB= liblapacke.a |
53 |
LAPACKELIB= liblapacke.a |
50 |
LAPACKETMGLIB= liblapacke_tmg.a |
54 |
PLIST_SUB+= BLAS="@comment " CBLAS="@comment " LAPACK="@comment " XLAPACK="@comment " LAPACKE="" |
51 |
MAKE_ENV+= LAPACKELIB="${LAPACKELIB}" LAPACKETMGLIB="${LAPACKETMGLIB}" |
55 |
.elif defined(XLAPACK_SLAVEPORT) |
52 |
LIB_DEPENDS+= libblas.so:math/blas \ |
56 |
LIB_DEPENDS+= libblas.so:math/blas \ |
53 |
liblapack.so:math/lapack |
57 |
liblapack.so:math/lapack \ |
54 |
LIBS= lapacke lapacke_tmg |
58 |
libxblas.so:math/xblas |
55 |
INCLS= lapacke lapacke_utils lapacke_mangling |
59 |
CMAKE_ON+= USE_OPTIMIZED_BLAS USE_XBLAS BUILD_TESTING |
56 |
PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="@comment " LAPACKE="" |
60 |
CMAKE_ARGS+= -DBLAS_LIBRARIES="${LOCALBASE}/lib/libblas.so" |
57 |
SVERSION= 1 |
61 |
PLIST_SUB+= BLAS="@comment " CBLAS="@comment " LAPACK="@comment " XLAPACK="" LAPACKE="@comment " |
58 |
.else |
62 |
.else |
59 |
ALL_TARGET= lib |
63 |
# Upstream recommand to use an optimized BLAS, but it would cause conflicts |
60 |
BLASLIB?= -L${LOCALBASE}/lib -lblas |
64 |
# among the dependencies: for an optimized lapack switch to OpenBLAS. |
|
|
65 |
# BUILD_TESTING to get tmglib. |
61 |
LIB_DEPENDS+= libblas.so:math/blas |
66 |
LIB_DEPENDS+= libblas.so:math/blas |
62 |
LIBS= lapack tmglib |
67 |
. if defined(MAINTAINER_MODE) |
63 |
SVERSION= 4 |
68 |
USES+= python:3.6+,build,test |
64 |
TEST_TARGET= lapack_testing |
69 |
. endif |
65 |
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING) |
70 |
CMAKE_ON+= USE_OPTIMIZED_BLAS BUILD_TESTING |
66 |
S= ${PYTHON_CMD} |
71 |
CMAKE_ARGS+= -DBLAS_LIBRARIES="${LOCALBASE}/lib/libblas.so" |
67 |
USES+= python:build |
72 |
LIBS= lapack |
68 |
.else |
|
|
69 |
S= \# |
70 |
.endif |
71 |
.if defined(XLAPACK_SLAVEPORT) |
72 |
LIB_DEPENDS+= libxblas.so:math/xblas |
73 |
MAKE_ENV+= USEXBLAS=yes XBLASLIB="${XBLASLIB}" |
74 |
P= x |
75 |
PLIST_SUB+= BLAS="@comment " LAPACK="@comment " XLAPACK="" LAPACKE="@comment " |
76 |
XBLASLIB?= -L${LOCALBASE}/lib -lxblas |
77 |
.else |
78 |
PLIST_FILES+= ${MAN3L:S|^|man/man3/|:S|$|.gz|} |
73 |
PLIST_FILES+= ${MAN3L:S|^|man/man3/|:S|$|.gz|} |
79 |
PLIST_SUB+= BLAS="@comment " LAPACK="" XLAPACK="@comment " LAPACKE="@comment " |
74 |
PLIST_SUB+= BLAS="@comment " CBLAS="@comment " LAPACK="" XLAPACK="@comment " LAPACKE="@comment " |
80 |
.if defined(MAINTAINER_MODE) |
|
|
81 |
BUILD_DEPENDS += doxygen:devel/doxygen |
82 |
MAN_TARGET= build-manpages |
83 |
.endif |
75 |
.endif |
84 |
.endif |
|
|
85 |
.endif |
86 |
|
76 |
|
87 |
.if ${ARCH} == "sparc64" |
77 |
.include <bsd.port.pre.mk> |
88 |
PICFLAG?= -fPIC |
|
|
89 |
.else |
90 |
PICFLAG?= -fpic |
91 |
.endif |
92 |
|
78 |
|
93 |
FFLAGS_PROFILE?= -pg |
79 |
pre-configure: |
94 |
FFLAGS_SHARED ?= ${PICFLAG} |
80 |
${SED} -Ee '\ |
95 |
|
|
|
96 |
.if ${PORT_OPTIONS:MPROFILE} |
97 |
LDFLAGS+= -static |
98 |
.endif |
99 |
|
100 |
.if ${PORT_OPTIONS:MPROFILE} && !exists(/usr/lib/libc_p.a) |
101 |
IGNORE= you have chosen WITH_PROFILE, but have not installed the\ |
102 |
base system profiling libraries |
103 |
.endif |
104 |
|
105 |
.if ${PORT_OPTIONS:MSHARED} |
106 |
USE_LDCONFIG= yes |
107 |
.endif |
108 |
|
109 |
.for o in PROFILE SHARED STATIC |
110 |
.if ${PORT_OPTIONS:M${o}} |
111 |
PLIST_SUB+= ${o}="" |
112 |
.else |
113 |
PLIST_SUB+= ${o}="@comment " |
114 |
.endif |
115 |
.endfor |
116 |
|
117 |
post-patch: |
118 |
@${SED} -Ee '\ |
119 |
s@^(FORTRAN|LOADER)([[:blank:]]*=)(.*)@\1\2 $${FC}@; \ |
81 |
s@^(FORTRAN|LOADER)([[:blank:]]*=)(.*)@\1\2 $${FC}@; \ |
120 |
s@^(OPTS[[:blank:]]*=)(.*)@\1 $${FFLAGS} $${EXTRAFLAGS}@; \ |
82 |
s@^(OPTS[[:blank:]]*=)(.*)@\1 $${FFLAGS} $${EXTRAFLAGS}@; \ |
121 |
s@^NOOPT[[:blank:]]*=.*@& $${EXTRAFLAGS}@; \ |
83 |
s@^NOOPT[[:blank:]]*=.*@& $${EXTRAFLAGS}@; \ |
122 |
s@^(LOADOPTS[[:blank:]]*=)(.*)@\1 $${LDFLAGS} $${EXTRAFLAGS}@; \ |
84 |
s@^(LOADOPTS[[:blank:]]*=)(.*)@\1 $${LDFLAGS} $${EXTRAFLAGS}@; \ |
123 |
s@^(CC[[:blank:]]*=)(.*)@@; \ |
85 |
s@^(CC[[:blank:]]*=)(.*)@@; \ |
|
|
86 |
s@^(FC[[:blank:]]*=)(.*)@@; \ |
124 |
s@^(CFLAGS[[:blank:]]*)(=)(.*)@\1 += $${EXTRAFLAGS}@; \ |
87 |
s@^(CFLAGS[[:blank:]]*)(=)(.*)@\1 += $${EXTRAFLAGS}@; \ |
|
|
88 |
s@^(FFLAGS[[:blank:]]*=)(.*)@@; \ |
89 |
s@^(LDFLAGS[[:blank:]]*=)(.*)@@; \ |
125 |
\@(BLAS|LAPACKE|RAN)LIB[[:blank:]]*=@d;' \ |
90 |
\@(BLAS|LAPACKE|RAN)LIB[[:blank:]]*=@d;' \ |
126 |
${WRKSRC}/make.inc.example > ${WRKSRC}/make.inc |
91 |
${WRKSRC}/make.inc.example > ${WRKSRC}/make.inc |
127 |
@${REINPLACE_CMD} -e 's@\./lapack_testing\.py@${S} &@' \ |
92 |
${REINPLACE_CMD} -e 's@\./lapack_testing\.py@${S} &@' \ |
128 |
${WRKSRC}/Makefile |
93 |
${WRKSRC}/Makefile |
129 |
.for o in PROFILE SHARED |
94 |
${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ |
130 |
.if ${PORT_OPTIONS:M${o}} |
95 |
${SED} -i ".bak" -e 's|^ifdef|.ifdef|;s|^endif|.endif|' |
131 |
@${CP} -a ${WRKSRC} ${WRKSRC_${o}} |
96 |
.if defined(MAINTAINER_MODE) |
|
|
97 |
${REINPLACE_CMD} -e 's|PythonInterp 2.7|PythonInterp ${PYTHON_VER}|' \ |
98 |
${WRKSRC}/CMakeLists.txt |
132 |
.endif |
99 |
.endif |
133 |
.endfor |
|
|
134 |
|
100 |
|
135 |
do-build: ${MAN_TARGET} build-profile build-shared build-static |
|
|
136 |
|
137 |
.for o in PROFILE SHARED STATIC |
138 |
build-${o:tl}: patch |
139 |
.if ${PORT_OPTIONS:M${o}} |
140 |
${PRINTF} "\n\nBuilding ${o:tl} libraries:\n\n\n" |
141 |
cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} EXTRAFLAGS="${FFLAGS_${o}}" \ |
142 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ARCH="${AR}" ${ALL_TARGET} |
143 |
|
144 |
.endif |
145 |
.endfor |
146 |
|
147 |
.if defined (MAINTAINER_MODE) |
148 |
build-manpages: patch |
149 |
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ |
150 |
${MAKE_ARGS} man |
151 |
|
152 |
.endif |
153 |
|
154 |
post-build: |
101 |
post-build: |
155 |
.if ${PORT_OPTIONS:MSHARED} |
|
|
156 |
.for L in ${LIBS} |
157 |
cd ${WRKSRC_SHARED} ; ${FC} ${FFLAGS} ${FFLAGS_SHARED} ${LDFLAGS} -shared \ |
158 |
-o lib${P}${L}.so.${SVERSION} -Wl,-x -Wl,-soname,lib${P}${L}.so.${SVERSION} \ |
159 |
-Wl,--whole-archive lib${L}.a -Wl,--no-whole-archive |
160 |
.endfor |
161 |
.endif |
162 |
|
163 |
.if ${PORT_OPTIONS:MSHARED} |
164 |
TESTS ?= test-shared |
165 |
.elif ${PORT_OPTIONS:MSTATIC} |
166 |
TESTS ?= test-static |
167 |
.elif ${PORT_OPTIONS:MPROFILE} |
168 |
TESTS ?= test-profile |
169 |
.endif |
170 |
|
171 |
.if !defined(LAPACKE_SLAVEPORT) |
172 |
check regression-test test: ${TESTS} |
173 |
.for o in PROFILE SHARED STATIC |
174 |
test-${o:tl}: build-${o:tl} |
175 |
.if ${PORT_OPTIONS:M${o}} |
176 |
@${PRINTF} "\n\nTesting ${o:tl} libraries:\n\n\n" |
177 |
@cd ${WRKSRC_${o}}; ${SETENV} ${MAKE_ENV} EXTRAFLAGS="${FFLAGS_${o}}" \ |
178 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} ARCH="${AR}" ${TEST_TARGET} |
179 |
.if defined(BLAS_SLAVEPORT) |
102 |
.if defined(BLAS_SLAVEPORT) |
180 |
@${CAT} ${WRKSRC_${o}}/BLAS/*.out |
103 |
${SED} -e 's|%%LIB%%|blas|g;s|cd SRC|cd BLAS/SRC|' ${FILESDIR}/static.mk \ |
|
|
104 |
>> ${BUILD_WRKSRC}/CMakeFiles/blas.dir/build.make |
105 |
(cd ${CONFIGURE_WRKSRC} && ${MAKE} -f BLAS/SRC/CMakeFiles/blas.dir/build.make build-static) |
106 |
.elif defined(CBLAS_SLAVEPORT) |
107 |
${SED} -e 's|%%LIB%%|cblas|g;s|cd SRC|cd CBLAS/src|' ${FILESDIR}/static.mk \ |
108 |
>> ${BUILD_WRKSRC}/src/CMakeFiles/cblas.dir/build.make |
109 |
(cd ${CONFIGURE_WRKSRC} && ${MAKE} -f CBLAS/src/CMakeFiles/cblas.dir/build.make build-static) |
110 |
.elif defined(LAPACKE_SLAVEPORT) |
111 |
${SED} -e 's|%%LIB%%|lapacke|g;s|cd SRC|cd LAPACKE|' ${FILESDIR}/static.mk \ |
112 |
>> ${BUILD_WRKSRC}/CMakeFiles/lapacke.dir/build.make |
113 |
(cd ${CONFIGURE_WRKSRC} && ${MAKE} -f LAPACKE/CMakeFiles/lapacke.dir/build.make build-static) |
114 |
.else # xlapack + Lapack + tmglib |
115 |
${SED} -e 's|%%LIB%%|lapack|g' ${FILESDIR}/static.mk \ |
116 |
>> ${BUILD_WRKSRC}/SRC/CMakeFiles/lapack.dir/build.make |
117 |
(cd ${CONFIGURE_WRKSRC} && ${MAKE} -f SRC/CMakeFiles/lapack.dir/build.make build-static) |
118 |
${SED} -e 's|%%LIB%%|tmglib|g;s|cd SRC|cd TESTING/MATGEN|' ${FILESDIR}/static.mk \ |
119 |
>> ${BUILD_WRKSRC}/TESTING/MATGEN/CMakeFiles/tmglib.dir/build.make |
120 |
(cd ${BUILD_WRKSRC} && ${MAKE} -f TESTING/MATGEN/CMakeFiles/tmglib.dir/build.make build-static) |
181 |
.endif |
121 |
.endif |
182 |
.endif |
|
|
183 |
.endfor |
184 |
.endif |
185 |
|
122 |
|
186 |
do-install: |
|
|
187 |
.for L in ${LIBS} |
188 |
.if ${PORT_OPTIONS:MSTATIC} |
189 |
@${INSTALL_DATA} ${WRKSRC}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}.a |
190 |
.endif |
191 |
.if ${PORT_OPTIONS:MSHARED} |
192 |
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}_pic.a |
193 |
@${INSTALL_DATA} ${WRKSRC_SHARED}/lib${P}${L}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib |
194 |
@${LN} -sf lib${P}${L}.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/lib${P}${L}.so |
195 |
.endif |
196 |
.if ${PORT_OPTIONS:MPROFILE} |
197 |
@${INSTALL_DATA} ${WRKSRC_PROFILE}/lib${L}.a ${STAGEDIR}${PREFIX}/lib/lib${P}${L}_p.a |
198 |
.endif |
199 |
.endfor |
200 |
.if defined(LAPACKE_SLAVEPORT) |
201 |
.for I in ${INCLS} |
202 |
@${INSTALL_DATA} ${WRKSRC}/lapacke/include/${I}.h ${STAGEDIR}${PREFIX}/include |
203 |
.endfor |
204 |
.endif |
205 |
|
206 |
.include <bsd.port.pre.mk> |
207 |
|
208 |
.if !(defined(BLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT)) |
209 |
|
210 |
.include "${FILESDIR}/manpages" |
123 |
.include "${FILESDIR}/manpages" |
211 |
|
124 |
|
212 |
post-install: |
125 |
post-install: |
213 |
@cd ${WRKDIR}/man ; ${ECHO_CMD} ${MAN3L:S|^|man3/|} \ |
126 |
.if defined(BLAS_SLAVEPORT) |
|
|
127 |
${INSTALL_DATA} ${CONFIGURE_WRKSRC}/BLAS/SRC/${BLASLIB} ${STAGEDIR}${PREFIX}/lib |
128 |
${INSTALL_DATA} ${CONFIGURE_WRKSRC}/BLAS/blas.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig |
129 |
.elif defined(CBLAS_SLAVEPORT) |
130 |
# Avoid conflict with OpenBLAS |
131 |
${MKDIR} ${STAGEDIR}${PREFIX}/include/cblas |
132 |
${MV} ${STAGEDIR}${PREFIX}/include/*.h ${STAGEDIR}${PREFIX}/include/cblas/ |
133 |
${INSTALL_DATA} ${BUILD_WRKSRC}/src/${CBLASLIB} ${STAGEDIR}${PREFIX}/lib |
134 |
.elif defined(LAPACKE_SLAVEPORT) |
135 |
# Avoid conflict with OpenBLAS |
136 |
${MKDIR} ${STAGEDIR}${PREFIX}/include/lapacke |
137 |
${MV} ${STAGEDIR}${PREFIX}/include/*.h ${STAGEDIR}${PREFIX}/include/lapacke/ |
138 |
${INSTALL_DATA} ${CONFIGURE_WRKSRC}/LAPACKE/${LAPACKELIB} ${STAGEDIR}${PREFIX}/lib |
139 |
.elif defined(XLAPACK_SLAVEPORT) |
140 |
${INSTALL_DATA} ${BUILD_WRKSRC}/SRC/liblapack.a ${STAGEDIR}${PREFIX}/lib/libxlapack.a |
141 |
${INSTALL_DATA} ${BUILD_WRKSRC}/TESTING/MATGEN/libtmglib.a \ |
142 |
${STAGEDIR}${PREFIX}/lib/libxtmglib.a |
143 |
${MV} ${STAGEDIR}${PREFIX}/lib/liblapack.so \ |
144 |
${STAGEDIR}${PREFIX}/lib/libxlapack.so.${PORTVERSION} |
145 |
${LN} -sf libxlapack.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libxlapack.so |
146 |
${LN} -sf libxlapack.so.${PORTVERSION} \ |
147 |
${STAGEDIR}${PREFIX}/lib/libxlapack.so.${SVERSION} |
148 |
${MV} ${STAGEDIR}${PREFIX}/lib/libtmglib.so \ |
149 |
${STAGEDIR}${PREFIX}/lib/libxtmglib.so.${PORTVERSION} |
150 |
${LN} -sf libxtmglib.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libxtmglib.so |
151 |
${LN} -sf libxtmglib.so.${PORTVERSION} \ |
152 |
${STAGEDIR}${PREFIX}/lib/libxtmglib.so.${SVERSION} |
153 |
${SED} -e 's|lapack|xlapack|g;s|LAPACK|XLAPACK|' \ |
154 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig/lapack.pc \ |
155 |
> ${STAGEDIR}${PREFIX}/libdata/pkgconfig/xlapack.pc |
156 |
${RM} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/lapack.pc |
157 |
.else # Lapack |
158 |
${INSTALL_DATA} ${BUILD_WRKSRC}/SRC/liblapack.a ${STAGEDIR}${PREFIX}/lib |
159 |
${INSTALL_DATA} ${BUILD_WRKSRC}/TESTING/MATGEN/libtmglib.a ${STAGEDIR}${PREFIX}/lib |
160 |
${MV} ${STAGEDIR}${PREFIX}/lib/libtmglib.so \ |
161 |
${STAGEDIR}${PREFIX}/lib/libtmglib.so.${PORTVERSION} |
162 |
${LN} -sf libtmglib.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtmglib.so |
163 |
${LN} -sf libtmglib.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtmglib.so.${SVERSION} |
164 |
.endif |
165 |
.if !(defined(BLAS_SLAVEPORT) || defined(CBLAS_SLAVEPORT) || defined(XLAPACK_SLAVEPORT) || defined(LAPACKE_SLAVEPORT)) |
166 |
cd ${WRKDIR}/man ; ${ECHO_CMD} ${MAN3L:S|^|man3/|} \ |
214 |
| ${XARGS} -J @ ${INSTALL_MAN} @ ${STAGEDIR}${MAN3PREFIX}/man/man3 |
167 |
| ${XARGS} -J @ ${INSTALL_MAN} @ ${STAGEDIR}${MAN3PREFIX}/man/man3 |
|
|
168 |
.endif |
215 |
|
169 |
|
216 |
.if defined(MAINTAINER_MODE) |
|
|
217 |
package-manpages: build-manpages |
218 |
@${RM} ${WRKDIR}/lapack-manpages-${PORTVERSION}.tar.gz ; \ |
219 |
cd ${WRKSRC}/DOCS/man; \ |
220 |
${TAR} -czvf ${WRKDIR}/lapack-manpages-${PORTVERSION}.tar.gz \ |
221 |
${MAN3L:S|^|man3/|} |
222 |
|
223 |
.endif |
224 |
.endif |
225 |
.include <bsd.port.post.mk> |
170 |
.include <bsd.port.post.mk> |