summaryrefslogtreecommitdiff
path: root/math/atlas/Makefile
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-08-19 16:20:09 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-08-19 16:20:09 +0000
commit62e1899b5d0ce84c8196caf0e9d46246b9898e70 (patch)
tree7b1aa73aa1945360076cddc00f8831cf9adeff7a /math/atlas/Makefile
parentUse USE_GNOMENG. (diff)
Fix build on alpha.
PR: 41770 Submitted by: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
Notes
Notes: svn path=/head/; revision=64664
Diffstat (limited to 'math/atlas/Makefile')
-rw-r--r--math/atlas/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/math/atlas/Makefile b/math/atlas/Makefile
index e95f2d0e45a9..52b1966f6ffc 100644
--- a/math/atlas/Makefile
+++ b/math/atlas/Makefile
@@ -5,6 +5,9 @@
# $FreeBSD$
#
+# NOTE: This port purposely ignores the CC and CFLAGS settings.
+# Program and compiler flags are finetuned to gcc 2.95/3.1.
+
PORTNAME= atlas
PORTVERSION= 3.4.1
PORTREVISION= 1
@@ -20,6 +23,11 @@ LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/ATLAS
INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
+
+.if (${MACHINE_ARCH} == "alpha")
+USE_GCC= 3.1
+.endif
do-configure:
.if defined(BATCH) || defined(PACKAGE_BUILDING)
@@ -27,9 +35,16 @@ do-configure:
.else
@(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} config)
.endif
+.if (${MACHINE_ARCH} == "alpha")
+ @(cd ${WRKSRC}; ${PATCH} < ${FILESDIR}/alpha-patch)
+.endif
do-build:
+.if (${MACHINE_ARCH} == "alpha") || defined(USE_GCC)
+ @${REINPLACE_CMD} -e 's|/usr/bin/gcc|${CC}|g;' ${WRKSRC}/Make.`cat ${WRKSRC}/ARCHNAME`
+.endif
(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} install arch=`cat ${WRKSRC}/ARCHNAME`)
+ (cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} sanity_test arch=`cat ${WRKSRC}/ARCHNAME`)
(cd ${WRKSRC}; ${MKDIR} tmp ; \
${CP} ${LOCALBASE}/lib/liblapack.a tmp ;\
cd tmp ;\