2012-09-11 22:32:10 +02:00
|
|
|
# $NetBSD: Makefile,v 1.63 2012/09/11 20:36:18 asau Exp $
|
1998-10-14 01:31:03 +02:00
|
|
|
|
2009-05-20 01:44:55 +02:00
|
|
|
DISTNAME= pvm3.4.6
|
|
|
|
PKGNAME= pvm-3.4.6
|
2009-12-03 14:06:51 +01:00
|
|
|
PKGREVISION= 1
|
2004-11-12 11:45:45 +01:00
|
|
|
CATEGORIES= parallel
|
2009-02-22 15:15:28 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_NETLIB:=pvm3/}
|
2004-11-12 11:45:45 +01:00
|
|
|
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
|
2010-07-30 12:36:22 +02:00
|
|
|
USE_LANGUAGES= c fortran77
|
2004-07-20 00:41:16 +02:00
|
|
|
USE_LIBTOOL= yes
|
2012-02-03 05:29:54 +01:00
|
|
|
USE_TOOLS+= gmake m4 csh:run
|
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
|
|
|
|
2012-02-06 07:19:17 +01:00
|
|
|
REPLACE_CSH= ${WRKSRC}/lib/debugger ${WRKSRC}/lib/debugger2
|
2012-02-03 05:29:54 +01:00
|
|
|
|
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
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= ${PVM_DIR}/bin/${PVM_ARCH} ${PVM_DIR}/conf \
|
|
|
|
${PVM_DIR}/examples ${PVM_DIR}/gexamples \
|
|
|
|
${PVM_DIR}/include ${PVM_DIR}/lib/${PVM_ARCH} \
|
|
|
|
${PKGMANDIR}/man1 ${PKGMANDIR}/man3
|
|
|
|
|
1998-10-14 01:31:03 +02:00
|
|
|
do-install:
|
2004-07-26 13:14:28 +02:00
|
|
|
.for __tmp__ in libgpvm3.la libpvm3.la libpvmtrc.la libfpvm3.la
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
2008-06-12 04:14:13 +02:00
|
|
|
${WRKSRC}/lib/${PVM_ARCH}/${__tmp__} ${DESTDIR}${PVM_DIR}/lib/${PVM_ARCH}
|
2004-07-26 13:14:28 +02:00
|
|
|
.endfor
|
|
|
|
.for __tmp__ in pvm pvmgs
|
|
|
|
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
|
2008-06-12 04:14:13 +02:00
|
|
|
${WRKSRC}/lib/${PVM_ARCH}/${__tmp__} ${DESTDIR}${PVM_DIR}/lib/${PVM_ARCH}/
|
2004-07-26 13:14:28 +02:00
|
|
|
.endfor
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/${PVM_ARCH}/pvmd3 \
|
2008-06-12 04:14:13 +02:00
|
|
|
${DESTDIR}${PVM_DIR}/lib/${PVM_ARCH}
|
|
|
|
${LIBTOOL} --mode=finish ${DESTDIR}${PVM_DIR}/lib/${PVM_ARCH}
|
2004-07-26 13:14:28 +02:00
|
|
|
for f in `${LS} -1 ${WRKSRC}/lib`; do \
|
|
|
|
if [ -f ${WRKSRC}/lib/$$f ]; then \
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/$$f ${DESTDIR}${PVM_DIR}/lib; \
|
2004-07-26 13:14:28 +02:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
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 \
|
2008-06-12 04:14:13 +02:00
|
|
|
${DESTDIR}${PVM_DIR}/bin/${PVM_ARCH}/ ; done
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${PVM_ARCH}.def ${DESTDIR}${PVM_DIR}/conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${PVM_ARCH}.m4 ${DESTDIR}${PVM_DIR}/conf
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${DESTDIR}${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.f ${DESTDIR}${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Readme ${DESTDIR}${PVM_DIR}/examples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Makefile.aimk ${DESTDIR}${PVM_DIR}/examples
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/*.c ${DESTDIR}${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/*.f ${DESTDIR}${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Readme ${DESTDIR}${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Makefile.aimk ${DESTDIR}${PVM_DIR}/gexamples
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gexamples/Makefile ${DESTDIR}${PVM_DIR}/gexamples
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${PVM_DIR}/include
|
|
|
|
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man3/* ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
|
|
|
|
${RM} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/PVM.1
|
|
|
|
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/pvm_intro.1 ${DESTDIR}${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"
|