Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= levmar |
8 |
PORTNAME= levmar |
9 |
PORTVERSION= 2.5 |
9 |
PORTVERSION= 2.5 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= math |
11 |
CATEGORIES= math |
11 |
MASTER_SITES= http://www.ics.forth.gr/~lourakis/levmar/ |
12 |
MASTER_SITES= http://www.ics.forth.gr/~lourakis/levmar/ |
12 |
EXTRACT_SUFX= .tgz |
13 |
EXTRACT_SUFX= .tgz |
Lines 19-25
Link Here
|
19 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
20 |
USE_FORTRAN= yes |
21 |
USE_FORTRAN= yes |
21 |
|
22 |
|
22 |
.if exists(${LOCALBASE}/lib/libatlas.so) |
23 |
.include <bsd.port.pre.mk> |
|
|
24 |
|
25 |
.if exists(${LOCALBASE}/lib/libgoto2.so) |
26 |
WITH_BLAS?= gotoblas |
27 |
.elif exists(${LOCALBASE}/lib/libatlas_r.so) |
23 |
WITH_BLAS?= atlas |
28 |
WITH_BLAS?= atlas |
24 |
.else |
29 |
.else |
25 |
WITH_BLAS?= reference |
30 |
WITH_BLAS?= reference |
Lines 27-39
Link Here
|
27 |
|
32 |
|
28 |
.if ${WITH_BLAS} == "reference" |
33 |
.if ${WITH_BLAS} == "reference" |
29 |
LIB_DEPENDS= blas.2:${PORTSDIR}/math/blas \ |
34 |
LIB_DEPENDS= blas.2:${PORTSDIR}/math/blas \ |
30 |
lapack.4:${PORTSDIR}/math/lapack |
35 |
lapack.4:${PORTSDIR}/math/lapack |
31 |
BLAS= -lblas |
36 |
BLAS= -lblas |
32 |
LAPACK = -llapack |
37 |
LAPACK= -llapack |
|
|
38 |
.elif ${WITH_BLAS} == "gotoblas" |
39 |
LIB_DEPENDS= goto2:${PORTSDIR}/math/gotoblas \ |
40 |
lapack.4:${PORTSDIR}/math/lapack |
41 |
BLAS= -lpthread -lgoto2p |
42 |
LAPACK= -lpthread -lgoto2p |
33 |
.elif ${WITH_BLAS} == "atlas" |
43 |
.elif ${WITH_BLAS} == "atlas" |
34 |
LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas |
44 |
LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas |
35 |
BLAS= -lf77blas -lcblas -latlas |
45 |
BLAS= -pthread -lptf77blas -lptcblas -latlas_r |
36 |
LAPACK = -lalapack |
46 |
LAPACK= -pthread -lalapack_r |
37 |
.endif |
47 |
.endif |
38 |
|
48 |
|
39 |
LDFLAGS+= -L${LOCALBASE}/lib |
49 |
LDFLAGS+= -L${LOCALBASE}/lib |
Lines 78-81
Link Here
|
78 |
@(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}) |
88 |
@(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}) |
79 |
.endif |
89 |
.endif |
80 |
|
90 |
|
81 |
.include <bsd.port.mk> |
91 |
.include <bsd.port.post.mk> |