1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

devel/distcc: Clean up using portfmt

This commit is contained in:
Mateusz Piotrowski 2020-08-20 11:15:07 +00:00
parent ba6d57afc9
commit ada49eea97
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545528

View File

@ -17,13 +17,15 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/lib/libiberty.a:devel/gnulibiberty
LIB_DEPENDS= libpopt.so:devel/popt
USES= autoreconf alias gmake libtool localbase pkgconfig
USES= alias autoreconf gmake libtool localbase pkgconfig
USE_GITHUB= yes
USE_RC_SUBR= distccd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-Werror --sysconfdir=${ETCDIR} \
CC="${CC}" PTHREAD_CC="${CC}"
CONFIGURE_ARGS= --disable-Werror \
--sysconfdir=${ETCDIR} \
CC="${CC}" \
PTHREAD_CC="${CC}"
TEST_TARGET= check
@ -35,12 +37,12 @@ SUB_LIST= DISTCCD_PIDFILE=/var/run/distccd.pid
USERS= distcc
GROUPS= distcc
PLIST_FILES= ${_BIN_FILES:S|^|bin/|}
PLIST_FILES+= ${_DISTCC_COMPILERS:S|^|${CCLINKDIR}/|}
PLIST_FILES+= ${_MAN_FILES:S|^|man/man1/|:S|$|.gz|}
PLIST_FILES+= ${_SBIN_FILES:S|^|sbin/|}
PLIST_FILES+= ${_CONFIG_FILES:S|^|${ETCDIR}/${PORTNAME}/|}
PLIST_FILES+= etc/default/distcc
PLIST_FILES= ${_BIN_FILES:S|^|bin/|} \
${_CONFIG_FILES:S|^|${ETCDIR}/${PORTNAME}/|} \
${_DISTCC_COMPILERS:S|^|${CCLINKDIR}/|} \
${_MAN_FILES:S|^|man/man1/|:S|$|.gz|} \
${_SBIN_FILES:S|^|sbin/|} \
etc/default/distcc
OPTIONS_DEFINE= AVAHI CLANGLINK DOCS IPV6 LLVMLINK PUMP
OPTIONS_RADIO= GUI
@ -55,8 +57,8 @@ PUMP_DESC= Distribute compilation as well as preprocessing to distcc servers
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
AVAHI_CONFIGURE_WITH= avahi
DOCS_PLIST_FILES= ${_README_FILES:S|^|${DOCSDIR_REL}/|}
DOCS_PLIST_FILES+= ${_DOC_FILES:S|^|${DOCSDIR_REL}/|}
DOCS_PLIST_FILES+= ${_DOC_FILES:S|^|${DOCSDIR_REL}/|} \
${_README_FILES:S|^|${DOCSDIR_REL}/|}
GNOME_USES= gnome
GNOME_USE= GNOME=gtk20,libgnome,libgnomeui,pango
GNOME_CONFIGURE_WITH= gnome
@ -66,21 +68,20 @@ GTK_CONFIGURE_WITH= gtk
IPV6_CONFIGURE_ENABLE= rfc2553
PUMP_USES= python:3.1+
PUMP_CONFIGURE_ENABLE= pump-mode
PUMP_PLIST_FILES= \
${PYTHON_SITELIBDIR}/include_server-${PORTVERSION}-py${PYTHON_VER}.egg-info \
${PYTHON_SITELIBDIR}/include_server/distcc_pump_c_extensions.so \
${PYTHON_SITELIBDIR}/include_server/include_server.py \
${PYTHON_SITELIBDIR}/include_server/include_server_test.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_test.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_memoizing_node_test.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_memoizing_node.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer.py \
PUMP_PLIST_FILES= ${PYTHON_SITELIBDIR}/include_server-${PORTVERSION}-py${PYTHON_VER}.egg-info \
${PYTHON_SITELIBDIR}/include_server/basics.py \
${PYTHON_SITELIBDIR}/include_server/basics_test.py \
${PYTHON_SITELIBDIR}/include_server/c_extensions_test.py \
${PYTHON_SITELIBDIR}/include_server/cache_basics.py \
${PYTHON_SITELIBDIR}/include_server/compiler_defaults.py \
${PYTHON_SITELIBDIR}/include_server/compress_files.py \
${PYTHON_SITELIBDIR}/include_server/distcc_pump_c_extensions.so \
${PYTHON_SITELIBDIR}/include_server/include_analyzer.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_memoizing_node.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_memoizing_node_test.py \
${PYTHON_SITELIBDIR}/include_server/include_analyzer_test.py \
${PYTHON_SITELIBDIR}/include_server/include_server.py \
${PYTHON_SITELIBDIR}/include_server/include_server_test.py \
${PYTHON_SITELIBDIR}/include_server/macro_eval.py \
${PYTHON_SITELIBDIR}/include_server/macro_eval_test.py \
${PYTHON_SITELIBDIR}/include_server/mirror_path.py \
@ -101,10 +102,10 @@ _DISTCC_COMPILERS= CC c++ cc
_CONFIG_FILES= clients.allow commands.allow.sh hosts
_BIN_FILES= distcc distccmon-text lsdistcc
_DOC_FILES= protocol-1.txt protocol-2.txt protocol-3.txt \
protocol-3-impl.txt protocol-gssapi.txt \
reporting-bugs.txt status-1.txt survey.txt
_MAN_FILES= distcc.1 distccd.1 distccmon-text.1 include_server.1 \
lsdistcc.1 pump.1
protocol-3-impl.txt protocol-gssapi.txt reporting-bugs.txt \
status-1.txt survey.txt
_MAN_FILES= distcc.1 distccd.1 distccmon-text.1 include_server.1 lsdistcc.1 \
pump.1
_README_FILES= AUTHORS COPYING INSTALL NEWS README README.pump TODO
_SBIN_FILES= distccd
@ -112,14 +113,12 @@ _SBIN_FILES= distccd
.if ${PORT_OPTIONS:MCLANGLINK}
CLANG_COMPILERS= -devel 31 32 33 34 35 36 37 38 39
_DISTCC_COMPILERS+= clang++ clang
_DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang++|}
_DISTCC_COMPILERS+= ${CLANG_COMPILERS:S|^|clang|}
_DISTCC_COMPILERS+= clang++ clang ${CLANG_COMPILERS:S|^|clang++|} \
${CLANG_COMPILERS:S|^|clang|}
.endif
GNU_COMPILERS= 34 42 43 44 45 46 47 48 49 5
_DISTCC_COMPILERS+= gcc g++
_DISTCC_COMPILERS+= ${GNU_COMPILERS:S|^|g++|}
_DISTCC_COMPILERS+= ${GNU_COMPILERS:S|^|gcc|}
_DISTCC_COMPILERS+= gcc g++ ${GNU_COMPILERS:S|^|g++|} \
${GNU_COMPILERS:S|^|gcc|}
.if ${ARCH} == "i386"
_DISTCC_COMPILERS+= icc icpc
.endif
@ -135,8 +134,8 @@ PKGNAMESUFFIX= -gnome
PKGNAMESUFFIX= -gtk
.endif
_BIN_FILES+= distccmon-gnome
PLIST_FILES+= ${DESKTOPDIR}/distccmon-gnome.desktop
PLIST_FILES+= share/pixmaps/distccmon-gnome-icon.png
PLIST_FILES+= ${DESKTOPDIR}/distccmon-gnome.desktop \
share/pixmaps/distccmon-gnome-icon.png
.endif
.if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MGTK}