View | Details | Raw Unified | Return to bug 199124 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-6 / +15 lines)
Lines 28-37 Link Here
28
USE_PERL5=	build
28
USE_PERL5=	build
29
29
30
OPENBLAS_SUFX=	r${PORTVERSION}
30
OPENBLAS_SUFX=	r${PORTVERSION}
31
OPENBLAS_LIBS=	libopenblas libopenblasp
32
OPENBLAS_SVER=	0
33
OPENBLAS_FILES=	${OPENBLAS_LIBS:S|$|.so|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} ${OPENBLAS_LIBS:S|$|.a|}
34
PLIST_FILES=	${OPENBLAS_FILES:S|^|lib/|}
35
31
36
WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}
32
WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}
37
33
Lines 49-54 Link Here
49
45
50
.include <bsd.port.options.mk>
46
.include <bsd.port.options.mk>
51
47
48
.if ${PORT_OPTIONS:MOPENMP}
49
OPENBLAS_LIBS=  libopenblas libopenblasp
50
.else
51
OPENBLAS_LIBS=  libopenblas
52
.endif
53
OPENBLAS_SVER=  0
54
OPENBLAS_FILES= ${OPENBLAS_LIBS:S|$|.so|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} ${OPENBLAS_LIBS:S|$|.a|}
55
PLIST_FILES=    ${OPENBLAS_FILES:S|^|lib/|}
56
52
.if defined(TARGET_CPU_ARCH)
57
.if defined(TARGET_CPU_ARCH)
53
BUILDFLAGS+=	TARGET=${TARGET_CPU_ARCH}
58
BUILDFLAGS+=	TARGET=${TARGET_CPU_ARCH}
54
.endif
59
.endif
Lines 75-81 Link Here
75
80
76
.if ${PORT_OPTIONS:MOPENMP}
81
.if ${PORT_OPTIONS:MOPENMP}
77
USES+=		compiler:openmp
82
USES+=		compiler:openmp
78
BUILDFLAGS+=	USE_OPENMP=1
79
.endif
83
.endif
80
84
81
.if ${PORT_OPTIONS:MQUAD_PRECISION}
85
.if ${PORT_OPTIONS:MQUAD_PRECISION}
Lines 139-148 Link Here
139
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblas.a
143
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblas.a
140
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblas.so.${OPENBLAS_SVER}
144
	${CP} ${WRKSRC}/libopenblas-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblas.so.${OPENBLAS_SVER}
141
	cd ${WRKSRC} ; ${MAKE_CMD} ${MAKE_ARGS} clean
145
	cd ${WRKSRC} ; ${MAKE_CMD} ${MAKE_ARGS} clean
142
	cd ${WRKSRC} ; ${SETENV} ${BUILDFLAGS} NUM_THREADS=${MAXTHREADS} \
146
147
.if ${PORT_OPTIONS:MOPENMP}
148
	cd ${WRKSRC} ; ${SETENV} ${BUILDFLAGS} USE_OPENMP=1 NUM_THREADS=${MAXTHREADS} \
143
	USE_THREAD=1 ${MAKE_CMD} ${MAKE_ARGS}
149
	USE_THREAD=1 ${MAKE_CMD} ${MAKE_ARGS}
144
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblasp.a
150
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.a ${WRKDIR}/lib/libopenblasp.a
145
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblasp.so.${OPENBLAS_SVER}
151
	${CP} ${WRKSRC}/libopenblasp-${OPENBLAS_SUFX}.so ${WRKDIR}/lib/libopenblasp.so.${OPENBLAS_SVER}
152
.endif
146
.if !${PORT_OPTIONS:MDEBUG}
153
.if !${PORT_OPTIONS:MDEBUG}
147
	${LOCALBASE}/bin/strip -X ${WRKDIR}/lib/*.so.${OPENBLAS_SVER}
154
	${LOCALBASE}/bin/strip -X ${WRKDIR}/lib/*.so.${OPENBLAS_SVER}
148
.endif
155
.endif
Lines 171-176 Link Here
171
178
172
post-stage:
179
post-stage:
173
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenblas.so.0
180
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenblas.so.0
181
.if ${PORT_OPTIONS:MOPENMP}
174
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenblasp.so.0
182
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenblasp.so.0
183
.endif
175
184
176
.include <bsd.port.mk>
185
.include <bsd.port.mk>

Return to bug 199124