2013-06-04 23:26:52 +02:00
|
|
|
# Created by: Tz-Huan Huang <tzhuan@gmail.com>
|
2010-10-19 13:00:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libtsnnls
|
|
|
|
PORTVERSION= 2.3.3
|
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://www.jasoncantarella.com/downloads/
|
|
|
|
|
|
|
|
MAINTAINER= tzhuan@gmail.com
|
|
|
|
COMMENT= Fast Sparse Nonnegative Least Squares Solver
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_FORTRAN= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2013-06-04 23:26:52 +02:00
|
|
|
OPTIONS_DEFINE= GOTOBLAS ATLAS
|
|
|
|
GOTOBLAS_DESC= Use gotoblas (conflict with USE_ATLAS)
|
|
|
|
ATLAS_DESC= Use atlas (conflict with USE_GOTOBLAS)
|
2010-10-19 13:00:55 +02:00
|
|
|
# DMALLOC "Use dmalloc" off
|
|
|
|
|
2013-09-20 22:55:04 +02:00
|
|
|
NO_STAGE= yes
|
2010-10-19 13:00:55 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-11-22 12:14:10 +01:00
|
|
|
WITH_BLAS=reference
|
2013-06-04 23:26:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MGOTOBLAS}
|
2010-10-19 13:00:55 +02:00
|
|
|
WITH_BLAS=gotoblas
|
2013-06-04 23:26:52 +02:00
|
|
|
.elif ${PORT_OPTIONS:MATLAS}
|
2010-10-19 13:00:55 +02:00
|
|
|
WITH_BLAS=atlas
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# FIXME compiling error when using dmalloc
|
2013-06-04 23:26:52 +02:00
|
|
|
#.if ${PORT_OPTIONS:MDMALLOC}
|
2010-10-19 13:00:55 +02:00
|
|
|
#CONFIGURE_ARGS+=--with-dmalloc
|
|
|
|
#LIB_DEPENDS+=dmalloc.1:${PORTSDIR}/devel/dmalloc
|
|
|
|
#.endif
|
|
|
|
|
|
|
|
.if ${WITH_BLAS} == reference
|
|
|
|
LIB_DEPENDS+=blas.2:${PORTSDIR}/math/blas
|
|
|
|
LIB_DEPENDS+=lapack.4:${PORTSDIR}/math/lapack
|
|
|
|
BLAS=-lblas
|
|
|
|
LAPACK=-llapack
|
|
|
|
.elif ${WITH_BLAS} == gotoblas
|
|
|
|
LIB_DEPENDS+=goto2:${PORTSDIR}/math/gotoblas
|
|
|
|
BLAS=-lgoto2p
|
|
|
|
LAPACK=-lgoto2p
|
|
|
|
.elif ${WITH_BLAS} == atlas
|
|
|
|
LIB_DEPENDS+=atlas:${PORTSDIR}/math/atlas
|
2011-11-22 12:14:10 +01:00
|
|
|
BLAS=-lptf77blas
|
|
|
|
LAPACK=-lalapack -lptcblas
|
2010-10-19 13:00:55 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-blas="${BLAS}" --with-lapack="${LAPACK}"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|