diff options
author | naddy <naddy@FreeBSD.org> | 2002-08-20 00:20:09 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-08-20 00:20:09 +0800 |
commit | f6f7be684a87d549e3cdf5f88a5731c8693a3baa (patch) | |
tree | 7d28f3ab11416b8f6830a9f061be5cf60422f1ce /math/atlas/Makefile | |
parent | 2a436b5bb7568b04e46c047da8b86dcd45672006 (diff) | |
download | freebsd-ports-gnome-f6f7be684a87d549e3cdf5f88a5731c8693a3baa.tar.gz freebsd-ports-gnome-f6f7be684a87d549e3cdf5f88a5731c8693a3baa.tar.zst freebsd-ports-gnome-f6f7be684a87d549e3cdf5f88a5731c8693a3baa.zip |
Fix build on alpha.
PR: 41770
Submitted by: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
Diffstat (limited to 'math/atlas/Makefile')
-rw-r--r-- | math/atlas/Makefile | 15 |
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 ;\ |