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

(-)superlu/Makefile (-3 / +17 lines)
Lines 20-38 Link Here
20
MAINTAINER=	maho@FreeBSD.org
20
MAINTAINER=	maho@FreeBSD.org
21
COMMENT=	A library of routines for performing sparse factorization
21
COMMENT=	A library of routines for performing sparse factorization
22
22
23
.ifdef WITH_ATLAS
23
LIB_DEPENDS=    atlas:${PORTSDIR}/math/atlas
24
LIB_DEPENDS=    atlas:${PORTSDIR}/math/atlas
25
.else
26
LIB_DEPENDS= 	blas.1:${PORTSDIR}/math/blas
27
.endif
24
28
25
P_VERSION=	3.0
29
P_VERSION=	3.0
26
WRKSRC=		${WRKDIR}/SuperLU_${P_VERSION}
30
WRKSRC=		${WRKDIR}/SuperLU_${P_VERSION}
27
ALL_TARGET=	superlulib
31
ALL_TARGET=	superlulib
28
32
29
BLAS_LIBS=	${LOCALBASE}/lib/libf77blas.a ${LOCALBASE}/lib/libatlas.a
33
.ifdef WITH_ATLAS
34
BLAS_LIBS=	-lf77blas -latlas
35
.else
36
BLAS_LIBS?=	-lblas
37
.endif
30
38
31
ARCH2FIX=	SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile make.inc	\
39
ARCH2FIX=	SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile make.inc	\
32
		MAKE_INC/make.alpha MAKE_INC/make.inc
40
		MAKE_INC/make.alpha MAKE_INC/make.inc
33
41
34
post-patch:
42
post-patch:
35
	@${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+${BLAS_LIBS}+' \
43
	@${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+-L${LOCALBASE}/lib ${BLAS_LIBS}+' \
36
	${WRKSRC}/make.inc
44
	${WRKSRC}/make.inc
37
	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+' \
45
	@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+' \
38
	${WRKSRC}/make.inc
46
	${WRKSRC}/make.inc
Lines 59-62 Link Here
59
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/superlu_ug.ps.gz ${DOCSDIR}
67
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/superlu_ug.ps.gz ${DOCSDIR}
60
.endif
68
.endif
61
69
62
.include <bsd.port.mk>
70
.include <bsd.port.pre.mk>
71
72
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
73
CFLAGS+=	-fPIC
74
.endif
75
76
.include <bsd.port.post.mk>

Return to bug 99189