freebsd-ports/lang/ldc/Makefile

65 lines
1.9 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= ldc
PORTVERSION= 1.14.0
2018-11-20 03:37:19 +01:00
DISTVERSIONPREFIX= v
CATEGORIES= lang
MAINTAINER= acm@FreeBSD.org
COMMENT= The LLVM-based D compiler
2017-03-05 04:07:52 +01:00
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= llvm70>0:devel/llvm70
RUN_DEPENDS= llvm70>0:devel/llvm70
LIB_DEPENDS= libconfig.so:devel/libconfig
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?
BROKEN_armv7= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf?
BROKEN_i386= function core.bitop.bsf (uint v) is not callable using argument types (ulong)
BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option "-std=c++11"
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 \
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
CC= clang70
CXX= clang++70
2018-11-20 03:37:19 +01:00
BOOTVER= 0.17.6
LLVM_CONFIG= llvm-config70
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
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1200029
EXTRA_PATCHES= ${PATCHDIR}/fbsd12-*
.endif
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 \
${WRKSRC}/cmake/Modules/FindLLVM.cmake
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-07-16 10:49:32 +02:00
.include <bsd.port.post.mk>