2008-01-31 22:06:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.51 2008/01/31 21:06:22 is Exp $
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2004-11-12 11:45:45 +01:00
|
|
|
DISTNAME= pvm3.4.5
|
|
|
|
PKGNAME= pvm-3.4.5
|
2008-01-31 22:06:22 +01:00
|
|
|
PKGREVISION= 4
|
2004-11-12 11:45:45 +01:00
|
|
|
CATEGORIES= parallel
|
|
|
|
MASTER_SITES= http://www.netlib.org/pvm3/
|
|
|
|
EXTRACT_SUFX= .tgz
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:53:15 +02:00
|
|
|
HOMEPAGE= http://www.csm.ornl.gov/pvm/pvm_home.html
|
2004-11-12 11:45:45 +01:00
|
|
|
COMMENT= Parallel Virtual Machine libraries and environment
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2006-07-18 22:57:31 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILD_DEFS+= PVM_SSH
|
|
|
|
|
|
|
|
.if !defined(PVM_SSH)
|
|
|
|
PKG_FAIL_REASON+= PVM_SSH must be defined by the pkgsrc user.
|
2000-10-10 21:26:15 +02:00
|
|
|
.else
|
2006-07-18 22:57:31 +02:00
|
|
|
. if ${PVM_SSH:M${LOCALBASE}/*} != ""
|
2004-06-01 00:13:16 +02:00
|
|
|
DEPENDS+= {openssh-[0-9]*,ssh{,6}-1.2.27*}:../../security/openssh
|
2006-07-18 22:57:31 +02:00
|
|
|
. endif
|
2000-10-10 17:02:13 +02:00
|
|
|
.endif
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/pvm3
|
2006-07-18 22:57:31 +02:00
|
|
|
USE_LANGUAGES= c fortran
|
2004-07-20 00:41:16 +02:00
|
|
|
USE_LIBTOOL= yes
|
2006-05-21 15:04:10 +02:00
|
|
|
USE_TOOLS+= gmake
|
2008-01-31 20:04:09 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
2002-10-01 00:18:55 +02:00
|
|
|
|
2002-02-07 11:49:07 +01:00
|
|
|
PVM_ROOT= ${WRKSRC}
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= PVM_ROOT=${WRKSRC:Q}
|
1999-11-23 17:05:28 +01:00
|
|
|
MAKE_ENV+= PVM_ARCH=
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= SSH=${PVM_SSH:Q}
|
|
|
|
MAKE_ENV+= MKDIR=${MKDIR:Q}
|
2004-07-20 00:41:16 +02:00
|
|
|
MAKE_ENV+= PVMLIB_VER=3:4
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= PVM_DIR=${PVM_DIR:Q}
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= all install
|
2002-10-01 00:18:55 +02:00
|
|
|
|
|
|
|
# Set PVM_ARCH to the correct value for this machine platform.
|
|
|
|
.include "arch.mk"
|
1998-10-14 01:31:03 +02:00
|
|
|
|
1999-11-23 17:05:28 +01:00
|
|
|
PVM_DIR= ${PREFIX}/pvm3
|
2004-07-20 00:41:16 +02:00
|
|
|
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
|
2006-01-27 17:34:36 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/DRAGONFLY.m4 ${FILESDIR}/DRAGONFLY.def ${WRKSRC}/conf
|
|
|
|
|
2004-07-20 00:41:16 +02:00
|
|
|
post-build:
|
|
|
|
${CP} ${WRKSRC}/examples/${PVM_ARCH}/.libs/* \
|
|
|
|
${WRKSRC}/bin/${PVM_ARCH}/.libs
|
|
|
|
-${CP} ${WRKSRC}/gexamples/${PVM_ARCH}/.libs/* \
|
|
|
|
${WRKSRC}/bin/${PVM_ARCH}/.libs
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2002-08-08 11:40:38 +02:00
|
|
|
# avoid installing this file
|
2004-03-12 02:14:00 +01:00
|
|
|
pre-install:
|
2002-08-08 11:40:38 +02:00
|
|
|
${RM} -f ${WRKSRC}/lib/pvmgetarch.orig
|
2002-11-09 16:24:24 +01:00
|
|
|
${RM} -f ${WRKSRC}/man/man1/pvm_intro.1.orig
|
2002-08-08 11:40:38 +02:00
|
|
|
|
1998-10-14 01:31:03 +02:00
|
|
|
do-install:
|
2004-07-26 13:14:28 +02:00
|
|
|
${INSTALL_PROGRAM_DIR} ${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
.for __tmp__ in libgpvm3.la libpvm3.la libpvmtrc.la libfpvm3.la
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/lib/${PVM_ARCH}/${__tmp__} ${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
.endfor
|
|
|
|
.for __tmp__ in pvm pvmgs
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
2005-09-28 16:31:06 +02:00
|
|
|
${WRKSRC}/lib/${PVM_ARCH}/${__tmp__} ${PVM_DIR}/lib/${PVM_ARCH}/
|
2004-07-26 13:14:28 +02:00
|
|
|
.endfor
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/${PVM_ARCH}/pvmd3 \
|
|
|
|
${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
${LIBTOOL} --mode=finish ${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
for f in `${LS} -1 ${WRKSRC}/lib`; do \
|
|
|
|
if [ -f ${WRKSRC}/lib/$$f ]; then \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/$$f ${PVM_DIR}/lib; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2002-10-01 00:18:55 +02:00
|
|
|
${INSTALL_PROGRAM_DIR} ${PVM_DIR}/bin/${PVM_ARCH}
|
2004-07-20 00:41:16 +02:00
|
|
|
for f in ${WRKSRC}/bin/${PVM_ARCH}/* ; do \
|
|
|
|
${ECHO} "Installing $$f" ; \
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} $$f \
|
|
|
|
${PVM_DIR}/bin/${PVM_ARCH}/ ; done
|
2002-10-01 00:18:55 +02:00
|
|
|
|
|
|
|
${INSTALL_DATA_DIR} ${PVM_DIR}/conf
|
2006-12-12 20:29:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${PVM_ARCH}.def ${PVM_DIR}/conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${PVM_ARCH}.m4 ${PVM_DIR}/conf
|
2002-10-01 00:18:55 +02:00
|
|
|
|
|
|
|
${INSTALL_DATA_DIR} ${PVM_DIR}/examples
|
2006-12-12 20:29:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.f ${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Readme ${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Makefile.aimk ${PVM_DIR}/examples
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2002-10-01 00:18:55 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PVM_DIR}/gexamples
|
2006-12-12 20:29:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/*.c ${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/*.f ${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Readme ${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Makefile.aimk ${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Makefile ${PVM_DIR}/gexamples
|
2002-10-01 00:18:55 +02:00
|
|
|
|
|
|
|
${INSTALL_DATA_DIR} ${PVM_DIR}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${PVM_DIR}/include
|
|
|
|
|
2006-12-12 20:29:13 +01:00
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man3
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man3/* ${PREFIX}/${PKGMANDIR}/man3
|
|
|
|
${RM} ${PREFIX}/${PKGMANDIR}/man1/PVM.1
|
|
|
|
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/pvm_intro.1 ${PREFIX}/${PKGMANDIR}/man1/PVM.1
|
1999-11-23 17:05:28 +01:00
|
|
|
|
2007-02-02 01:55:15 +01:00
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
|
|
.include "../../x11/libXp/buildlink3.mk"
|
1998-10-14 01:31:03 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|