diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2007-06-08 08:09:41 +0800 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2007-06-08 08:09:41 +0800 |
commit | 1698332f2b1899db48cc4e4452b9c46eb9e7a9d7 (patch) | |
tree | a72f3f2c75c336fd613a67b5e87e83723aa24279 /net/openmpi/Makefile | |
parent | ce7c1934f9d9513d40bd34f6dc647b1f621c47ba (diff) | |
download | freebsd-ports-gnome-1698332f2b1899db48cc4e4452b9c46eb9e7a9d7.tar.gz freebsd-ports-gnome-1698332f2b1899db48cc4e4452b9c46eb9e7a9d7.tar.zst freebsd-ports-gnome-1698332f2b1899db48cc4e4452b9c46eb9e7a9d7.zip |
Upgrade to 1.2.2, the most recent release.
Handle manpages correct.
Remove defunct pkg-message.
LDCONFIG all the directories [0]
Submitted by: CHAO Shin [0]
PR: ports/112236 [0]
Diffstat (limited to 'net/openmpi/Makefile')
-rw-r--r-- | net/openmpi/Makefile | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/net/openmpi/Makefile b/net/openmpi/Makefile index f7b74a6b4c7c..5dce4851b88d 100644 --- a/net/openmpi/Makefile +++ b/net/openmpi/Makefile @@ -9,10 +9,10 @@ # - etc/*.sample support PORTNAME= openmpi -DISTVERSION= 1.1.4 +DISTVERSION= 1.2.2 PORTREVISION= 1 CATEGORIES= net parallel -MASTER_SITES= http://www.open-mpi.org/software/ompi/v1.1/downloads/ +MASTER_SITES= http://www.open-mpi.org/software/ompi/v1.2/downloads/ MAINTAINER= brooks@FreeBSD.org COMMENT= A High Performance Message Passing Library @@ -29,17 +29,13 @@ MPIDIR?= ${MPIBASE}/${UNIQUENAME} PLIST_SUB+= MPIBASE=${MPIBASE} PLIST_SUB+= MPIDIR=${MPIDIR} -SUB_FILES+= pkg-message -SUB_LIST+= MPIDIR=${MPIDIR} - -PKGMESSAGE= ${WRKDIR}/pkg-message - CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} ${CONFIGURE_TARGET} -USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib/openmpi +USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \ + ${PREFIX}/${MPIDIR}/lib/openmpi -MAN1= mpiexec.1 mpirun.1 orterun.1 MANPREFIX= ${TARGETDIR}/${MPIDIR} +.include "${.CURDIR}/Makefile.man" .include <bsd.port.pre.mk> @@ -64,27 +60,35 @@ PLIST_SUB+= TORQUE="" PLIST_SUB+= TORQUE="@comment " .endif -post-install: - @${CAT} ${PKGMESSAGE} - ####################################################################### # The following targets are for the port maintainer. Use at your own # # risk, no user-serviceable parts inside. # +# # +# XXX: we should generate MLINKS programaticaly, but it would take # +# some effort and there's only one entry at this time. # ####################################################################### build-plist: Makefile - ${RM} -f pkg-plist - ${FIND} ${PREFIX}/${MPIDIR}/* -type f | \ + ${RM} ${PLIST} + ${FIND} ${PREFIX}/${MPIDIR} -name man -prune -o -type f -print | \ ${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \ - ${SORT} >> pkg-plist - ${FIND} ${PREFIX}/${MPIDIR}/* -type l | \ + ${SORT} >> ${PLIST} + ${FIND} ${PREFIX}/${MPIDIR} -name man -prune -o -type l -print | \ ${SED} -e 's|${PREFIX}/${MPIDIR}|%%MPIDIR%%|' | \ - ${SORT} >> pkg-plist - ${FIND} ${PREFIX}/${MPIDIR}/* -type d | \ + ${SORT} >> ${PLIST} + ${FIND} ${PREFIX}/${MPIDIR} -type d | \ + egrep -v "${PREFIX}/${MPIDIR}$$" | \ ${SED} -e 's|${PREFIX}/${MPIDIR}|@dirrm %%MPIDIR%%|' | \ - ${SORT} -r >> pkg-plist + ${SORT} -r >> ${PLIST} ${ECHO} "@dirrmtry %%MPIDIR%%" \ - >> pkg-plist - ${ECHO} "@dirrmtry %D/%%MPIBASE%%" \ - >> pkg-plist + >> ${PLIST} + ${ECHO} "@dirrmtry %%MPIBASE%%" \ + >> ${PLIST} + @echo "# Do not edit! Auto-generated file." > ${.CURDIR}/Makefile.man + @echo "# See build-plist target in Makefile." >> ${.CURDIR}/Makefile.man + @echo "#" >> ${.CURDIR}/Makefile.man + @echo "MLINKS=mpic++.1 mpiCC.1" >> ${.CURDIR}/Makefile.man + ${FIND} ${PREFIX}/${MPIDIR}/man -type f | \ + ${SED} -e 's|.*man\([0-9LN]\)/\(.*\)|MAN\1+=\2|' -e 's/\.gz$$//' \ + >> ${.CURDIR}/Makefile.man .include <bsd.port.post.mk> |