- Revert latest commit because it didn't solve pkg-plist problem. jit support

depends of LLVM version
- Change llvm dependency to devel/llvm40
- Respect llvm40 detection
This commit is contained in:
Jose Alonso Cardenas Marquez 2018-02-03 04:36:22 +00:00
parent f03e95d116
commit 3d8606b2a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460774
2 changed files with 16 additions and 13 deletions

View File

@ -14,7 +14,7 @@ COMMENT= The LLVM-based D compiler
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= clang39:devel/llvm39
BUILD_DEPENDS= clang40:devel/llvm40
LIB_DEPENDS= libconfig.so:devel/libconfig
BROKEN_aarch64= fails to compile: Error: undefined identifier _jmp_buf, did you mean alias jmp_buf?
@ -26,10 +26,11 @@ USES= cmake
CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/bin/ldmd2" \
-DBUILD_SHARED_LIBS:STRING="BOTH"
CC= clang39
CXX= clang++39
CC= clang40
CXX= clang++40
BOOTVER= 0.17.5
LLVM_CONFIG= llvm-config40
LDCVER= ${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/-src/}
@ -39,13 +40,15 @@ DISTFILES+= ${PORTNAME}-${BOOTVER}-src.tar.gz:bootstrap
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
PLIST_SUB+= LDC_I386=""
.elif ${ARCH} == "i386"
PLIST_SUB+= LDC_I386="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e 's|$${llvm_config_names}|${LLVM_CONFIG}|g' \
${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/cmake/Modules/FindLLVM.cmake \
${WRKSRC}/cmake/Modules/FindLLVM.cmake
pre-configure:
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} .
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE}
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} .
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE}
.include <bsd.port.post.mk>

View File

@ -385,7 +385,7 @@ include/d/ldc/arrayinit.d
include/d/ldc/asan.d
include/d/ldc/attributes.d
include/d/ldc/dcompute.d
%%LDC_I386%%include/d/ldc/dynamic_compile.d
include/d/ldc/dynamic_compile.d
include/d/ldc/eh_asm.S
include/d/ldc/eh_msvc.d
include/d/ldc/gccbuiltins_aarch64.di
@ -570,10 +570,10 @@ lib/libdruntime-ldc-shared.so
lib/libdruntime-ldc-shared.so.2.0.77
lib/libdruntime-ldc-shared.so.77
lib/libdruntime-ldc.a
%%LDC_I386%%lib/libldc-jit-rt.a
%%LDC_I386%%lib/libldc-jit.so
%%LDC_I386%%lib/libldc-jit.so.2.0.77
%%LDC_I386%%lib/libldc-jit.so.77
lib/libldc-jit-rt.a
lib/libldc-jit.so
lib/libldc-jit.so.2.0.77
lib/libldc-jit.so.77
lib/libldc-profile-rt.a
lib/libphobos2-ldc-debug-shared.so
lib/libphobos2-ldc-debug-shared.so.2.0.77