aboutsummaryrefslogtreecommitdiff
path: root/devel/creduce/Makefile
blob: 5c210cb523ee854a18512990ffeb9f866203fcc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PORTNAME=	creduce
DISTVERSION=	2.10.0
CATEGORIES=	devel
MASTER_SITES=	http://embed.cs.utah.edu/creduce/

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Produces small test cases
WWW=		https://embed.cs.utah.edu/creduce/

LLVM_VER=	80
BUILD_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER}
RUN_DEPENDS=	llvm-config${LLVM_VER}:devel/llvm${LLVM_VER} \
		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_FreeBSD_12_powerpc64=	fails to configure: cannot compile and link test program with selected LLVM

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER} \
		CC=${LOCALBASE}/bin/clang${LLVM_VER} \
		CXX=${LOCALBASE}/bin/clang++${LLVM_VER} \
		CPP=${LOCALBASE}/bin/clang-cpp${LLVM_VER}

USES=		autoreconf compiler gmake libtool perl5

CFLAGS_powerpc64=	-mabi=elfv2

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
LLD_UNSAFE=	yes
.endif

.include <bsd.port.pre.mk>

# Detect base system libc++ >= 14 by checking for COMPILER_VERSION.
# Not really the ideal way, but it should work.
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140
CXXFLAGS+=	-include ${FILESDIR}/builtin_is_constant_evaluated.h
.endif

.include <bsd.port.mk>