Lines 17-50
Link Here
|
17 |
USES= fortran tar:tgz uidfix |
17 |
USES= fortran tar:tgz uidfix |
18 |
|
18 |
|
19 |
OPTIONS_DEFINE= DOCS EXAMPLES PROFILE |
19 |
OPTIONS_DEFINE= DOCS EXAMPLES PROFILE |
|
|
20 |
OPTIONS_SINGLE= BLASLIB |
21 |
OPTIONS_DEFAULT= NETLIB |
22 |
OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS |
20 |
PROFILE_DESC= Build a profiling library |
23 |
PROFILE_DESC= Build a profiling library |
21 |
|
24 |
|
22 |
.include <bsd.port.pre.mk> |
25 |
ATLAS_USES= blaslapack:atlas |
23 |
|
26 |
NETLIB_USES= blaslapack:netlib |
24 |
.if exists(${LOCALBASE}/lib/libgoto2p.so) |
27 |
OPENBLAS_USES= blaslapack:openblas |
25 |
WITH_BLAS?= gotoblas |
|
|
26 |
.elif exists(${LOCALBASE}/lib/libatlas.so) |
27 |
WITH_BLAS?= atlas |
28 |
.else |
29 |
WITH_BLAS?= reference |
30 |
.endif |
31 |
|
28 |
|
32 |
.if ${WITH_BLAS} == "reference" |
29 |
.include <bsd.port.pre.mk> |
33 |
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \ |
|
|
34 |
liblapack.so:${PORTSDIR}/math/lapack |
35 |
BLAS= -lblas |
36 |
LAPACK= -llapack |
37 |
.elif ${WITH_BLAS} == "gotoblas" |
38 |
LDFLAGS+= -lpthread -L${LOCALBASE}/lib |
39 |
LIB_DEPENDS+= libgoto2p.so:${PORTSDIR}/math/gotoblas |
40 |
BLAS= -lgoto2p |
41 |
LAPACK= -lgoto2p |
42 |
.elif ${WITH_BLAS} == "atlas" |
43 |
LDFLAGS+= -lpthread -L${LOCALBASE}/lib |
44 |
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas |
45 |
BLAS= -lptf77blas |
46 |
LAPACK= -lalapack -lptcblas |
47 |
.endif |
48 |
|
30 |
|
49 |
PORTDOCS= README.txt |
31 |
PORTDOCS= README.txt |
50 |
PORTEXAMPLES= lmdemo.c Makefile.demo |
32 |
PORTEXAMPLES= lmdemo.c Makefile.demo |
Lines 73-80
Link Here
|
73 |
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g' \ |
55 |
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g' \ |
74 |
-e 's+%%CFLAGS%%+${CFLAGS} -I${LOCALBASE}/include+g' \ |
56 |
-e 's+%%CFLAGS%%+${CFLAGS} -I${LOCALBASE}/include+g' \ |
75 |
-e 's+%%LDFLAGS%%+${LDFLAGS}+g' \ |
57 |
-e 's+%%LDFLAGS%%+${LDFLAGS}+g' \ |
76 |
-e 's+%%BLAS%%+${BLAS}+g' \ |
58 |
-e 's+%%BLAS%%+${BLASLIB}+g' \ |
77 |
-e 's+%%LAPACK%%+${LAPACK}+g' \ |
59 |
-e 's+%%LAPACK%%+${LAPACKLIB}+g' \ |
78 |
${WRKSRC}/Makefile.demo |
60 |
${WRKSRC}/Makefile.demo |
79 |
|
61 |
|
80 |
post-install: |
62 |
post-install: |