summaryrefslogtreecommitdiffstats
path: root/lang/ldc/Makefile
blob: 05fee33f9e40b2540c38fa30291b4dcf213a3678 (plain)
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
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ldc
PORTVERSION=	1.1.0
CATEGORIES=	lang
MASTER_SITES=	https://github.com/ldc-developers/ldc/releases/download/v${PORTVERSION}/:source \
		https://github.com/ldc-developers/ldc/releases/download/v${BOOTVER}/:bootstrap
DISTFILES=	${DISTNAME:S/$/-src/}${EXTRACT_SUFX}:source

MAINTAINER=	acm@FreeBSD.org
COMMENT=	The LLVM-based D compiler

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	clang39:devel/llvm39
LIB_DEPENDS=	libconfig.so:devel/libconfig

USES=		cmake
CMAKE_ARGS+=	-DD_COMPILER:STRING="${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/bin/ldmd2"
CC=		clang39

BOOTVER=	0.17.3
LDCVER=		${PORTVERSION}
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/-src/}

DISTFILES+=	${PORTNAME}-${BOOTVER}-src.tar.gz:bootstrap

pre-configure:
		@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} .
		@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud