diff options
author | maho <maho@FreeBSD.org> | 2007-09-30 12:02:10 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-09-30 12:02:10 +0800 |
commit | 2dbe4ad9db8274929678c863b07223b979633ab1 (patch) | |
tree | a38a9b70c4e8e349a047d4fbbcde7da8236f436c /math/atlas | |
parent | 4aae8757d6a15768aabad30509387595804a549a (diff) | |
download | freebsd-ports-gnome-2dbe4ad9db8274929678c863b07223b979633ab1.tar.gz freebsd-ports-gnome-2dbe4ad9db8274929678c863b07223b979633ab1.tar.zst freebsd-ports-gnome-2dbe4ad9db8274929678c863b07223b979633ab1.zip |
Using new LAPACK 3.1.1 port (threfore BUMPPORTREVISION)
and unbreak.
Diffstat (limited to 'math/atlas')
-rw-r--r-- | math/atlas/Makefile | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/math/atlas/Makefile b/math/atlas/Makefile index 110e90941e48..e8d487c94226 100644 --- a/math/atlas/Makefile +++ b/math/atlas/Makefile @@ -10,7 +10,7 @@ PORTNAME= atlas PORTVERSION= 3.6.0 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -27,8 +27,6 @@ USE_GMAKE= yes WRKSRC= ${WRKDIR}/ATLAS USE_LDCONFIG= yes -BROKEN= Creating ATLAS'ed LAPACK part is broken - .include <bsd.port.pre.mk> USE_FORTRAN= yes @@ -136,6 +134,7 @@ do-configure: ATLAS_LIBS1=libalapack libatlas libcblas libf77blas libtstatlas ATLAS_LIBS2=libptcblas libptf77blas +LAPACKWRKSRC=`cd ${WRKDIR}/lapack; ${MAKE} -V WRKSRC` do-build: # make lapack @@ -143,7 +142,6 @@ do-build: @${ECHO_MSG} "===> Extracting lapack sub project" @${MKDIR} ${WRKDIR}/lapack @${CP} -r ${PORTSDIR}/math/lapack/files ${WRKDIR}/lapack - @${CP} -r ${PORTSDIR}/math/lapack/scripts ${WRKDIR}/lapack @${CP} ${PORTSDIR}/math/lapack/Makefile ${WRKDIR}/lapack @${CP} ${PORTSDIR}/math/lapack/distinfo ${WRKDIR}/lapack @${CP} ${PORTSDIR}/math/lapack/pkg-descr ${WRKDIR}/lapack @@ -161,7 +159,7 @@ post-build: .if defined(WITH_STATICLIB) # make atlas enhanced lapack (static ver) (cd ${WRKSRC}; ${MKDIR} tmp1 ; \ - ${CP} ${WRKDIR}/lapack/work/LAPACK/SRC/liblapack.a tmp1 ;\ + ${CP} ${LAPACKWRKSRC}/liblapack.a tmp1 ;\ cd tmp1 ;\ ar x liblapack.a ;\ ar x ../lib/NON_THREADED/liblapack.a ;\ @@ -169,7 +167,7 @@ post-build: ranlib ../lib/NON_THREADED/libalapack.a ) # make atlas enhanced lapack (static and thread safe ver) (cd ${WRKSRC}; ${MKDIR} tmp2 ; \ - ${CP} ${WRKDIR}/lapack/work/LAPACK/SRC/liblapack.a tmp2 ;\ + ${CP} ${LAPACKWRKSRC}/liblapack.a tmp2 ;\ cd tmp2 ;\ ar x liblapack.a ;\ ar x ../lib/THREADED/liblapack.a ;\ @@ -178,23 +176,17 @@ post-build: .endif # make atlas enhanced lapack (shared ver) ( cd ${WRKSRC}; ${MKDIR} tmp3 ;\ - ${TAR} --exclude "*.f" --exclude "*.po" --exclude "*.o" -cf - -C ${WRKDIR}/lapack/work/LAPACK/SRC . | ${TAR} xf - -C tmp3 ;\ - for object in `${FIND} tmp3 -name "*.So"` ; do \ - n=`${ECHO_CMD} $${object}|${SED} -e 's#.So##'` ; \ - ${MV} $$n.So $$n.o ; \ - done ; \ + ${CP} ${LAPACKWRKSRC}_shared/liblapack.a tmp3 ;\ cd tmp3 ;\ + ar x liblapack.a ;\ ar x ../lib/NON_THREADED_PIC/liblapack.a ;\ ar r ../lib/NON_THREADED_PIC/libalapack.a *.o ;\ ranlib ../lib/NON_THREADED_PIC/libalapack.a ) # make atlas enhanced lapack (shared and thread safe ver) ( cd ${WRKSRC}; ${MKDIR} tmp4 ;\ - ${TAR} --exclude "*.f" --exclude "*.po" --exclude "*.o" -cf - -C ${WRKDIR}/lapack/work/LAPACK/SRC . | ${TAR} xf - -C tmp4 ;\ - for object in `${FIND} tmp4 -name "*.So"` ; do \ - n=`${ECHO_CMD} $${object}|${SED} -e 's#.So##'` ; \ - ${MV} $$n.So $$n.o ; \ - done ; \ + ${CP} ${LAPACKWRKSRC}_shared/liblapack.a tmp4 ;\ cd tmp4 ;\ + ar x liblapack.a ;\ ar x ../lib/THREADED_PIC/liblapack.a ;\ ar r ../lib/THREADED_PIC/libalapack.a *.o ;\ ranlib ../lib/THREADED_PIC/libalapack.a ) |