Changeset View
Changeset View
Standalone View
Standalone View
devel/distcc/Makefile
# Created by: Frerich Raabe <frerich.raabe@gmx.de> | # Created by: Frerich Raabe <frerich.raabe@gmx.de> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# $MCom: ports/devel/distcc/Makefile,v 1.3 2007/10/21 02:46:13 ahze Exp $ | # $MCom: ports/devel/distcc/Makefile,v 1.3 2007/10/21 02:46:13 ahze Exp $ | ||||
PORTNAME= distcc | PORTNAME= distcc | ||||
PORTVERSION= 3.3.2 | PORTVERSION= 3.3.2 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= ports@FreeBSD.org | ||||
COMMENT= Distribute compilation of C(++) code acrosss machines on a network | COMMENT= Distribute compilation of C(++) code across machines on a network | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libiberty.a:devel/gnulibiberty | |||||
LIB_DEPENDS= libpopt.so:devel/popt | LIB_DEPENDS= libpopt.so:devel/popt | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USES= autoreconf alias gmake libtool pkgconfig | USES= autoreconf alias gmake libtool pkgconfig | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= distcc | GH_ACCOUNT= distcc | ||||
0mp: This is unnecessary. That's the default anyway. | |||||
Done Inline ActionsDone fernape: Done | |||||
GH_TAGNAME= 9a09372 | GH_TAGNAME= 8600f08 | ||||
Not Done Inline ActionsPlease, let's just use DISTVERSIONPREFIX and DISTVERSION instead. 0mp: Please, let's just use DISTVERSIONPREFIX and DISTVERSION instead. | |||||
Done Inline ActionsDone fernape: Done | |||||
GROUPS= distcc | GROUPS= distcc | ||||
USERS= distcc | USERS= distcc | ||||
CCLINKDIR?= libexec/distcc | CCLINKDIR?= libexec/distcc | ||||
CONFIGURE_ARGS= --disable-Werror CC=${CC} PTHREAD_CC=${CC} | CONFIGURE_ARGS= --disable-Werror CC=${CC} PTHREAD_CC=${CC} | ||||
CONFIGURE_ENV= PYTHON="${NONEXISTENT}" | |||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
Not Done Inline ActionsCC should probably be quoted 0mp: CC should probably be quoted | |||||
Done Inline ActionsDone fernape: Done | |||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
SUB_LIST= DISTCCD_PIDFILE=/var/run/distccd.pid | SUB_LIST= DISTCCD_PIDFILE=/var/run/distccd.pid | ||||
USE_RC_SUBR= distccd | USE_RC_SUBR= distccd | ||||
BIN_FILES= distcc distccmon-text lsdistcc | BIN_FILES= distcc distccmon-text lsdistcc | ||||
DOC_FILES= protocol-1.txt status-1.txt \ | DOC_FILES= protocol-1.txt status-1.txt \ | ||||
protocol-2.txt reporting-bugs.txt | protocol-2.txt reporting-bugs.txt | ||||
MAN_FILES= distcc.1 distccd.1 distccmon-text.1 | MAN_FILES= distcc.1 distccd.1 distccmon-text.1 | ||||
README_FILES= AUTHORS INSTALL NEWS README | README_FILES= AUTHORS INSTALL NEWS README | ||||
SBIN_FILES= distccd | SBIN_FILES= distccd | ||||
PLIST_FILES= ${BIN_FILES:S|^|bin/|} | PLIST_FILES= ${BIN_FILES:S|^|bin/|} | ||||
PLIST_FILES+= ${DISTCC_COMPILERS:S|^|${CCLINKDIR}/|} | PLIST_FILES+= ${DISTCC_COMPILERS:S|^|${CCLINKDIR}/|} | ||||
PLIST_FILES+= ${MAN_FILES:S|^|man/man1/|:S|$|.gz|} | PLIST_FILES+= ${MAN_FILES:S|^|man/man1/|:S|$|.gz|} | ||||
PLIST_FILES+= ${SBIN_FILES:S|^|sbin/|} | PLIST_FILES+= ${SBIN_FILES:S|^|sbin/|} | ||||
OPTIONS_DEFINE= AVAHI CLANGLINK DOCS IPV6 LLVMLINK | OPTIONS_DEFINE= AVAHI CLANGLINK DOCS IPV6 LLVMLINK PUMP | ||||
OPTIONS_RADIO= GUI | OPTIONS_RADIO= GUI | ||||
OPTIONS_RADIO_GUI= GNOME GTK | OPTIONS_RADIO_GUI= GNOME GTK | ||||
CLANGLINK_DESC= Create clang compiler links if clang is installed | CLANGLINK_DESC= Create clang compiler links if clang is installed | ||||
GUI_DESC= Build GUI for distcc monitor | GUI_DESC= Build GUI for distcc monitor | ||||
GNOME_DESC= Monitor based on GNOME | GNOME_DESC= Monitor based on GNOME | ||||
GTK_DESC= Monitor based on GTK | GTK_DESC= Monitor based on GTK | ||||
LLVMLINK_DESC= Create llvm compiler links if llvm is installed | LLVMLINK_DESC= Create llvm compiler links if llvm is installed | ||||
PUMP_DESC= Pump mode | |||||
matUnsubmitted Done Inline ActionsPlease, add a description that actually describes what this does. mat: Please, add a description that actually describes what this does. | |||||
ngieAuthorUnsubmitted Done Inline ActionsDone! ngie: Done! | |||||
AVAHI_CONFIGURE_WITH= avahi | AVAHI_CONFIGURE_WITH= avahi | ||||
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app | AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app | ||||
DOCS_PLIST_FILES= ${README_FILES:S|^|${DOCSDIR_REL}/|} | DOCS_PLIST_FILES= ${README_FILES:S|^|${DOCSDIR_REL}/|} | ||||
DOCS_PLIST_FILES+= ${DOC_FILES:S|^|${DOCSDIR_REL}/|} | DOCS_PLIST_FILES+= ${DOC_FILES:S|^|${DOCSDIR_REL}/|} | ||||
GNOME_CONFIGURE_WITH= gnome | GNOME_CONFIGURE_WITH= gnome | ||||
GNOME_USE= GNOME=gtk20,libgnome,libgnomeui,pango | GNOME_USE= GNOME=gtk20,libgnome,libgnomeui,pango | ||||
GTK_CONFIGURE_WITH= gtk | GTK_CONFIGURE_WITH= gtk | ||||
GTK_USE= GNOME=gtk20 | GTK_USE= GNOME=gtk20 | ||||
IPV6_CONFIGURE_ENABLE= rfc2553 | IPV6_CONFIGURE_ENABLE= rfc2553 | ||||
PUMP_CONFIGURE_OFF= --disable-pump-mode | |||||
matUnsubmitted Done Inline ActionsUnless --enable-pump-mode is unsupported, this should be: PUMP_CONFIGURE_ENABLE= pump-moe mat: Unless `--enable-pump-mode` is unsupported, this should be:
```
PUMP_CONFIGURE_ENABLE= pump… | |||||
ngieAuthorUnsubmitted Done Inline ActionsFixed! ngie: Fixed! | |||||
DISTCC_COMPILERS= CC c++ cc | DISTCC_COMPILERS= CC c++ cc | ||||
Done Inline ActionsIf this isn't being installed anymore, it PUMP_USES= shebangfix and SHEBANG_FILES can be dropped. ngie: If this isn't being installed anymore, it `PUMP_USES= shebangfix` and `SHEBANG_FILES` can be… | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MCLANGLINK} | .if ${PORT_OPTIONS:MCLANGLINK} | ||||
CLANG_COMPILERS= -devel 31 32 33 34 35 36 37 38 39 | CLANG_COMPILERS= -devel 31 32 33 34 35 36 37 38 39 | ||||
DISTCC_COMPILERS+= clang++ clang | DISTCC_COMPILERS+= clang++ clang | ||||
DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang++|} | DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang++|} | ||||
DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang|} | DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang|} | ||||
Show All 22 Lines | |||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MGTK} | .if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MGTK} | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|PKGDATADIR "|"${PREFIX}/share/pixmaps|' \ | ${REINPLACE_CMD} -e 's|PKGDATADIR "|"${PREFIX}/share/pixmaps|' \ | ||||
${WRKSRC}/src/mon-gnome.c | ${WRKSRC}/src/mon-gnome.c | ||||
.endif | .endif | ||||
do-install: | .if ${PORT_OPTIONS:MPUMP} | ||||
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${BIN_FILES} \ | BIN_FILES+= pump | ||||
${STAGEDIR}${PREFIX}/bin | MAN_FILES+= include_server.1 pump.1 | ||||
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${SBIN_FILES} \ | INCLUDE_SERVER_FILES+= \ | ||||
${STAGEDIR}${PREFIX}/sbin | include_server-${PORTVERSION}-py${PYTHON_VER}.egg-info \ | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/${CCLINKDIR} | include_server/distcc_pump_c_extensions.so \ | ||||
include_server/include_server.py \ | |||||
include_server/include_server_test.py \ | |||||
include_server/include_analyzer_test.py \ | |||||
include_server/include_analyzer_memoizing_node_test.py \ | |||||
include_server/include_analyzer_memoizing_node.py \ | |||||
include_server/include_analyzer.py | |||||
PLIST_FILES+= ${INCLUDE_SERVER_FILES:S|^|lib/python${PYTHON_VER}/site-packages/|} | |||||
.endif | |||||
post-install: | |||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${CCLINKDIR} | |||||
.for link in ${DISTCC_COMPILERS} | .for link in ${DISTCC_COMPILERS} | ||||
${LN} -sf ${PREFIX}/bin/distcc \ | @${LN} ${STAGEDIR}${PREFIX}/bin/distcc \ | ||||
${STAGEDIR}${PREFIX}/${CCLINKDIR}/${link} | ${STAGEDIR}${PREFIX}/${CCLINKDIR}/${link} | ||||
.endfor | .endfor | ||||
.if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MGTK} | |||||
cd ${WRKSRC}/gnome && ${INSTALL_DATA} distccmon-gnome.desktop \ | |||||
${STAGEDIR}${DESKTOPDIR} | |||||
cd ${WRKSRC}/gnome && ${INSTALL_DATA} distccmon-gnome-icon.png \ | |||||
${STAGEDIR}${PREFIX}/share/pixmaps | |||||
.endif | |||||
cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN_FILES} \ | |||||
${STAGEDIR}${MANPREFIX}/man/man1 | |||||
do-install-DOCS-on: | .if ${PORT_OPTIONS:MPUMP} | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | USES+= python:3.1+ shebangfix | ||||
cd ${WRKSRC} && ${INSTALL_DATA} ${README_FILES} \ | .endif | ||||
matUnsubmitted Done Inline ActionsPUMP_USES= python... mat: ```
PUMP_USES= python...
``` | |||||
ngieAuthorUnsubmitted Done Inline ActionsAha. Good catch! I'll do that :). ngie: Aha. Good catch! I'll do that :). | |||||
${STAGEDIR}${DOCSDIR} | |||||
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOC_FILES} \ | |||||
${STAGEDIR}${DOCSDIR} | |||||
Not Done Inline ActionsThis won't work if you have more than one file in PUMP_PLIST_FILES, will it? 0mp: This won't work if you have more than one file in PUMP_PLIST_FILES, will it? | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Done Inline ActionsWas this intentionally left in? ngie: Was this intentionally left in? | |||||
Not Done Inline ActionsThis could be replaced with TEST_TARGET= check. (just so you know for the future, it's always a good idea to have ${SETENV} ${TEST_ENV} here as well.) 0mp: This could be replaced with `TEST_TARGET= check`. (just so you know for the future, it's always… | |||||
Done Inline ActionsDone fernape: Done | |||||
Not Done Inline ActionsCould we use PUMP_PLIST_FILES here? 0mp: Could we use PUMP_PLIST_FILES here? |
This is unnecessary. That's the default anyway.