2002-06-26 19:20:21 +02:00
|
|
|
# New ports collection makefile for: distcc
|
|
|
|
# Date created: 25 June 2002
|
|
|
|
# Whom: Frerich Raabe <frerich.raabe@gmx.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= distcc
|
2005-01-12 05:31:32 +01:00
|
|
|
PORTVERSION= 2.18.3
|
2004-08-18 09:41:13 +02:00
|
|
|
CATEGORIES= devel ipv6
|
2002-07-15 04:42:07 +02:00
|
|
|
MASTER_SITES= http://distcc.samba.org/ftp/distcc/
|
2002-06-26 19:20:21 +02:00
|
|
|
|
2004-03-31 10:23:22 +02:00
|
|
|
MAINTAINER= dom@helenmarks.co.uk
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Distribute compilation of C(++) code acrosss machines on a network
|
2002-06-26 19:20:21 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
|
|
|
|
2004-07-28 20:32:05 +02:00
|
|
|
USE_RC_SUBR= yes
|
2003-01-18 18:06:23 +01:00
|
|
|
USE_BZIP2= yes
|
2002-07-01 01:50:05 +02:00
|
|
|
USE_GMAKE= yes
|
2002-06-26 19:20:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-02-04 07:55:43 +01:00
|
|
|
WANT_GNOME= yes
|
2003-02-28 14:21:30 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
2004-07-28 20:32:05 +02:00
|
|
|
DISTCCD_PIDFILE=/var/run/distccd.pid
|
2002-06-26 19:20:21 +02:00
|
|
|
|
2004-02-07 17:46:44 +01:00
|
|
|
OPTIONS= GNOME "Build GUI monitor based on GNOME" Off \
|
2004-08-18 09:41:13 +02:00
|
|
|
GTK "Build GUI monitor based on GTK" Off \
|
|
|
|
IPV6 "Enable IPV6 (not available on 4.X)" Off
|
2004-02-07 17:46:44 +01:00
|
|
|
|
2003-06-17 23:29:45 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-18 02:16:31 +02:00
|
|
|
.if defined(WITH_GNOME)
|
2003-06-17 23:29:45 +02:00
|
|
|
USE_GNOME= libgnomeui
|
2004-02-07 17:46:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gnome
|
2003-09-27 17:56:26 +02:00
|
|
|
PKGNAMESUFFIX= -gnome
|
2003-06-17 23:29:45 +02:00
|
|
|
PLIST_SUB+= WITH_GNOME=""
|
2003-10-08 16:28:34 +02:00
|
|
|
.elif defined(WITH_GTK)
|
|
|
|
USE_GNOME= gtk20
|
2004-02-07 17:46:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gtk
|
2003-10-08 16:28:34 +02:00
|
|
|
PKGNAMESUFFIX= -gtk
|
|
|
|
PLIST_SUB+= WITH_GNOME=""
|
2003-06-17 23:29:45 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_GNOME="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-08-18 09:41:13 +02:00
|
|
|
.if ( ${OSVERSION} >= 500000 ) && defined(WITH_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --enable-rfc2553
|
|
|
|
.endif
|
|
|
|
|
2003-12-19 12:53:22 +01:00
|
|
|
MAN1= distcc.1 distccd.1
|
|
|
|
DOC_FILES= AUTHORS INSTALL NEWS README \
|
|
|
|
doc/protocol-1.txt doc/status-1.txt \
|
|
|
|
doc/protocol-2.txt doc/reporting-bugs.txt
|
2002-06-26 19:20:21 +02:00
|
|
|
|
2003-08-10 05:49:48 +02:00
|
|
|
pre-install:
|
2004-07-28 20:32:05 +02:00
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%RC_SUBR%%|${RC_SUBR}|; \
|
|
|
|
s|%%DISTCCD_PIDFILE%%|${DISTCCD_PIDFILE}|' \
|
|
|
|
${FILESDIR}/distccd.sh.sample >${WRKDIR}/distccd.sh
|
2003-08-10 05:49:48 +02:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" \
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2002-06-26 19:20:21 +02:00
|
|
|
do-install:
|
2003-01-18 18:06:23 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distcc ${PREFIX}/bin
|
2003-06-12 17:45:06 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccmon-text ${PREFIX}/bin
|
2003-10-18 02:16:31 +02:00
|
|
|
.if defined(WITH_GNOME) || defined(WITH_GTK)
|
2003-06-17 23:29:45 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccmon-gnome ${PREFIX}/bin
|
|
|
|
.endif
|
2003-01-18 18:06:23 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/distccd ${PREFIX}/sbin
|
2004-07-28 20:32:05 +02:00
|
|
|
@${INSTALL_SCRIPT} -m 751 ${WRKDIR}/distccd.sh \
|
|
|
|
${PREFIX}/etc/rc.d/distccd.sh
|
2002-06-26 19:20:21 +02:00
|
|
|
|
2003-08-10 05:49:48 +02:00
|
|
|
post-install: install-doc install-man
|
2004-07-28 20:32:05 +02:00
|
|
|
@${TOUCH} ${DISTCCD_PIDFILE}
|
|
|
|
@${CHOWN} distcc:distcc ${DISTCCD_PIDFILE}
|
2002-06-26 19:20:21 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2002-07-01 01:50:05 +02:00
|
|
|
install-doc:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-12-19 12:53:22 +01:00
|
|
|
.for FILE in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2002-08-10 22:54:31 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2002-07-01 01:50:05 +02:00
|
|
|
install-man:
|
|
|
|
.for file in ${MAN1}
|
2003-02-28 14:21:30 +01:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/${file} ${MANPREFIX}/man/man1
|
2002-07-01 01:50:05 +02:00
|
|
|
.endfor
|
|
|
|
|
2003-06-17 23:29:45 +02:00
|
|
|
.include <bsd.port.post.mk>
|