aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-03-09 08:33:51 +0800
committermaho <maho@FreeBSD.org>2007-03-09 08:33:51 +0800
commitd1100d22bcb5a947c9e0557c6f93fa6d07a9b619 (patch)
tree9ac6db81738fdd7d74b7b5d7e99acb0198592077 /net
parent2bc0145d93a5414f46521a21003bae29bb76e73a (diff)
downloadfreebsd-ports-gnome-d1100d22bcb5a947c9e0557c6f93fa6d07a9b619.tar.gz
freebsd-ports-gnome-d1100d22bcb5a947c9e0557c6f93fa6d07a9b619.tar.zst
freebsd-ports-gnome-d1100d22bcb5a947c9e0557c6f93fa6d07a9b619.zip
1. Build and install shared library.
2. configure should recognize pthread stuffs. Submitted by: maho Approved and improved by: thierry
Diffstat (limited to 'net')
-rw-r--r--net/mpich2/Makefile15
-rw-r--r--net/mpich2/pkg-plist4
2 files changed, 15 insertions, 4 deletions
diff --git a/net/mpich2/Makefile b/net/mpich2/Makefile
index ef27bd8476d0..d34421816b61 100644
--- a/net/mpich2/Makefile
+++ b/net/mpich2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mpich2
PORTVERSION= 1.0.5p3
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= net parallel
MASTER_SITES= ftp://ftp.mcs.anl.gov/pub/mpi/ \
@@ -33,8 +34,8 @@ USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --enable-romio
-CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" F77=${F77} FFLAGS=${FFLAGS}
+CONFIGURE_ARGS= --enable-romio --enable-sharedlibs=gcc
+CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" LDFLAGS="${PTHREAD_LIBS}" F77=${F77} FFLAGS=${FFLAGS}
FFLAGS?= -O2
NOCCACHE= yes
MAKE_ENV= CCACHE_DISABLE=yes
@@ -84,6 +85,8 @@ CONFIGURE_ARGS+= --without-docdir --without-htmldir
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR} --with-htmldir=${DOCSDIR}
.endif
+LIBSSO= fmpich mpich
+
THREAD2FIX= configure test/mpi/threads/comm/Makefile.in \
test/mpi/threads/pt2pt/Makefile.in
LOCALBASE2FIX= src/mpe2/src/slog2sdk/trace_rlog/configure \
@@ -127,8 +130,12 @@ pre-configure:
${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${X11BASE2FIX:S|^|${WRKSRC}/|}
post-install:
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}
- @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/bin
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}
+ ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/bin
+.for lib in ${LIBSSO}
+ ${MV} ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/lib${lib}.so.0
+ ${LN} -s ${PREFIX}/lib/lib${lib}.so.0 ${PREFIX}/lib/lib${lib}.so
+.endfor
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/bin
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/bin
@${CAT} ${PKGMESSAGE}
diff --git a/net/mpich2/pkg-plist b/net/mpich2/pkg-plist
index 34386e73b2f8..b9c732e202e3 100644
--- a/net/mpich2/pkg-plist
+++ b/net/mpich2/pkg-plist
@@ -145,6 +145,8 @@ include/mpiof.h
%%JAVA%%lib/trace_rlog/libTraceInput.so
%%X11%%lib/libampe.a
lib/libfmpich.a
+lib/libfmpich.so
+lib/libfmpich.so.0
lib/libmpichf90.a
lib/liblmpe.a
lib/libmpe.a
@@ -154,6 +156,8 @@ lib/libmpe_nompi.a
lib/libmpe_nompi_null.a
lib/libmpe_null.a
lib/libmpich.a
+lib/libmpich.so
+lib/libmpich.so.0
lib/libmpichcxx.a
lib/libtmpe.a
%%JAVA%%lib/logconvertor.jar