1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/math/lapack++/Makefile
Brendan Fabeny 004a7c5ac2 adjust linking and comments in dependent ports after the math/atlas update;
math/atlas-devel will be updated to use the same constructs at a later date

PR:		162706
Approved by:	miwi (portmgr)
Feature safe:	yes
2011-11-22 11:14:10 +00:00

69 lines
1.9 KiB
Makefile

# New ports collection makefile for: lapack++
# Date created: 5 May 2002
# Whom: NAKATA Maho <chat95@mbox.kyoto-inet.or.jp>
#
# $FreeBSD$
#
PORTNAME= lapack++
PORTVERSION= 2.5.3
PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= SF/lapackpp/lapackpp/${PORTVERSION} \
http://math.nist.gov/lapack++/:doc
DISTNAME= lapackpp-${PORTVERSION}
.if !defined(NOPORTDOCS)
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} lapack++.ps.gz:doc lapackpp1_1.ps.gz:doc \
lapackppman1_1.ps.gz:doc lapack++_install.ps.gz:doc
.endif
DIST_SUBDIR= lapackpp
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK
WANT_GNOME= yes
USE_GNOME= gnomehack
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
.endif
USE_FORTRAN= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
.if defined(WITH_ATLAS)
BLAS_LIB= -L${LOCALBASE}/lib -lf77blas
LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas
.else
BLAS_LIB= -L${LOCALBASE}/lib -lblas
LAPACK_LIB= -L${LOCALBASE}/lib -llapack
.endif
#BLAS_LIB= -L${LOCALBASE}/lib -lptf77blas
#LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lptcblas
#lapack++ forces to use atlas when detected, so we should disable here.
CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas --enable-static
do-install:
@(cd ${WRKSRC} ; ${GMAKE} install)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++.ps.gz ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++_install.ps.gz ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackpp1_1.ps.gz ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackppman1_1.ps.gz ${DOCSDIR}
.endif
.include <bsd.port.post.mk>