diff options
author | maho <maho@FreeBSD.org> | 2007-01-09 13:54:45 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-01-09 13:54:45 +0800 |
commit | de037bd5b3b0d7047c384b83165ae07357b8aaaa (patch) | |
tree | 4fd3ced33bfe1af1570c205eea50d79297959eda /math | |
parent | a2824e2bc0d229010ecc9c49b8d0120d03d8dcb0 (diff) | |
download | freebsd-ports-gnome-de037bd5b3b0d7047c384b83165ae07357b8aaaa.tar.gz freebsd-ports-gnome-de037bd5b3b0d7047c384b83165ae07357b8aaaa.tar.zst freebsd-ports-gnome-de037bd5b3b0d7047c384b83165ae07357b8aaaa.zip |
Migrated to gfortran42.
Bump portrevision.
Diffstat (limited to 'math')
-rw-r--r-- | math/arpack/Makefile | 45 | ||||
-rw-r--r-- | math/arpack/files/patch-ARmake.inc | 2 | ||||
-rw-r--r-- | math/arpack/pkg-plist | 2 |
3 files changed, 41 insertions, 8 deletions
diff --git a/math/arpack/Makefile b/math/arpack/Makefile index e7cc22f9ee19..738819c438f9 100644 --- a/math/arpack/Makefile +++ b/math/arpack/Makefile @@ -7,6 +7,7 @@ PORTNAME= arpack PORTVERSION= 96 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/ DISTFILES= ${PORTNAME}${PORTVERSION}.tar.gz patch.tar.gz @@ -21,27 +22,57 @@ PATCH_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/ MAINTAINER= ports@FreeBSD.org COMMENT= Argand Library: large eigenvalue subroutines (serial version) -BUILD_DEPENDS= ${LOCALBASE}/lib/libblas.a:${PORTSDIR}/math/blas +WANT_FORTRAN= yes +USE_GCC= 4.2+ -CONFLICTS= elmer-mathlibs-1* +.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) +WITH_ATLAS= yes +.endif +.if defined(WITH_ATLAS) +LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas +BLAS_LIBS?= "-L${LOCALBASE}/lib -lf77blas -latlas" +.else +LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas +BLAS_LIBS?= "-L${LOCALBASE}/lib -lblas" +.endif -WRKSRC= ${WRKDIR}/ARPACK ALL_TARGET= lib +USE_LDCONFIG= yes -BLAS_LIBS?= ${LOCALBASE}/lib/libblas.a +.include <bsd.port.pre.mk> +.if ${ARCH} == "sparc64" +PICFLAG?= -fPIC +.else +PICFLAG?= -fpic +.endif + +WRKSRC= ${WRKDIR}/ARPACK +WRKSRC_SHARED= ${WRKDIR}/ARPACK_SHARED +FFLAGS_SHARED= ${FFLAGS} ${PICFLAG} +CONFLICTS= elmer-mathlibs-1* USE_LDCONFIG= yes pre-patch: @(cd ${WRKSRC}; ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/patch.tar.gz) pre-build: + ${CP} -R ${WRKSRC} ${WRKSRC_SHARED} @${REINPLACE_CMD} -e 's+%FC%+${FC}+g ; s+%FFLAGS%+${FFLAGS}+g ; \ - s+%%WRKDIR%%+${WRKDIR}+ ; \ + s+%%WRKSRC%%+${WRKSRC}+ ; \ s+%%BLAS_LIBS%%+${BLAS_LIBS}+' ${WRKSRC}/ARmake.inc + @${REINPLACE_CMD} -e 's+%FC%+${FC}+g ; s+%FFLAGS%+${FFLAGS_SHARED}+g ; \ + s+%%WRKSRC%%+${WRKSRC_SHARED}+ ; \ + s+%%BLAS_LIBS%%+${BLAS_LIBS}+' ${WRKSRC_SHARED}/ARmake.inc + +do-build: + cd ${WRKSRC} ; ${MAKE} ${ALL_TARGET} + cd ${WRKSRC_SHARED} ; ${MAKE} ${ALL_TARGET} ; ld -Bshareable -o libarpack.so.1 -x -soname libarpack.so.1 --whole-archive libarpack.a do-install: - ${INSTALL} ${WRKSRC}/libarpack.a ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC}/libarpack.a ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC_SHARED}/libarpack.so.1 ${PREFIX}/lib + @${LN} -sf libarpack.so.1 ${PREFIX}/lib/libarpack.so post-install: .if !defined(NOPORTDOCS) @@ -52,4 +83,4 @@ post-install: ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/ug.ps.gz ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/math/arpack/files/patch-ARmake.inc b/math/arpack/files/patch-ARmake.inc index e5ce10338efc..5111db81b5c8 100644 --- a/math/arpack/files/patch-ARmake.inc +++ b/math/arpack/files/patch-ARmake.inc @@ -5,7 +5,7 @@ # %--------------------------------------% # -home = $(HOME)/ARPACK -+home = %%WRKDIR%%/ARPACK ++home = %%WRKSRC%% # # %--------------------------------------% # | The platform identifier to suffix to | diff --git a/math/arpack/pkg-plist b/math/arpack/pkg-plist index 920bb476e04e..7b67edf7818f 100644 --- a/math/arpack/pkg-plist +++ b/math/arpack/pkg-plist @@ -1,4 +1,6 @@ lib/libarpack.a +lib/libarpack.so +lib/libarpack.so.1 %%PORTDOCS%%include/arpack.h %%PORTDOCS%%%%DOCSDIR%%/ex-complex.doc.gz %%PORTDOCS%%%%DOCSDIR%%/ex-nonsym.doc.gz |