freebsd-ports/devel/distcc/Makefile
Mario Sergio Fujikawa Ferreira 42c6a32a2e o Problem: "libstdc++-v3's configure script (and others) execute
commands such as .../xgcc -B.../ conftest.C -c -S. Assuming that
xgcc invokes the distcc client, this makes the distcc client write
the assembly output to conftest.o even though it should go into
conftest.s. The cause of this is that distcc currently does not
honour the fact that -S supersedes -c. Interestingly, if you add
"-o conftest.s" to the command line, it's the distcc server that
fails, claiming it couldn't find conftest.C."

o The attached patch fixes this behaviour. Courtesy of [1]

PR:		42019
Submitted by:	MAINTAINER,
		Alexandre Oliva <aoliva@redhat.com> [1]
2002-08-26 02:39:05 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: distcc
# Date created: 25 June 2002
# Whom: Frerich Raabe <frerich.raabe@gmx.de>
#
# $FreeBSD$
#
PORTNAME= distcc
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://distcc.samba.org/ftp/distcc/
MAINTAINER= frerich.raabe@gmx.de
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
PLIST_SUB+= DOCSDIR=${DOCSDIR:S,${PREFIX}/,,}
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
MAN1= distcc.1 distccd.1
DOC_FILES= AUTHORS COPYING COPYING.FDL NEWS OLDNEWS README \
linuxdoc/distcc.info.gz linuxdoc/distcc.pdf \
linuxdoc/distcc.ps.gz
HTML_DOC_FILES= distcc.html distcc-1.html distcc-2.html distcc-3.html \
distcc-4.html distcc-5.html distcc-6.html distcc-7.html
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/src/distcc ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/src/distccd ${PREFIX}/sbin
post-install: install-doc install-html-doc install-man
@${CAT} ${PKGMESSAGE}
install-doc:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
install-html-doc:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
.for file in ${HTML_DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/linuxdoc/html/${file} ${DOCSDIR}/html
.endfor
.endif
install-man:
.for file in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/man/${file} ${MANPREFIX}/man/man1
.endfor
.include <bsd.port.mk>