aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pmake/Makefile
blob: bbab78a311a6e1b8c44196e4cf09bf878e87df92 (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
61
62
63
# New ports collection makefile for:    pmake
# Date created:     12 November 1998
# Whom:         steve
#
# $FreeBSD$
#

PORTNAME=   pmake
PORTVERSION=    2.1.37
CATEGORIES= devel parallel
MASTER_SITES=   http://www.icsi.berkeley.edu/ftp/global/pub/speech/stolcke/software/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= steve
EXTRACT_SUFX=   .tar.Z

MAINTAINER= steve@freebsd.org
COMMENT=    The parallel make(1) program from the Sprite project

RESTRICTED= "Non-commercial use only"

WRKSRC=     ${WRKDIR}/pmake
MAKEFILE=   makefile
ALL_TARGET= pmake
PMAKE_ENV=  ${MAKE_ENV} MAKE=${PREFIX}/bin/pmake
MAN1=       pmake.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700000
IGNORE=     does not support ${OPSYS}-${OSREL} at this time
.endif

post-patch:
    @${REINPLACE_CMD} '/memmove/d' ${WRKSRC}/lib/include/sprite.h

#
# Define this if you want to build and install with the 'customs'
# server support and the pmake to match.  Note, you'll still get
# the plain pmake in ${PREFIX}/bin/pmake.nocustoms.
#
#WANT_CUSTOMS=  yes

do-install::
    @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} install)

.if defined(WANT_CUSTOMS)
PLIST=      ${PKGDIR}/pkg-plist.customs
MAN1+=      export.1 reginfo.1 rexport.1
MAN8=       cctrl.8 customs.8 importquota.8 logd.8

do-install::
    @(cd ${WRKSRC}; ${SETENV} ${PMAKE_ENV} ${PREFIX}/bin/pmake new; \
      ${SETENV} ${PMAKE_ENV} ${PREFIX}/bin/pmake install)
    @${ECHO} "Adding customs service to /etc/services..."
    @${ECHO_CMD} -e 'customs\t\t8231/tcp\t# pmake customs server'>>/etc/services
    @${ECHO_CMD} -e 'customs\t\t8231/udp\t# pmake customs server'>>/etc/services
.else
do-install::
    @(cd ${WRKSRC}/doc; ${SETENV} ${PMAKE_ENV} ${MAKE})
    ${INSTALL_MAN} ${WRKSRC}/doc/pmake.1 ${PREFIX}/man/man1
.endif

.include <bsd.port.post.mk>