1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

* Use gfortran42 only and not gcc42.

* Bump portrevision.
* fix pkg-plist
This commit is contained in:
Maho Nakata 2007-01-12 06:19:27 +00:00
parent 440984cf29
commit 3f62ee0632
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182142
2 changed files with 20 additions and 3 deletions

View File

@ -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>

View File

@ -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