Changeset View
Changeset View
Standalone View
Standalone View
head/math/blis/Makefile
# Created by: Johannes M Dieterich <jmd@FreeBSD.org> | # Created by: Johannes M Dieterich <jmd@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= blis | PORTNAME= blis | ||||
PORTVERSION= 0.2.2 | PORTVERSION= 0.2.2 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= math | CATEGORIES= math | ||||
MAINTAINER= jmd@FreeBSD.org | MAINTAINER= jmd@FreeBSD.org | ||||
COMMENT= Software framework for high-performance BLAS-like libraries | COMMENT= Software framework for high-performance BLAS-like libraries | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
Show All 20 Lines | |||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USES= gmake | USES= gmake | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
# enable BLAS by default | # enable BLAS and static/shared libs by default | ||||
CONFIGURE_ARGS+= --enable-blas \ | CONFIGURE_ARGS+= --enable-blas \ | ||||
--prefix=${LOCALBASE} | --prefix=${PREFIX} \ | ||||
--enable-shared \ | |||||
--enable-static | |||||
#--prefix=PREFIX | #--prefix=PREFIX | ||||
.if ${PORT_OPTIONS:MPARA} | .if ${PORT_OPTIONS:MPARA} | ||||
CONFIGURE_ARGS+= -t pthreads | CONFIGURE_ARGS+= -t pthreads | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MCBLAS} | .if ${PORT_OPTIONS:MCBLAS} | ||||
CONFIGURE_ARGS+= --enable-cblas | CONFIGURE_ARGS+= --enable-cblas | ||||
Show All 13 Lines | |||||
.elif ${PORT_OPTIONS:MSANDYBRIDGE} | .elif ${PORT_OPTIONS:MSANDYBRIDGE} | ||||
ARCH= sandybridge | ARCH= sandybridge | ||||
.elif ${PORT_OPTIONS:MHASWELL} | .elif ${PORT_OPTIONS:MHASWELL} | ||||
ARCH= haswell | ARCH= haswell | ||||
.endif | .endif | ||||
CONFIGURE_ARGS+= ${ARCH} | CONFIGURE_ARGS+= ${ARCH} | ||||
post-install: | post-install: | ||||
${MV} ${STAGEDIR}/${LOCALBASE}/lib/libblis-${PORTVERSION}-${ARCH}.a ${STAGEDIR}/${LOCALBASE}/lib/libblis.a | ${MV} ${STAGEDIR}/${PREFIX}/lib/libblis-${PORTVERSION}-${ARCH}.a ${STAGEDIR}/${PREFIX}/lib/libblis.a | ||||
${MV} ${STAGEDIR}/${PREFIX}/lib/libblis-${PORTVERSION}-${ARCH}.so ${STAGEDIR}/${PREFIX}/lib/libblis.so | |||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libblis.so | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |