freebsd-ports/databases/rrdtool/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

92 lines
2.6 KiB
Makefile

# Created by: Dmitry Sivachenko <dima@Chg.RU>
# $FreeBSD$
PORTNAME= rrdtool
PORTVERSION= 1.6.0
PORTREVISION= 1
CATEGORIES= databases graphics
MASTER_SITES= http://oss.oetiker.ch/rrdtool/pub/
MAINTAINER= zeising@FreeBSD.org
COMMENT= Round Robin Database Tools
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
CONFLICTS= rrdtool12-*
CONFIGURE_ARGS= --disable-tcl
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
USE_RC_SUBR= rrdcached
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USES= gmake libtool pathfix pkgconfig shebangfix
SHEBANG_FILES= examples/rrdcached/rrdcached-size.pl
USE_GNOME= glib20 libxml2
INSTALL_TARGET= install-strip
PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl perftest.pl \
piped-demo.pl shared-demo.pl stripes.pl
OPTIONS_DEFINE= DEJAVU GRAPH MMAP NLS PERL PYTHON \
RUBY EXAMPLES DOCS
OPTIONS_DEFAULT=DEJAVU GRAPH MMAP PERL
OPTIONS_SUB= yes
GRAPH_DESC= Enable the rrdtool graph command (needs cairo)
DEJAVU_DESC= Use DejaVu fonts (requires X11)
MMAP_DESC= Use mmap in rrd_update
PERL_DESC= Build PERL module
PYTHON_DESC= Build PYTHON bindings
RUBY_DESC= Build RUBY bindings
DEJAVU_RUN_DEPENDS= dejavu>0:x11-fonts/dejavu
GRAPH_CONFIGURE_OFF= --disable-rrdcgi --disable-rrd_graph
GRAPH_LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png
GRAPH_USE= GNOME=cairo,pango
GRAPH_USES= gnome
MMAP_CONFIGURE_ENABLE= mmap
NLS_CONFIGURE_ENABLE= nls
NLS_USE= GNOME=intltool
NLS_USES= gettext
PERL_CONFIGURE_OFF= --disable-perl
PERL_CONFIGURE_ON= --enable-perl --enable-perl-site-install
PERL_USES= perl5
PYTHON_CONFIGURE_ENABLE=python
PYTHON_USES= python
RUBY_CONFIGURE_ENABLE= ruby
RUBY_USE= RUBY=yes
post-extract:
@${REINPLACE_CMD} -E 's|(^rrdcached_LDADD = librrd_th.la)|\1 $$\(ALL_LIBS\)|' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -E 's|(^rrdtool_LDADD = librrd.la)|\1 $$\(ALL_LIBS\)|' \
${WRKSRC}/src/Makefile.in
post-extract-DOCS-off:
@${REINPLACE_CMD} -e '/^SUBDIRS = /s| doc | |' \
${WRKSRC}/Makefile.in
post-extract-EXAMPLES-off:
@${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
${WRKSRC}/Makefile.in
post-install-EXAMPLES-on:
.if !defined(BATCH)
@${ECHO_MSG} ""
@${ECHO_MSG} "############################################################################"
@${ECHO_MSG} "# See ${EXAMPLESDIR} for some demonstration code #"
@${ECHO_MSG} "############################################################################"
.endif
post-install-PERL-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/RRDs/RRDs.so
post-install-PYTHON-on:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/rrdtool.so
post-install-RUBY-on:
${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/RRD.so
.include <bsd.port.mk>