aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2017-03-05 11:07:52 +0800
committeracm <acm@FreeBSD.org>2017-03-05 11:07:52 +0800
commitd26f3fc53a961319deb508f2fd192af631bbc501 (patch)
tree32c5dc4b18c295f4a7efdbcc328389ac8e0f7e63 /lang
parent524fbcc5e611fa076b64ce8f085a4353f545f95c (diff)
downloadfreebsd-ports-gnome-d26f3fc53a961319deb508f2fd192af631bbc501.tar.gz
freebsd-ports-gnome-d26f3fc53a961319deb508f2fd192af631bbc501.tar.zst
freebsd-ports-gnome-d26f3fc53a961319deb508f2fd192af631bbc501.zip
- Fix build on FreeBSD 11
Diffstat (limited to 'lang')
-rw-r--r--lang/ldc/Makefile12
1 files 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 <bsd.port.options.mk>
-
-.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}