freebsd-ports/sysutils/watchman/Makefile
Dmitry Marakasov 30a00f2227 Most commonly used build systems support silent builds, when they
hide actual commands executed and only show short summary line (like
"CC foo.c"). CMake and ninja enable this by default, some autotools
using ports do as well. This is unacceptable because we need complete
build logs at any time, so we now switch to verbose build logs
unconditionally. Note that this change deliberately affects ALL
builds and not only package builds on cluster, because we need to
be sure that user experiencing failure can always provide informative
build log regardless of settings and without rerunning the build.

Change summary:

- Always do verbose builds for cmake, ninja and GNU configure (the
  latter includes check if --disable-silent-rules is actually supported
  by the configure script; there are isolated cases when it's not true)
- Remove CMAKE_VERBOSE, NINJA_VERBOSE and
  CONFIGURE_ARGS=--disable-silent-rules from all ports which set them
  for this is no longer needed
- Revert hacks for --disable-silent-rules support priorly committed
  to biology/ncbi-blast+ and net-p2p/mldonkey - no longer needed as well

Submitted by:	amdmi3
Reviewed by:	mat
Exp-run by:	antoine
Approved by:	portmgr (mat, antoine)
Differential Revision:	D7534
2016-09-09 19:42:46 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Jin-Sih, Lin <linpct@gmail.com>
# $FreeBSD$
PORTNAME= watchman
PORTVERSION= 4.5.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= linpct@gmail.com
COMMENT= File alteration monitoring service
LICENSE= APACHE20
USE_GITHUB= yes
GH_ACCOUNT= facebook
USES= autoreconf gmake pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_prog_HAVE_ARC=false ac_cv_header_sys_inotify_h=no
CONFIGURE_ARGS= --without-python --without-ruby # in separate ports
TEST_TARGET= check
PLIST_FILES= bin/${PORTNAME} \
"@dir(,,2777) /var/run/${PORTNAME}"
PORTDOCS= README.markdown
OPTIONS_DEFINE= BACKTRACE PCRE
OPTIONS_DEFAULT=BACKTRACE PCRE
BACKTRACE_DESC= Stack backtrace support via (lib)execinfo
BACKTRACE_USES= execinfo
BACKTRACE_CPPFLAGS= ${EXECINFO_CPPFLAGS}
BACKTRACE_LDFLAGS= ${EXECINFO_LDFLAGS}
BACKTRACE_LIBS= -lexecinfo
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_CONFIGURE_WITH= pcre
CPPFLAGS+= -Wno-error
post-patch:
# https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
@${REINPLACE_CMD} -e 's,xprefix/var,localstatedir,' \
-e '\,/etc, { s//$$sysconfdir/; /=/s/^/eval /; }' \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e '/^docdir = /d' \
-e '/not-empty/d; /chmod g+s/d;' \
${WRKSRC}/Makefile.am
.include <bsd.port.mk>