ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/devel/distcc/Makefile
Revision: 8023
Committed: Sat Jun 6 02:17:19 2009 UTC (14 years, 11 months ago) by laffer1
File size: 2781 byte(s)
Log Message:
Add distcc 2.x to mports.  distcc is a frontend for gcc that allows one to run daemons on other hosts to "help" with compiling source code.  It has a gnome based gui for monitoring activity.

This might be useful for magus runs if we had a cross compiler setup for sparc64 possibly to "help".  Currently magus runs take over two weeks on that platform and we don't do it much as a result.

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= distcc
4 PORTVERSION= 2.18.3
5 CATEGORIES= devel
6 MASTER_SITES= http://distcc.samba.org/ftp/distcc/
7 #PATCH_SITES= http://0pointer.de/public/
8 PATCH_SITES= LOCAL/ahze
9
10 MAINTAINER= ports@MidnightBSD.org
11 COMMENT= Distribute compilation of C(++) code acrosss machines on a network
12 LICENSE= gpl2
13
14 LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
15
16 USE_BZIP2= yes
17 USE_GMAKE= yes
18 GNU_CONFIGURE= yes
19 CONFIGURE_ARGS= --enable-rfc2553
20 WANT_GNOME= yes
21 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
22 PTHREAD_LIBS="${PTHREAD_LIBS}"
23 DISTCCD_PIDFILE=/var/run/distccd.pid
24 USE_RC_SUBR= distccd.sh
25 SUB_LIST= DISTCCD_PIDFILE=${DISTCCD_PIDFILE}
26
27 OPTIONS= AVAHI "Enable Avahi Zeroconf/mDNS/Bonjour support" Off \
28 GNOME "Build GUI monitor based on GNOME" Off \
29 GTK "Build GUI monitor based on GTK" Off \
30 COMPILER_LINKS "Create symlinks to distcc" On
31
32 .include <bsd.port.pre.mk>
33
34 .if defined(WITH_AVAHI)
35 PATCHFILES+= distcc-avahi-080101.patch
36 LIB_DEPENDS+= avahi-glib.1:${PORTSDIR}/net/avahi-app
37 PATCH_DIST_STRIP= -p1
38 USE_AUTOTOOLS+= autoconf:262
39 AUTOCONF_ARGS+= -I${LOCALBASE}/share/libtool/libltdl/
40 CFLAGS+= -DHAVE_AVAHI
41 .endif
42
43 .if defined(WITH_COMPILER_LINKS)
44 CCLINKDIR?= libexec/distcc
45 PLIST_DIRS= ${CCLINKDIR}
46 GNU_COMPILERS= 295 32 33 34 40 41 42 43
47 DISTCC_COMPILERS= cc c++ gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|}
48 .if ${ARCH} == "i386"
49 DISTCC_COMPILERS+= icc icpc
50 .endif
51 .if defined(EXTRA_COMPILERS)
52 DISTCC_COMPILERS+= ${EXTRA_COMPILERS}
53 .endif
54 PLIST_FILES+= ${DISTCC_COMPILERS:S|^|${CCLINKDIR}/|}
55 .endif
56
57 .if defined(WITH_GNOME)
58 USE_GNOME= libgnomeui
59 CONFIGURE_ARGS+= --with-gnome
60 PKGNAMESUFFIX= -gnome
61 PLIST_SUB+= WITH_GNOME=""
62 .elif defined(WITH_GTK)
63 USE_GNOME= gtk20
64 CONFIGURE_ARGS+= --with-gtk
65 PKGNAMESUFFIX= -gtk
66 PLIST_SUB+= WITH_GNOME=""
67 .else
68 PLIST_SUB+= WITH_GNOME="@comment "
69 .endif
70
71 MAN1= distcc.1 distccd.1
72 DOC_FILES= AUTHORS INSTALL NEWS README \
73 doc/protocol-1.txt doc/status-1.txt \
74 doc/protocol-2.txt doc/reporting-bugs.txt
75
76 do-install:
77 @${INSTALL_PROGRAM} ${WRKSRC}/distcc ${PREFIX}/bin
78 @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-text ${PREFIX}/bin
79 .if defined(WITH_GNOME) || defined(WITH_GTK)
80 @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-gnome ${PREFIX}/bin
81 .endif
82 @${INSTALL_PROGRAM} ${WRKSRC}/distccd ${PREFIX}/sbin
83
84 post-install:
85 @${TOUCH} ${DISTCCD_PIDFILE}
86 .if defined(WITH_COMPILER_LINKS)
87 @${MKDIR} ${PREFIX}/${CCLINKDIR}
88 .for link in ${DISTCC_COMPILERS}
89 ${LN} -sf ${PREFIX}/bin/distcc ${PREFIX}/${CCLINKDIR}/${link}
90 .endfor
91 .endif
92 .if !defined(NOPORTDOCS)
93 @${MKDIR} ${DOCSDIR}
94 .for FILE in ${DOC_FILES}
95 @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
96 .endfor
97 .endif
98 .for f in ${MAN1}
99 @${INSTALL_MAN} ${WRKSRC}/man/${f} ${MANPREFIX}/man/man1
100 .endfor
101
102 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.1