# $FreeBSD: tags/RELEASE_11_0_0/sysutils/facter/Makefile 412349 2016-04-01 14:25:16Z mat $

PORTNAME=	facter
PORTVERSION=	3.1.3
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://downloads.puppetlabs.com/facter/

MAINTAINER=	ruby@FreeBSD.org
COMMENT=	Cross-platform library for retrieving facts from OS

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libyaml-cpp.so:devel/yaml-cpp

PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

USE_LDCONFIG=	yes
USE_RUBY=	yes
USES=	cmake compiler:c++11-lib
CMAKE_ARGS+=	-DMAN_PATH=${MANPREFIX}/man

CONFLICTS_INSTALL=	rubygem-facter-2*

BROKEN_DragonFly=	DragonFly is not supported upstream

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${COMPILER_FEATURES:Mlibstdc++}
BROKEN=		Build with system libstdc++ is unsupported
.endif

.include <bsd.port.post.mk>
