2002-03-15 03:53:15 +00:00
|
|
|
# New ports collection makefile for: atlas
|
|
|
|
# Date created: 12 February 2001
|
|
|
|
# Whom: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= atlas
|
|
|
|
PORTVERSION= 3.3.14
|
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= math-atlas
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= chat95@mbox.kyoto-inet.or.jp
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/liblapack.a:${PORTSDIR}/math/lapack
|
|
|
|
|
2002-03-26 05:49:54 +00:00
|
|
|
IS_INTERACTIVE= yes
|
2002-03-15 03:53:15 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
WRKSRC= ${WRKDIR}/ATLAS
|
|
|
|
NO_PACKAGE= "It is better to compile at the target machine."
|
|
|
|
NO_CDROM= "It is better to compile at the target machine."
|
|
|
|
|
|
|
|
do-configure:
|
2002-03-26 05:49:54 +00:00
|
|
|
@(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} config)
|
2002-03-15 03:53:15 +00:00
|
|
|
|
|
|
|
do-build:
|
2002-03-26 05:49:54 +00:00
|
|
|
(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} install arch=`cat ${WRKSRC}/ARCHNAME`)
|
2002-03-15 03:53:15 +00:00
|
|
|
(cd ${WRKSRC}; ${MKDIR} tmp ; \
|
|
|
|
${CP} ${LOCALBASE}/lib/liblapack.a tmp ;\
|
|
|
|
cd tmp ;\
|
|
|
|
ar x liblapack.a ;\
|
2002-03-26 05:49:54 +00:00
|
|
|
ar x ../lib/`cat ${WRKSRC}/ARCHNAME`/liblapack.a ;\
|
|
|
|
ar r ../lib/`cat ${WRKSRC}/ARCHNAME`/libalapack.a *.o ;\
|
|
|
|
ranlib ../lib/`cat ${WRKSRC}/ARCHNAME`/libalapack.a )
|
2002-03-15 03:53:15 +00:00
|
|
|
do-install:
|
2002-03-26 05:49:54 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/`cat ${WRKSRC}/ARCHNAME`/libatlas.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/`cat ${WRKSRC}/ARCHNAME`/libcblas.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/`cat ${WRKSRC}/ARCHNAME`/libf77blas.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/`cat ${WRKSRC}/ARCHNAME`/libtstatlas.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/`cat ${WRKSRC}/ARCHNAME`/libalapack.a ${PREFIX}/lib
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2002-03-15 03:53:15 +00:00
|
|
|
.include <bsd.port.mk>
|