2017-02-28 15:52:45 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldc
|
2019-03-07 07:08:46 +01:00
|
|
|
PORTVERSION= 1.14.0
|
2018-11-20 03:37:19 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2017-02-28 15:52:45 +01:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
|
|
COMMENT= The LLVM-based D compiler
|
|
|
|
|
2017-03-05 04:07:52 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2019-03-07 07:08:46 +01:00
|
|
|
BUILD_DEPENDS= llvm70>0:devel/llvm70
|
|
|
|
RUN_DEPENDS= llvm70>0:devel/llvm70
|
2017-02-28 15:52:45 +01:00
|
|
|
LIB_DEPENDS= libconfig.so:devel/libconfig
|
|
|
|
|
2017-05-03 00:23:52 +02:00
|
|
|
BROKEN_aarch64= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf?
|
|
|
|
BROKEN_armv6= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf?
|
2017-11-30 07:13:34 +01:00
|
|
|
BROKEN_armv7= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf?
|
2019-04-21 20:11:40 +02:00
|
|
|
BROKEN_i386= function core.bitop.bsf (uint v) is not callable using argument types (ulong)
|
2017-05-20 18:58:10 +02:00
|
|
|
BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option "-std=c++11"
|
2017-05-03 00:23:52 +02:00
|
|
|
|
2018-12-25 21:25:39 +01:00
|
|
|
USES= cmake:insource
|
2018-11-20 03:37:19 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ldc-developers
|
|
|
|
GH_PROJECT= ldc
|
|
|
|
GH_TUPLE= ldc-developers:ldc:911589c:tree/ltsmaster \
|
|
|
|
ldc-developers:druntime:694089c:druntimelts/ltsmaster/runtime/druntime \
|
|
|
|
ldc-developers:phobos:1d758b2:phoboslts/ltsmaster/runtime/phobos \
|
2019-03-07 07:08:46 +01:00
|
|
|
ldc-developers:druntime:54cb25c:druntime/runtime/druntime \
|
|
|
|
ldc-developers:phobos:71cf74f:phobos/runtime/phobos
|
2018-11-20 03:37:19 +01:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKSRC}/ltsmaster/bin/ldmd2" \
|
2017-07-16 10:49:32 +02:00
|
|
|
-DBUILD_SHARED_LIBS:STRING="BOTH"
|
2018-02-01 21:03:30 +01:00
|
|
|
|
2019-03-07 07:08:46 +01:00
|
|
|
CC= clang70
|
|
|
|
CXX= clang++70
|
2017-02-28 15:52:45 +01:00
|
|
|
|
2018-11-20 03:37:19 +01:00
|
|
|
BOOTVER= 0.17.6
|
2019-03-07 07:08:46 +01:00
|
|
|
LLVM_CONFIG= llvm-config70
|
2017-02-28 15:52:45 +01:00
|
|
|
LDCVER= ${PORTVERSION}
|
|
|
|
|
2017-07-16 10:49:32 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
2018-02-01 21:03:30 +01:00
|
|
|
CFLAGS+= -fPIC
|
2017-07-16 10:49:32 +02:00
|
|
|
.endif
|
|
|
|
|
2019-03-07 07:08:46 +01:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200029
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/fbsd12-*
|
|
|
|
.endif
|
|
|
|
|
2018-02-03 05:36:22 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|$${llvm_config_names}|${LLVM_CONFIG}|g' \
|
2018-11-20 03:37:19 +01:00
|
|
|
${WRKSRC}/ltsmaster/cmake/Modules/FindLLVM.cmake \
|
2018-02-03 05:36:22 +01:00
|
|
|
${WRKSRC}/cmake/Modules/FindLLVM.cmake
|
|
|
|
|
2017-02-28 15:52:45 +01:00
|
|
|
pre-configure:
|
2018-11-20 03:37:19 +01:00
|
|
|
@cd ${WRKSRC}/ltsmaster && \
|
2018-03-21 04:45:55 +01:00
|
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} .
|
2018-11-20 03:37:19 +01:00
|
|
|
@cd ${WRKSRC}/ltsmaster && \
|
2018-03-21 04:45:55 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE}
|
2017-02-28 15:52:45 +01:00
|
|
|
|
2017-07-16 10:49:32 +02:00
|
|
|
.include <bsd.port.post.mk>
|