1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/math/libtsnnls/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

56 lines
1.3 KiB
Makefile

# Created by: Tz-Huan Huang <tzhuan@gmail.com>
# $FreeBSD$
PORTNAME= libtsnnls
PORTVERSION= 2.3.3
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= http://www.jasoncantarella.com/downloads/
MAINTAINER= tzhuan@gmail.com
COMMENT= Fast Sparse Nonnegative Least Squares Solver
GNU_CONFIGURE= yes
USES= fortran libtool
USE_LDCONFIG= yes
OPTIONS_DEFINE= GOTOBLAS ATLAS
GOTOBLAS_DESC= Use gotoblas (conflict with USE_ATLAS)
ATLAS_DESC= Use atlas (conflict with USE_GOTOBLAS)
# DMALLOC "Use dmalloc" off
.include <bsd.port.options.mk>
WITH_BLAS=reference
.if ${PORT_OPTIONS:MGOTOBLAS}
WITH_BLAS=gotoblas
.elif ${PORT_OPTIONS:MATLAS}
WITH_BLAS=atlas
.endif
# FIXME compiling error when using dmalloc
#.if ${PORT_OPTIONS:MDMALLOC}
#CONFIGURE_ARGS+=--with-dmalloc
#LIB_DEPENDS+=dmalloc.1:${PORTSDIR}/devel/dmalloc
#.endif
.if ${WITH_BLAS} == reference
LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
BLAS=-lblas
LAPACK=-llapack
.elif ${WITH_BLAS} == gotoblas
LIB_DEPENDS+= libgoto2.so:${PORTSDIR}/math/gotoblas
BLAS=-lgoto2p
LAPACK=-lgoto2p
.elif ${WITH_BLAS} == atlas
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
BLAS=-lptf77blas
LAPACK=-lalapack -lptcblas
.endif
CONFIGURE_ARGS+=--with-blas="${BLAS}" --with-lapack="${LAPACK}"
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.mk>