blob: 35337d25677ceaf7a81efbf43723ebf30e94afa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# New ports collection makefile for: xpvm
# Date created: 02 April 2004
# Whom: Rong-En Fan <rafan@infor.org>
#
# $FreeBSD$
#
PORTNAME= xpvm
PORTVERSION= 1.2.5
CATEGORIES= net parallel
MASTER_SITES= http://www.netlib.org/pvm3/xpvm/
DISTNAME= XPVM.src.${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A Graphical Console and Monitor for PVM
BUILD_DEPENDS= ${LOCALBASE}/lib/libpvm3.a:${PORTSDIR}/net/pvm
RUN_DEPENDS= ${BUILD_DEPENDS}
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
WRKSRC= ${WRKDIR}/xpvm
PVM_ROOT?= ${LOCALBASE}/lib/pvm
MAKE_ENV+= PVM_ROOT=${PVM_ROOT} XPVM_ROOT=${WRKSRC}
PKGMESSAGE= ${WRKDIR}/pkg-message
ALL_TARGET= default
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "If your PVM is not installed in the default directory,"
@${ECHO_MSG} "please define PVM_ROOT=/path/to/your/pvm."
@${ECHO_MSG}
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/malloc.h/stdlib.h/' \
src/xpvm.h tracer/trclib.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/FREEBSD/xpvm ${PREFIX}/bin
${MKDIR} -m 755 ${DATADIR}
for i in src/*.tcl ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${DATADIR}; \
done
${MKDIR} -m 755 ${DATADIR}/src/xbm
for i in src/xbm/* ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${DATADIR}/src/xbm; \
done
${MKDIR} -m 755 ${DATADIR}/src/help
for i in src/help/* ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${DATADIR}/src/help; \
done
post-install:
@${SED} -e 's,%%DATADIR%%,${DATADIR},' \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
<${.CURDIR}/pkg-message >${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|