From d26f3fc53a961319deb508f2fd192af631bbc501 Mon Sep 17 00:00:00 2001 From: acm Date: Sun, 5 Mar 2017 03:07:52 +0000 Subject: - Fix build on FreeBSD 11 --- lang/ldc/Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile index 2547857b2da5..05fee33f9e40 100644 --- a/lang/ldc/Makefile +++ b/lang/ldc/Makefile @@ -11,11 +11,14 @@ 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 -LICENSE= BSD3CLAUSE USES= cmake CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/bin/ldmd2" +CC= clang39 BOOTVER= 0.17.3 LDCVER= ${PORTVERSION} @@ -23,13 +26,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/-src/} DISTFILES+= ${PORTNAME}-${BOOTVER}-src.tar.gz:bootstrap -.include - -.if ${OSVERSION} < 1100101 -BUILD_DEPENDS+= clang39:devel/llvm39 -CC= clang39 -.endif - pre-configure: @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} . @cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE} -- cgit