FreeBSD Bugzilla – Attachment 82439 Details for
Bug 117923
USE_FORTRAN=yes: shared libraries for blas, lapack, and atlas do not contain any dependencies on other libs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
lapack.txt
lapack.txt (text/plain), 9.32 KB, created by
bf
on 2008-07-04 14:34:25 UTC
(
hide
)
Description:
lapack.txt
Filename:
MIME Type:
Creator:
bf
Created:
2008-07-04 14:34:25 UTC
Size:
9.32 KB
patch
obsolete
>diff -ruN lapack.orig/Makefile lapack/Makefile >--- lapack.orig/Makefile 2008-06-18 22:08:21.000000000 -0400 >+++ lapack/Makefile 2008-07-03 08:37:41.394319630 -0400 >@@ -7,9 +7,13 @@ > > PORTNAME= lapack > PORTVERSION= 3.1.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= math >-MASTER_SITES= ftp://ftp.netlib.org/lapack/ >+MASTER_SITES= ftp://ftp.netlib.org/lapack/ \ >+ http://www.netlib.org/lapack/ \ >+ http://netlib.sandia.gov/lapack/ \ >+ http://www.mirrorservice.org/sites/netlib.bell-labs.com/netlib/lapack/ \ >+ http://www.netlib.no/netlib/lapack/ > DISTFILES= lapack-${PORTVERSION}.tgz manpages-${PORTVERSION}.tgz > > MAINTAINER= maho@FreeBSD.org >@@ -40,8 +44,11 @@ > WRKSRC_PROFILE=${WRKSRC}_profile > FFLAGS_PROFILE=-pg > >-SVERSION=4 >-BLAS= -L${LOCALBASE}/lib -lblas >+SVERSION= 4 >+PLIST_SUB+= SVERSION="${SVERSION}" >+BLAS?= -L${LOCALBASE}/lib -lblas >+LAPACKOBJ= ${MAKE} -C ${WRKSRC_SHARED}/SRC -V ALLOBJ >+TMGOBJ= ${MAKE} -C ${WRKSRC_SHARED}/TESTING/MATGEN -V ALLOBJ > > pre-fetch: > @${ECHO} "You can override FC and FFLAGS on the command line." >@@ -56,52 +63,65 @@ > -e 's,%%FFLAGS%%,${FFLAGS},g' \ > -e 's,%%EXTRAFLAGS%%,,g' \ > -e 's,%%BLAS%%,${BLAS},g' \ >+ -e 's,%%PLAT%%,,g' \ > ${WRKSRC}/make.inc > @${REINPLACE_CMD} -e 's,%%F77%%,${F77},g' \ > -e 's,%%FFLAGS%%,${FFLAGS},g' \ > -e 's,%%EXTRAFLAGS%%,${FFLAGS_SHARED},g' \ > -e 's,%%BLAS%%,${BLAS},g' \ >+ -e 's,%%PLAT%%,,g' \ > ${WRKSRC_SHARED}/make.inc > @${REINPLACE_CMD} -e 's,%%F77%%,${F77},g' \ > -e 's,%%FFLAGS%%,${FFLAGS},g' \ > -e 's,%%EXTRAFLAGS%%,${FFLAGS_PROFILE},g' \ > -e 's,%%BLAS%%,${BLAS},g' \ >+ -e 's,%%PLAT%%,_p,g' \ > ${WRKSRC_PROFILE}/make.inc > > do-build: > @${ECHO_CMD} "Building static lapack library" >- cd ${WRKSRC} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar >- @${ECHO_CMD} "Building shared lapack library" >- cd ${WRKSRC_SHARED} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar >- @${ECHO_CMD} "Building profile lapack library" >- cd ${WRKSRC_PROFILE} ; ${MAKE} ${.MAKEFLAGS} ARCH=ar >+ cd ${WRKSRC} && ${MAKE} ${.MAKEFLAGS} ARCH=ar lib >+ @${ECHO_CMD} "Building shared lapack library components" >+ cd ${WRKSRC_SHARED} && ${MAKE} ${.MAKEFLAGS} lapack_install >+ cd ${WRKSRC_SHARED}/SRC && ${MAKE} ${.MAKEFLAGS} `${LAPACKOBJ}` >+ cd ${WRKSRC_SHARED}/TESTING/MATGEN && ${MAKE} ${.MAKEFLAGS} `${TMGOBJ}` >+ @${ECHO_CMD} "Building profiled static lapack library" >+ cd ${WRKSRC_PROFILE} && ${MAKE} ${.MAKEFLAGS} ARCH=ar lib > > post-build: >- ${CP} ${WRKSRC}/lapack_FREEBSD.a ${WRKSRC}/liblapack.a >- ${CP} ${WRKSRC}/tmglib_FREEBSD.a ${WRKSRC}/libtmglib.a >- ${CP} ${WRKSRC_SHARED}/lapack_FREEBSD.a ${WRKSRC_SHARED}/liblapack.a >- ${CP} ${WRKSRC_SHARED}/tmglib_FREEBSD.a ${WRKSRC_SHARED}/libtmglib.a >- ${CP} ${WRKSRC_PROFILE}/lapack_FREEBSD.a ${WRKSRC_PROFILE}/liblapack_p.a >- ${CP} ${WRKSRC_PROFILE}/tmglib_FREEBSD.a ${WRKSRC_PROFILE}/libtmglib_p.a >- cd ${WRKSRC_SHARED} ; ld -Bshareable -o liblapack.so.${SVERSION} -x -soname liblapack.so.${SVERSION} --whole-archive liblapack.a ; ${LN} -s liblapack.so.${SVERSION} liblapack.so >- cd ${WRKSRC_SHARED} ; ld -Bshareable -o libtmglib.so.${SVERSION} -x -soname libtmglib.so.${SVERSION} --whole-archive libtmglib.a ; ${LN} -s libtmglib.so.${SVERSION} libtmglib.so >+ @${ECHO_CMD} "Assembling shared lapack library from components" >+ cd ${WRKSRC_SHARED}/SRC && \ >+ lorder `${LAPACKOBJ}` | tsort -q | ${XARGS} -J % ${FC} \ >+ ${FFLAGS} ${FFLAGS_SHARED} ${LDFLAGS} -shared \ >+ -Wl,-x -o ../liblapack.so.${SVERSION} \ >+ -Wl,-soname,liblapack.so.${SVERSION} % ${BLAS} >+ cd ${WRKSRC_SHARED}/TESTING/MATGEN && \ >+ lorder `${TMGOBJ}` | tsort -q | ${XARGS} -J % ${FC} \ >+ ${FFLAGS} ${FFLAGS_SHARED} ${LDFLAGS} -shared \ >+ -Wl,-x -o ../../libtmglib.so.${SVERSION} \ >+ -Wl,-soname,libtmglib.so.${SVERSION} % ${BLAS} > > do-install: >- ${INSTALL_DATA} ${WRKSRC}/liblapack.a ${PREFIX}/lib >- ${INSTALL_DATA} ${WRKSRC}/libtmglib.a ${PREFIX}/lib >- ${INSTALL_DATA} ${WRKSRC_SHARED}/liblapack.so.${SVERSION} ${PREFIX}/lib >- ${INSTALL_DATA} ${WRKSRC_SHARED}/libtmglib.so.${SVERSION} ${PREFIX}/lib >- ${LN} -sf liblapack.so.${SVERSION} ${PREFIX}/lib/liblapack.so >- ${LN} -sf libtmglib.so.${SVERSION} ${PREFIX}/lib/libtmglib.so >- ${INSTALL_DATA} ${WRKSRC_PROFILE}/liblapack_p.a ${PREFIX}/lib >- ${INSTALL_DATA} ${WRKSRC_PROFILE}/libtmglib_p.a ${PREFIX}/lib >- ${INSTALL_MAN} ${WRKSRC}/manpages/man/manl/[a-c]*.l ${PREFIX}/man/manl >- ${INSTALL_MAN} ${WRKSRC}/manpages/man/manl/[d-l]*.l ${PREFIX}/man/manl >- ${INSTALL_MAN} ${WRKSRC}/manpages/man/manl/[m-s]*.l ${PREFIX}/man/manl >- ${INSTALL_MAN} ${WRKSRC}/manpages/man/manl/[t-z]*.l ${PREFIX}/man/manl >+ ${INSTALL_SCRIPT} ${WRKSRC}/lapack.a ${PREFIX}/lib/liblapack.a >+ ${INSTALL_SCRIPT} ${WRKSRC}/tmglib.a ${PREFIX}/lib/libtmglib.a >+ ${INSTALL_PROGRAM} ${WRKSRC_SHARED}/liblapack.so.${SVERSION} ${PREFIX}/lib >+ ${INSTALL_PROGRAM} ${WRKSRC_SHARED}/libtmglib.so.${SVERSION} ${PREFIX}/lib >+ ${LN} -sf ${PREFIX}/lib/liblapack.so.${SVERSION} ${PREFIX}/lib/liblapack.so >+ ${LN} -sf ${PREFIX}/lib/libtmglib.so.${SVERSION} ${PREFIX}/lib/libtmglib.so >+ ${INSTALL_SCRIPT} ${WRKSRC_PROFILE}/lapack_p.a ${PREFIX}/lib/liblapack_p.a >+ ${INSTALL_SCRIPT} ${WRKSRC_PROFILE}/tmglib_p.a ${PREFIX}/lib/libtmglib_p.a >+ ${INSTALL_MAN} ${WRKSRC}/manpages/man/manl/*.l ${PREFIX}/man/manl > > regression-test: build > @${ECHO_CMD} "Testing static lapack library" >- cd ${WRKSRC}/TESTING ; ${MAKE} ${.MAKEFLAGS} ARCH=ar >+ cd ${WRKSRC}/TESTING && ${MAKE} ${.MAKEFLAGS} ARCH=ar >+ @${ECHO_CMD} "Testing shared lapack library" >+ cd ${WRKSRC_SHARED}/TESTING && ${MAKE} -E LAPACKLIB \ >+ -E TMGLIB ${.MAKEFLAGS} ARCH=ar LAPACKLIB=liblapack.so.${SVERSION} \ >+ TMGLIB=libtmglib.so.${SVERSION} >+ @${ECHO_CMD} "" >+ @${ECHO_CMD} " Examine the *.out files in ${WRKSRC}/TESTING and " >+ @${ECHO_CMD} " ${WRKSRC_SHARED}/TESTING for test outcomes " >+ @${ECHO_CMD} "" > > .include <bsd.port.post.mk> >diff -ruN lapack.orig/files/patch-INSTALL+make.inc.gfortran lapack/files/patch-INSTALL+make.inc.gfortran >--- lapack.orig/files/patch-INSTALL+make.inc.gfortran 1969-12-31 19:00:00.000000000 -0500 >+++ lapack/files/patch-INSTALL+make.inc.gfortran 2008-07-03 07:49:15.759906038 -0400 >@@ -0,0 +1,36 @@ >+--- INSTALL/make.inc.gfortran.orig 2007-02-23 15:07:35.000000000 -0500 >++++ INSTALL/make.inc.gfortran 2008-07-02 13:46:47.204240167 -0400 >+@@ -8,7 +8,7 @@ >+ # >+ # The machine (platform) identifier to append to the library names >+ # >+-PLAT = _LINUX >++PLAT = %%PLAT%% >+ # >+ # Modify the FORTRAN and OPTS definitions to refer to the >+ # compiler and desired compiler options for your machine. NOOPT >+@@ -16,11 +16,11 @@ >+ # selected. Define LOADER and LOADOPTS to refer to the loader and >+ # desired load options for your machine. >+ # >+-FORTRAN = gfortran >+-OPTS = -O2 >++FORTRAN = %%F77%% >++OPTS = %%FFLAGS%% %%EXTRAFLAGS%% >+ DRVOPTS = $(OPTS) >+-NOOPT = -O0 >+-LOADER = gfortran >++NOOPT = -O0 %%EXTRAFLAGS%% >++LOADER = %%F77%% >+ LOADOPTS = >+ # >+ # Timer for the SECOND and DSECND routines >+@@ -48,7 +48,7 @@ >+ # machine-specific, optimized BLAS library should be used whenever >+ # possible.) >+ # >+-BLASLIB = ../../blas$(PLAT).a >++BLASLIB = %%BLAS%% >+ LAPACKLIB = lapack$(PLAT).a >+ TMGLIB = tmglib$(PLAT).a >+ EIGSRCLIB = eigsrc$(PLAT).a >diff -ruN lapack.orig/files/patch-Makefile lapack/files/patch-Makefile >--- lapack.orig/files/patch-Makefile 2007-09-29 08:53:55.000000000 -0400 >+++ lapack/files/patch-Makefile 1969-12-31 19:00:00.000000000 -0500 >@@ -1,14 +0,0 @@ >---- Makefile 2007-09-29 10:36:38.000000000 +0900 >-+++ Makefile 2007-09-29 10:38:25.000000000 +0900 >-@@ -7,7 +7,11 @@ >- include make.inc >- >- >-+.if defined(ENABLE_TESTING) && ${ENABLE_TESTING} == "YES" >- all: lapack_install lib lapack_testing blas_testing >-+.else >-+all: lapack_install lib >-+.endif >- >- lib: lapacklib tmglib >- #lib: blaslib lapacklib tmglib >diff -ruN lapack.orig/files/patch-make.inc.gfortran lapack/files/patch-make.inc.gfortran >--- lapack.orig/files/patch-make.inc.gfortran 2007-09-29 08:53:55.000000000 -0400 >+++ lapack/files/patch-make.inc.gfortran 1969-12-31 19:00:00.000000000 -0500 >@@ -1,36 +0,0 @@ >---- INSTALL/make.inc.gfortran.orig 2007-02-24 05:07:35.000000000 +0900 >-+++ INSTALL/make.inc.gfortran 2007-09-29 10:22:01.000000000 +0900 >-@@ -8,7 +8,7 @@ >- # >- # The machine (platform) identifier to append to the library names >- # >--PLAT = _LINUX >-+PLAT = _FREEBSD >- # >- # Modify the FORTRAN and OPTS definitions to refer to the >- # compiler and desired compiler options for your machine. NOOPT >-@@ -16,11 +16,11 @@ >- # selected. Define LOADER and LOADOPTS to refer to the loader and >- # desired load options for your machine. >- # >--FORTRAN = gfortran >--OPTS = -O2 >-+FORTRAN = %%F77%% >-+OPTS = %%FFLAGS%% %%EXTRAFLAGS%% >- DRVOPTS = $(OPTS) >--NOOPT = -O0 >--LOADER = gfortran >-+NOOPT = -O0 %%EXTRAFLAGS%% >-+LOADER = %%F77%% >- LOADOPTS = >- # >- # Timer for the SECOND and DSECND routines >-@@ -48,7 +48,7 @@ >- # machine-specific, optimized BLAS library should be used whenever >- # possible.) >- # >--BLASLIB = ../../blas$(PLAT).a >-+BLASLIB = %%BLAS%% >- LAPACKLIB = lapack$(PLAT).a >- TMGLIB = tmglib$(PLAT).a >- EIGSRCLIB = eigsrc$(PLAT).a >diff -ruN lapack.orig/pkg-plist lapack/pkg-plist >--- lapack.orig/pkg-plist 2007-09-29 08:53:54.000000000 -0400 >+++ lapack/pkg-plist 2008-07-03 07:49:15.759906038 -0400 >@@ -1,8 +1,8 @@ > lib/liblapack.a > lib/liblapack.so >-lib/liblapack.so.4 >+lib/liblapack.so.%%SVERSION%% > lib/liblapack_p.a > lib/libtmglib.a > lib/libtmglib.so >-lib/libtmglib.so.4 >+lib/libtmglib.so.%%SVERSION%% > lib/libtmglib_p.a
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 Raw
Actions:
View
Attachments on
bug 117923
:
82438
| 82439 |
82440
|
82441
|
82442
|
82443