freebsd-ports/sysutils/smartmontools/Makefile
Mark Linimon 13fb0b92a2 Fix port builds for architectures which remain on gcc as the default compiler.
This will primarily help powerpc64.

For archs where clang is the default compiler, these changes will have no
effect, as the base compiler already has these capabilities (primarily, but
not exclusively, c++-11).

Tested for no-harm on amd64.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2018-06-11 01:44:15 +00:00

41 lines
886 B
Makefile

# Created by: Eduard Martinescu
# $FreeBSD$
PORTNAME= smartmontools
PORTVERSION= 6.6
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= samm@os2.kiev.ua
COMMENT= S.M.A.R.T. disk monitoring tools
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= smartmontools-devel-[0-9]*
OPTIONS_DEFINE= DOCS
USES= alias compiler:c++11-lib gmake shebangfix
SHEBANG_FILES= examplescripts/Example5
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-sample \
--with-nvme-devicescan=yes \
--with-initscriptdir=${PREFIX}/etc/rc.d
SUB_FILES= pkg-message smart
USE_RC_SUBR= smartd
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA| |' ${WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/smart \
${STAGEDIR}${PREFIX}/etc/periodic/daily
.include <bsd.port.mk>