diff options
author | maho <maho@FreeBSD.org> | 2007-01-12 14:19:27 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-01-12 14:19:27 +0800 |
commit | 83170543e9a23166c47872321d42ebf4f01ef1e2 (patch) | |
tree | a83ec8fcf15f9d941db4d7af8730e675c24728ff /math/suitesparse | |
parent | 3c24fed78bf959912074e5dfda184ff8ae8b802c (diff) | |
download | freebsd-ports-gnome-83170543e9a23166c47872321d42ebf4f01ef1e2.tar.gz freebsd-ports-gnome-83170543e9a23166c47872321d42ebf4f01ef1e2.tar.zst freebsd-ports-gnome-83170543e9a23166c47872321d42ebf4f01ef1e2.zip |
* Use gfortran42 only and not gcc42.
* Bump portrevision.
* fix pkg-plist
Diffstat (limited to 'math/suitesparse')
-rw-r--r-- | math/suitesparse/Makefile | 11 | ||||
-rw-r--r-- | math/suitesparse/pkg-plist | 12 |
2 files changed, 20 insertions, 3 deletions
diff --git a/math/suitesparse/Makefile b/math/suitesparse/Makefile index 5a22cc2dfd72..265efa3d79f1 100644 --- a/math/suitesparse/Makefile +++ b/math/suitesparse/Makefile @@ -7,7 +7,7 @@ PORTNAME= suitesparse PORTVERSION= 2.3.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= http://www.cise.ufl.edu/research/sparse/SuiteSparse/ DISTNAME= SuiteSparse-${PORTVERSION} @@ -46,8 +46,10 @@ CONFLICTS= umfpack-* USE_LDCONFIG= yes USE_GMAKE= yes -USE_GCC= 4.2+ -WANT_FORTRAN= yes +WANT_FORTRAN= yes #dummy but future use +BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 +FC= gfortran42 +F77= gfortran42 WRKSRC=${WRKDIR}/SuiteSparse WRKSRC_SHARED=${WRKSRC}_shared CFLAGS_SHARED=${CFLAGS} ${FPIC} @@ -94,8 +96,10 @@ do-build: ${RM} -rf ${WRKDIR}/tmp_shared ${MKDIR} ${WRKDIR}/tmp_shared ${FIND} ${WRKSRC_SHARED} -name "*\.a" -exec ${MV} {} ${WRKDIR}/tmp_shared \; +post-build: cd ${WRKDIR}/tmp_shared ; for i in `ls *.a | ${SED} 's/\.a//' `; do \ ld -Bshareable -o $${i}.so.${SVERSION} -x -soname $${i}.so.${SVERSION} --whole-archive $${i}.a ;\ + ln -s $${i}.so.${SVERSION} $${i}.so ;\ done do-install: @@ -113,5 +117,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/CAMD/Include/*.h ${PREFIX}/include/suitesparse ${INSTALL_DATA} ${WRKDIR}/tmp_static/*.a ${PREFIX}/lib ${INSTALL_DATA} ${WRKDIR}/tmp_shared/*.so.${SVERSION} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKDIR}/tmp_shared/*.so ${PREFIX}/lib .include <bsd.port.post.mk> diff --git a/math/suitesparse/pkg-plist b/math/suitesparse/pkg-plist index 4f8daf95cc4f..8fd4014c9cc6 100644 --- a/math/suitesparse/pkg-plist +++ b/math/suitesparse/pkg-plist @@ -60,28 +60,40 @@ include/suitesparse/umfpack_wsolve.h include/ufsparse @dirrm include/suitesparse lib/libamd.a +lib/libamd.so lib/libamd.so.1 lib/libbtf.a +lib/libbtf.so lib/libbtf.so.1 lib/libcamd.a +lib/libcamd.so lib/libcamd.so.1 lib/libccolamd.a +lib/libccolamd.so lib/libccolamd.so.1 lib/libcerbla.a +lib/libcerbla.so lib/libcerbla.so.1 lib/libcholmod.a +lib/libcholmod.so lib/libcholmod.so.1 lib/libcolamd.a +lib/libcolamd.so lib/libcolamd.so.1 lib/libcsparse.a +lib/libcsparse.so lib/libcsparse.so.1 lib/libcxsparse.a +lib/libcxsparse.so lib/libcxsparse.so.1 lib/libklu.a +lib/libklu.so lib/libklu.so.1 lib/libklu_cholmod.a +lib/libklu_cholmod.so lib/libklu_cholmod.so.1 lib/libldl.a lib/libldl.so.1 lib/libumfpack.a +lib/libumfpack.so lib/libumfpack.so.1 |