1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

libtsnnls is a fast solver for least-squares problems in the

form Ax = b under the constraint that all entries in the
solution vector x are non-negative.

WWW: http://www.jasoncantarella.com/webpage/index.php?title=Tsnnls

PR:		ports/151519
Submitted by:	Tz-Huan Huang <tzhuan@gmail.com>
This commit is contained in:
Wen Heping 2010-10-19 11:00:55 +00:00
parent c6642bdd62
commit 84c1524854
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263280
5 changed files with 80 additions and 0 deletions

View File

@ -169,6 +169,7 @@
SUBDIR += librandlib
SUBDIR += libranlip
SUBDIR += libtommath
SUBDIR += libtsnnls
SUBDIR += linalg
SUBDIR += linpack
SUBDIR += linux-SHA-1_collision_search_graz

57
math/libtsnnls/Makefile Normal file
View File

@ -0,0 +1,57 @@
# New ports collection makefile for: libtsnnls
# Date created: 18 October 2010
# Whom: Tz-Huan Huang <tzhuan@gmail.com>
#
# $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
OPTIONS= GOTOBLAS "Use gotoblas (conflict with USE_ATLAS)" off \
ATLAS "Use atlas (conflict with USE_GOTOBLAS)" off
# DMALLOC "Use dmalloc" off
.include <bsd.port.options.mk>
WITH_BLAS?=reference
.if defined(WITH_GOTOBLAS)
WITH_BLAS=gotoblas
.endif
.if defined(WITH_ATLAS)
WITH_BLAS=atlas
.endif
# FIXME compiling error when using dmalloc
#.if defined(WITH_DMALLOC)
#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
BLAS=-lptf77blas -lptcblas -latlas_r
LAPACK=-lalapack_r
.endif
CONFIGURE_ARGS= --with-blas="${BLAS}" --with-lapack="${LAPACK}"
.include <bsd.port.mk>

3
math/libtsnnls/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (libtsnnls-2.3.3.tar.gz) = 5edf293fdf084818482847f2a52c6338
SHA256 (libtsnnls-2.3.3.tar.gz) = edaa1f9356c5f95df2800cdcfd08dc713a63ef1f8d56681baf482160f38e5b9a
SIZE (libtsnnls-2.3.3.tar.gz) = 1750216

5
math/libtsnnls/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
libtsnnls is a fast solver for least-squares problems in the
form Ax = b under the constraint that all entries in the
solution vector x are non-negative.
WWW: http://www.jasoncantarella.com/webpage/index.php?title=Tsnnls

14
math/libtsnnls/pkg-plist Normal file
View File

@ -0,0 +1,14 @@
include/libtsnnls/tsnnls.h
include/libtsnnls/lsqr.h
include/libtsnnls/taucs_basic/colamd.h
include/libtsnnls/taucs_basic/f2c.h
include/libtsnnls/taucs_basic/taucs.h
include/libtsnnls/taucs_basic/taucs_config_build.h
include/libtsnnls/taucs_basic/taucs_config_tests.h
include/libtsnnls/taucs_basic/taucs_private.h
lib/libtsnnls.a
lib/libtsnnls.la
lib/libtsnnls.so
lib/libtsnnls.so.0
@dirrm include/libtsnnls/taucs_basic
@dirrm include/libtsnnls