freebsd-ports/sysutils/fusefs-simple-mtpfs/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

48 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= simple-mtpfs
DISTVERSION= 0.2-24
DISTVERSIONSUFFIX= -ga7ab64c
CATEGORIES= sysutils
PKGNAMEPREFIX= fusefs-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Simple MTP fuse filesystem driver
LICENSE= GPLv2+
LIB_DEPENDS= libmtp.so:multimedia/libmtp
USE_GITHUB= yes
GH_ACCOUNT= phatina
USES= autoreconf compiler:c++11-lib fuse localbase pkgconfig
GNU_CONFIGURE= yes
MAKEFILE= makefile
INSTALL_TARGET= install-strip
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
PORTDOCS= AUTHORS NEWS README.md
OPTIONS_DEFINE= DOCS
.if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc)
CONFIGURE_ENV+= LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb"
.endif
# XXX move to PREFIX when bug 193596 lands
.if exists(/etc/autofs)
PLIST_FILES+= /etc/autofs/special_${PORTNAME}
SUB_FILES+= special_${PORTNAME}
.endif
post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.if exists(/etc/autofs)
@${MKDIR} ${STAGEDIR}/etc/autofs
${INSTALL_SCRIPT} ${WRKDIR}/special_${PORTNAME} \
${STAGEDIR}/etc/autofs
.endif
.include <bsd.port.mk>