View | Details | Raw Unified | Return to bug 152666
Collapse All | Expand All

(-)./Makefile (-7 / +17 lines)
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>
(-)./distinfo (-1 lines)
Lines 1-3 Link Here
1
MD5 (levmar-2.5.tgz) = 7ca14d79eda6e985f8355b719ae47d35
2
SHA256 (levmar-2.5.tgz) = b70f6ac3eff30ec29150e217b137312cb84e85529815efea2c12e4eab74b9d75
1
SHA256 (levmar-2.5.tgz) = b70f6ac3eff30ec29150e217b137312cb84e85529815efea2c12e4eab74b9d75
3
SIZE (levmar-2.5.tgz) = 78817
2
SIZE (levmar-2.5.tgz) = 78817
(-)./files/Makefile.demo (-2 / +2 lines)
Lines 3-9 Link Here
3
LDFLAGS= %%LDFLAGS%%
3
LDFLAGS= %%LDFLAGS%%
4
LAPACK= %%LAPACK%%
4
LAPACK= %%LAPACK%%
5
BLAS= %%BLAS%%
5
BLAS= %%BLAS%%
6
LIBS= -llevmar $(LAPACK) $(BLAS) -lm -lgfortran
6
LIBS= -llevmar $(LAPACK) $(BLAS) -lm -lgcc_s -lgfortran
7
7
8
DEMOBJS= lmdemo.o
8
DEMOBJS= lmdemo.o
9
DEMOSRCS= lmdemo.c
9
DEMOSRCS= lmdemo.c
Lines 11-17 Link Here
11
all: lmdemo
11
all: lmdemo
12
12
13
lmdemo: $(DEMOBJS)
13
lmdemo: $(DEMOBJS)
14
	$(CC) $(LDFLAGS) $(DEMOBJS) -o lmdemo $(LIBS)
14
	$(CC) $(CFLAGS) $(LDFLAGS) $(DEMOBJS) -o lmdemo $(LIBS)
15
15
16
clean:
16
clean:
17
	@rm -f $(DEMOBJS)
17
	@rm -f $(DEMOBJS)

Return to bug 152666