aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-02-01 14:55:14 +0800
committermaho <maho@FreeBSD.org>2004-02-01 14:55:14 +0800
commitec6beffc3595be1d2b04e7b48145c8f877fa9688 (patch)
treea6786e22916f7f8705de4fbaf1a6f245e0265c94 /math
parent76b981d45002f4cde6755744503d5e291e83ec0f (diff)
downloadfreebsd-ports-gnome-ec6beffc3595be1d2b04e7b48145c8f877fa9688.tar.gz
freebsd-ports-gnome-ec6beffc3595be1d2b04e7b48145c8f877fa9688.tar.zst
freebsd-ports-gnome-ec6beffc3595be1d2b04e7b48145c8f877fa9688.zip
1) possible build fix on ia64 archs
2) remove some make xconfig 3) move PKGNAMESUFFIX appropreate position PR: 61995 Submitted by: hrs
Diffstat (limited to 'math')
-rw-r--r--math/atlas-devel/Makefile31
-rw-r--r--math/atlas-devel/files/answer10
2 files changed, 19 insertions, 22 deletions
diff --git a/math/atlas-devel/Makefile b/math/atlas-devel/Makefile
index 166dfaab5ba1..80a0be633dba 100644
--- a/math/atlas-devel/Makefile
+++ b/math/atlas-devel/Makefile
@@ -13,6 +13,7 @@ PORTVERSION= 3.6.0
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= math-atlas
+PKGNAMESUFFIX= -devel
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= maho@FreeBSD.org
@@ -22,7 +23,6 @@ USE_BZIP2= yes
WRKSRC= ${WRKDIR}/ATLAS
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
-PKGNAMESUFFIX= -devel
NO_PACKAGE= runtime performance heavily depends on building environment
.include <bsd.port.pre.mk>
@@ -59,20 +59,27 @@ PICFLAG=-fpic
.endif
.endif
+ANSWER_i386?= ${PRINTF} "\n\n\n\n\n\n\n\n\n\n"
+ANSWER_ia64?= ${PRINTF} "\n\n\n2\n\n\n\n\nf77\n-O2 -static\n\n"
+
+.if !defined(ANSWER_${ARCH})
+ANSWER= ${ANSWER_i386}
+.else
+ANSWER= ${ANSWER_${ARCH}}
+.endif
+
do-configure:
- @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} xconfig ; \
- ./xconfig -N 1 -c ${CC} -f ${FC} -a NON_THREADED < ${FILESDIR}/answer)
- @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} xconfig ; \
- ./xconfig -N 1 -c ${CC} -f ${FC} -a NON_THREADED_PIC \
+ @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} xconfig && \
+ ${ANSWER} | ./xconfig -N 1 -c ${CC} -f ${FC} -a NON_THREADED && \
+ ${ANSWER} | ./xconfig -N 1 -c ${CC} -f ${FC} -a NON_THREADED_PIC \
-F c '${PICFLAG} -DPIC' -F f '${PICFLAG} -DPIC' \
- -F m '${PICFLAG} -DPIC' -F x '${PICFLAG} -DPIC' < ${FILESDIR}/answer)
- @(cd ${WRKSRC}; ${PATCH} < ${FILESDIR}/thread-patch)
- @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} xconfig ; \
- ./xconfig -c ${CC} -f ${FC} -a THREADED < ${FILESDIR}/answer)
- @(cd ${WRKSRC}; ${MAKE_ENV} ${MAKE} xconfig ; \
- ./xconfig -c ${CC} -f ${FC} -a THREADED_PIC \
+ -F m '${PICFLAG} -DPIC' -F x '${PICFLAG} -DPIC')
+ @(cd ${WRKSRC}; ${PATCH} < ${FILESDIR}/thread-patch && \
+ ${MAKE_ENV} ${MAKE} xconfig && \
+ ${ANSWER} | ./xconfig -c ${CC} -f ${FC} -a THREADED && \
+ ${ANSWER} | ./xconfig -c ${CC} -f ${FC} -a THREADED_PIC \
-F c '${PICFLAG} -DPIC' -F f '${PICFLAG} -DPIC' \
- -F m '${PICFLAG} -DPIC' -F x '${PICFLAG} -DPIC' < ${FILESDIR}/answer)
+ -F m '${PICFLAG} -DPIC' -F x '${PICFLAG} -DPIC' )
ATLAS_LIBS1=libalapack libatlas libcblas libf77blas libtstatlas
ATLAS_LIBS2=libptcblas libptf77blas
diff --git a/math/atlas-devel/files/answer b/math/atlas-devel/files/answer
deleted file mode 100644
index 584ba8795fb2..000000000000
--- a/math/atlas-devel/files/answer
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-