freebsd-ports/math/sdpa/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sdpa
# Date created: October 4 2003
# Whom: NAKATA, Maho <maho@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sdpa
2009-08-03 17:03:56 +02:00
PORTVERSION= 7.3.1
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://sdpa.indsys.chuo-u.ac.jp/sdpa/files/
2009-08-03 17:03:56 +02:00
DISTNAME= ${PORTNAME}.${PORTVERSION}.src-${SRCDATE}
DIST_SUBDIR= sdpa
MAINTAINER= maho@FreeBSD.org
COMMENT= SDPA(SemiDefinite Programming Algorithm) Very efficent SDP Solver
2008-02-18 02:40:11 +01:00
.include <bsd.port.pre.mk>
2009-08-03 17:03:56 +02:00
SRCDATE= 20090729
MANUALFILE= sdpa7-manual.pdf
USE_FORTRAN= yes
2008-02-18 02:40:11 +01:00
GNU_CONFIGURE= yes
2008-12-15 05:06:31 +01:00
USE_GMAKE= yes
2009-08-03 17:03:56 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.src
2008-02-18 02:40:11 +01:00
USE_BLAS?= reference
.if exists(${LOCALBASE}/lib/libgoto2.so)
2008-02-18 02:40:11 +01:00
USE_BLAS= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas_r.so)
USE_BLAS= atlas
.endif
2008-02-18 02:40:11 +01:00
. if ${USE_BLAS} == reference
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
2008-02-18 02:40:11 +01:00
.elif ${USE_BLAS} == gotoblas
LIB_DEPENDS+= goto2:${PORTSDIR}/math/gotoblas
2008-02-18 02:40:11 +01:00
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
BLAS= -lgoto2p
LAPACK=
2008-02-18 02:40:11 +01:00
.elif ${USE_BLAS} == atlas
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
BLAS= -lptf77blas -lptcblas -latlas_r
LAPACK= -lalapack_r
.endif
2008-12-15 05:06:31 +01:00
CONFIGURE_ARGS+=--with-blas="-L${LOCALBASE}/lib ${BLAS}" --with-lapack="-L${LOCALBASE}/lib ${LAPACK}"
PLIST_SUB+= MANUALFILE=${MANUALFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/param.sdpa ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
2009-08-03 17:03:56 +02:00
${INSTALL_DATA} ${WRKSRC}/doc/${MANUALFILE} ${DOCSDIR}
.endif
2005-07-04 06:12:12 +02:00
.include <bsd.port.post.mk>