FreeBSD Bugzilla – Attachment 23637 Details for
Bug 40631
Update port science/mpqc and new slave port science/mpqc-mpich
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 6.21 KB, created by
chat95
on 2002-07-15 23:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
chat95
Created:
2002-07-15 23:50:01 UTC
Size:
6.21 KB
patch
obsolete
>diff -urN /work/cvsup/ports/science/mpqc/Makefile mpqc/Makefile >--- /work/cvsup/ports/science/mpqc/Makefile Tue Jun 18 04:39:34 2002 >+++ mpqc/Makefile Tue Jul 16 06:51:43 2002 >@@ -12,17 +12,22 @@ > > MAINTAINER= batman@udel.edu > >-LIB_DEPENDS= blas:${PORTSDIR}/math/blas \ >- lapack:${PORTSDIR}/math/lapack >+LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \ >+ atlas:${PORTSDIR}/math/atlas >+BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison > > USE_BISON= yes > GNU_CONFIGURE= yes >-CONFIGURE_ARGS= --with-libdirs=-L${LOCALBASE}/lib >+CONFIGURE_ARGS= --with-libdirs=-L${PREFIX}/lib --prefix=${PREFIX} --with-blas="-lf77blas -latlas" --with-lapack="-lalapack -lcblas" --with-coptflags="${CFLAGS}" --with-cxxoptflags="${CFLAGS}" --with-f77optflags="${FFLAGS}" > USE_PERL5= yes > USE_GMAKE= yes >+USE_REINPLACE= yes > ALL_TARGET= # empty >+USE_AUTOCONF= yes > >-post-patch: >- @${PERL} -pi -e "s,-lpthreads,${PTHREAD_LIBS},g" ${WRKSRC}/configure >+pre-configure: >+ @${ECHO} "You can override and CFLAGS on the command line." >+ @${ECHO} "Following is a recommended one." >+ @${ECHO} "make CFLAGS=\"-malign-double -fexpensive-optimizations -O4 -ffast-math -funroll-loops\"" > > .include <bsd.port.mk> >diff -urN /work/cvsup/ports/science/mpqc/files/patch-::configure.in mpqc/files/patch-::configure.in >--- /work/cvsup/ports/science/mpqc/files/patch-::configure.in Thu Jan 1 09:00:00 1970 >+++ mpqc/files/patch-::configure.in Tue Jul 16 06:44:52 2002 >@@ -0,0 +1,150 @@ >+--- configure.in.orig Sun Apr 21 11:36:19 2002 >++++ configure.in Tue Jul 16 06:44:27 2002 >+@@ -334,6 +334,31 @@ >+ >+ ac_default_prefix="/usr/local/mpqc/$SC_VERSION" >+ >++AC_ARG_WITH(blas, >++[ --with-blas Gives BLAS name you use(e.g., -lblas).], >++BLASNAME=$withval >++) >++ >++AC_ARG_WITH(lapack, >++[ --with-lapack Gives LAPACK name you use(e.g., -llapack).], >++LAPACKNAME=$withval >++) >++ >++AC_ARG_WITH(cxxoptflags, >++[ --with-cxxoptflags Gives the C++ compiler optimization flags to use.], >++CXXOPTFLAGS=$withval >++) >++ >++AC_ARG_WITH(ccoptflags, >++[ --with-ccoptflags Gives the C compiler optimization flags to use.], >++CCOPTFLAGS=$withval >++) >++ >++AC_ARG_WITH(f77optflags, >++[ --with-f77optflags Gives the FORTRAN 77 optimization compiler flags to use.], >++F77OPTFLAGS=$withval >++) >++ >+ AC_ARG_WITH(cc, >+ [ --with-cc Gives the name of the C compiler to use.], >+ CC=$withval >+@@ -636,6 +661,23 @@ >+ ;; >+ esac >+ >++if test "$CCOPTFLAGS" = NONE; then >++else >++ echo "overrides the cc optimization flag with $CCOPTFLAGS" >++ COPTIONS_OPT="$CCOPTFLAGS" >++fi >++if test "$CXXOPTFLAGS" = NONE; then >++else >++ echo "overrides the c++ optimization flag with $CXXOPTFLAGS" >++ CXXOPTIONS_OPT="$CXXOPTFLAGS" >++fi >++ >++if test "$F77OPTFLAGS" = NONE; then >++else >++ echo "overrides the Fortrna 77 optimization flag with $F77OPTFLAGS" >++ F77OPTIONS_OPT="$F77OPTFLAGS" >++fi >++ >+ dnl -- special architecture options -- >+ >+ AC_MSG_CHECKING([for special architecture options]) >+@@ -839,10 +881,12 @@ >+ elif test $DEBUG = opt; then >+ CFLAGS="$COPTIONS_DBG $COPTIONS_OPT $COPTIONS_MISC" >+ CXXFLAGS="$CXXOPTIONS_DBG $COPTIONS_OPT $CXXOPTIONS_MISC" >++ FFLAGS="$F77OPTIONS_OPT" >+ LDFLAGS="$LDFLAGS -g" >+ else >+ CFLAGS="$COPTIONS_OPT $COPTIONS_MISC" >+ CXXFLAGS="$CXXOPTIONS_OPT $CXXOPTIONS_MISC" >++ FFLAGS="$F77OPTIONS_OPT" >+ fi >+ >+ AC_SUBST(EXTRAINCLUDE) >+@@ -979,6 +1023,19 @@ >+ AC_LANG_RESTORE >+ fi >+ >++dnl see if posix threads are in -pthreads >++if test $HAVE_PTHREAD = no; then >++AC_LANG_SAVE >++AC_LANG_CPLUSPLUS >++LIBSSAV="$LIBS" >++LIBS="$LIBS -pthread" >++AC_TRY_LINK([#include <pthread.h>],[pthread_join(0,0);],[ >++HAVE_PTHREAD=yes],[ >++HAVE_PTHREAD=no >++LIBS="$LIBSSAV"]) >++AC_LANG_RESTORE >++fi >++ >+ AC_MSG_RESULT($HAVE_PTHREAD) >+ fi >+ if test X$HAVE_PTHREAD = Xyes; then >+@@ -1280,18 +1337,26 @@ >+ LIBS="$LIBSSAV $FLIBS" >+ >+ LIBBLAS="" >++ >+ F77_DGEMM=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DAXPY` >+-AC_CHECK_FUNC($F77_DGEMM,HAVE_BLAS=yes,[ >+- AC_CHECK_LIB(essl,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lessl"], >+- AC_CHECK_LIB(blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lblas"]) >+- )] >+-) >+-if test X$HAVE_BLAS != Xyes; then >+- LIBSSAV2="$LIBS" >+- LIBS="-latlas $LIBS" >+- AC_CHECK_LIB(f77blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"], >+- LIBS="$LIBSSAV2") >++ >++if test "$BLASNAME" = NONE; then >++ AC_CHECK_FUNC($F77_DGEMM,HAVE_BLAS=yes,[ >++ AC_CHECK_LIB(essl,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lessl"], >++ AC_CHECK_LIB(blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lblas"]) >++ )] >++ ) >++ if test X$HAVE_BLAS != Xyes; then >++ LIBSSAV2="$LIBS" >++ LIBS="-latlas $LIBS" >++ AC_CHECK_LIB(f77blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"], >++ LIBS="$LIBSSAV2") >++ fi >++else >++ HAVE_BLAS="yes" >++ LIBBLAS="$BLASNAME" >+ fi >++ >+ AC_SUBST(HAVE_BLAS) >+ if test X$HAVE_BLAS != Xyes; then >+ echo "WARNING: Could not link to the BLAS library. It can be obtained at" >+@@ -1304,10 +1369,17 @@ >+ >+ LIBLAPACK="" >+ F77_DGESVD=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DGESVD` >+-AC_CHECK_FUNC($F77_DGESVD,HAVE_LAPACK=yes,[ >+- AC_CHECK_LIB(lapack,$F77_DGESVD,[HAVE_LAPACK=yes;LIBLAPACK="-llapack"] >+- )] >+-) >++ >++if test "$LAPACKNAME" = NONE; then >++ AC_CHECK_FUNC($F77_DGESVD,HAVE_LAPACK=yes,[ >++ AC_CHECK_LIB(lapack,$F77_DGESVD,[HAVE_LAPACK=yes;LIBLAPACK="-llapack"] >++ )] >++ ) >++else >++ HAVE_LAPACK="yes" >++ LIBLAPACK="$LAPACKNAME" >++fi >++ >+ AC_SUBST(HAVE_LAPACK) >+ if test X$HAVE_LAPACK != Xyes; then >+ echo "Could not link to the LAPACK library. It can be obtained at" >diff -urN /work/cvsup/ports/science/mpqc/files/patch-misc::scint.h mpqc/files/patch-misc::scint.h >--- /work/cvsup/ports/science/mpqc/files/patch-misc::scint.h Thu Jan 1 09:00:00 1970 >+++ mpqc/files/patch-misc::scint.h Sat Jul 6 01:47:15 2002 >@@ -0,0 +1,11 @@ >+--- src/lib/util/misc/scint.h.org Sat May 4 13:26:17 2002 >++++ src/lib/util/misc/scint.h Sat May 4 13:26:30 2002 >+@@ -117,7 +117,7 @@ >+ >+ # ifdef ULLONG_MAX >+ //# if ULLONG_MAX == 18446744073709551615 // 2**64 - 1 >+-# if ULONGLONG_MAX == (0xffffffffffffffffuLL) // uLL reqd for xlC >++# if ULLONG_MAX == (0xffffffffffffffffuLL) // uLL reqd for xlC >+ typedef long long sc_intmax_t; >+ typedef unsigned long long sc_uintmax_t; >+ typedef long long sc_int64_t;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40631
: 23637 |
23638