Date: Sun, 17 Oct 2010 18:52:41 GMT From: Tz-Huan Huang <tzhuan@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/151519: New port: math/libtsnnls Fast Sparse Nonnegative Least Squares Solver Message-ID: <201010171852.o9HIqfRu058880@www.freebsd.org> Resent-Message-ID: <201010171900.o9HJ0HUJ090130@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151519 >Category: ports >Synopsis: New port: math/libtsnnls Fast Sparse Nonnegative Least Squares Solver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 17 19:00:16 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Tz-Huan Huang >Release: 9.0-CURRENT >Organization: NTU CSIE >Environment: FreeBSD tzhuan.csie.org 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r213506M: Thu Oct 7 14:25:54 CST 2010 root@tzhuan.csie.org:/usr/obj/usr/src/sys/TZHUAN amd64 >Description: 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. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # libtsnnls # libtsnnls/distinfo # libtsnnls/Makefile # libtsnnls/pkg-descr # echo c - libtsnnls mkdir -p libtsnnls > /dev/null 2>&1 echo x - libtsnnls/distinfo sed 's/^X//' >libtsnnls/distinfo << '9875a3552aa5569bb40a9b5f9bdfdcb4' XMD5 (libtsnnls-2.3.3.tar.gz) = 5edf293fdf084818482847f2a52c6338 XSHA256 (libtsnnls-2.3.3.tar.gz) = edaa1f9356c5f95df2800cdcfd08dc713a63ef1f8d56681baf482160f38e5b9a XSIZE (libtsnnls-2.3.3.tar.gz) = 1750216 9875a3552aa5569bb40a9b5f9bdfdcb4 echo x - libtsnnls/Makefile sed 's/^X//' >libtsnnls/Makefile << '1f92c71dfa1a455a7ed02a5e0277477d' X# New ports collection makefile for: libtsnnls X# Date created: 18 October 2010 X# Whom: Tz-Huan Huang <tzhuan@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME=libtsnnls XPORTVERSION=2.3.3 XCATEGORIES=math XMASTER_SITES=http://www.jasoncantarella.com/downloads/ X XMAINTAINER=tzhuan@gmail.com XCOMMENT=Fast Sparse Nonnegative Least Squares Solver X XGNU_CONFIGURE=yes XUSE_FORTRAN=yes XUSE_LDCONFIG=yes X XOPTIONS=USE_GOTOBLAS "Use gotoblas (conflict with USE_ATLAS)" off \ X USE_ATLAS "Use atlas (conflict with USE_GOTOBLAS)" off X# DMALLOC "Use dmalloc" off X X.include <bsd.port.options.mk> X XUSE_BLAS?=reference X.ifdef(WITH_USE_GOTOBLAS) XUSE_BLAS=gotoblas X.endif X.ifdef(WITH_USE_ATLAS) XUSE_BLAS=atlas X.endif X X# FIXME compiling error when using dmalloc X#.ifdef(WITH_DMALLOC) X#CONFIGURE_ARGS+=--with-dmalloc X#LIB_DEPENDS+=dmalloc.1:${PORTSDIR}/devel/dmalloc X#.endif X X.if ${USE_BLAS} == reference XLIB_DEPENDS+=blas.2:${PORTSDIR}/math/blas XLIB_DEPENDS+=lapack.4:${PORTSDIR}/math/lapack XBLAS=-lblas XLAPACK=-llapack X.elif ${USE_BLAS} == gotoblas XLIB_DEPENDS+=goto2:${PORTSDIR}/math/gotoblas XBLAS=-lgoto2p XLAPACK=-lgoto2p X.elif ${USE_BLAS} == atlas XLIB_DEPENDS+=atlas:${PORTSDIR}/math/atlas XBLAS=-lptf77blas -lptcblas -latlas_r XLAPACK=-lalapack_r X.endif X XCONFIGURE_ENV+=CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ X LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ X CC="${CC}" CXX="${CXX}" X XCONFIGURE_ARGS=--with-blas="${BLAS}" --with-lapack="${LAPACK}" X XPLIST_FILES=include/libtsnnls/tsnnls.h include/libtsnnls/lsqr.h \ X include/libtsnnls/taucs_basic/colamd.h \ X include/libtsnnls/taucs_basic/f2c.h \ X include/libtsnnls/taucs_basic/taucs.h \ X include/libtsnnls/taucs_basic/taucs_config_build.h \ X include/libtsnnls/taucs_basic/taucs_config_tests.h \ X include/libtsnnls/taucs_basic/taucs_private.h \ X lib/libtsnnls.a lib/libtsnnls.la \ X lib/libtsnnls.so lib/libtsnnls.so.0 XPLIST_DIRS=include/libtsnnls/taucs_basic include/libtsnnls X X.include <bsd.port.mk> 1f92c71dfa1a455a7ed02a5e0277477d echo x - libtsnnls/pkg-descr sed 's/^X//' >libtsnnls/pkg-descr << '49e633909db2718a6459be257e1a81a6' Xlibtsnnls is a fast solver for least-squares problems in the Xform Ax = b under the constraint that all entries in the Xsolution vector x are non-negative. X XWWW: http://www.jasoncantarella.com/webpage/index.php?title=Tsnnls 49e633909db2718a6459be257e1a81a6 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010171852.o9HIqfRu058880>