# $FreeBSD: head/devel/creduce/Makefile 463142 2018-02-27 13:25:43Z sunpoet $

PORTNAME=	creduce
DISTVERSION=	2.7.0
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	http://embed.cs.utah.edu/creduce/

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Produces small test cases

BUILD_DEPENDS=	llvm-config40:devel/llvm40
RUN_DEPENDS=	llvm-config40:devel/llvm40 \
		topformflat:devel/delta \
		astyle:devel/astyle \
		p5-Benchmark-Timer>=0:devel/p5-Benchmark-Timer \
		p5-Exporter-Lite>=0:devel/p5-Exporter-Lite \
		p5-File-Which>=0:sysutils/p5-File-Which \
		p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
		p5-Sys-CPU>=0:devel/p5-Sys-CPU \
		p5-Getopt-Tabular>=0:devel/p5-Getopt-Tabular

BROKEN_powerpc64=	fails to configure: cannot compile and link test program with selected LLVM

GNU_CONFIGURE=	yes
CONFIGURE_FLAGS=	--with-llvm=${LOCALBASE}
CONFIGURE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config40 \
		CC=${LOCALBASE}/bin/clang40 \
		CXX=${LOCALBASE}/bin/clang++40 \
		CPP=${LOCALBASE}/bin/clang-cpp40

USES=		autoreconf gmake libtool perl5

.include <bsd.port.mk>
