1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/lang/ldc/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

60 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= ldc
PORTVERSION= 1.12.0
DISTVERSIONPREFIX= v
CATEGORIES= lang
MAINTAINER= acm@FreeBSD.org
COMMENT= The LLVM-based D compiler
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= llvm60>0:devel/llvm60
RUN_DEPENDS= llvm60>0:devel/llvm60
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_powerpc64= fails to compile: cc1plus: error: unrecognized command line option "-std=c++11"
USES= cmake:insource
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:b96540e:druntime/runtime/druntime \
ldc-developers:phobos:1c8a152:phobos/runtime/phobos
CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKSRC}/ltsmaster/bin/ldmd2" \
-DBUILD_SHARED_LIBS:STRING="BOTH"
CC= clang60
CXX= clang++60
BOOTVER= 0.17.6
LLVM_CONFIG= llvm-config60
LDCVER= ${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
post-patch:
${REINPLACE_CMD} -e 's|$${llvm_config_names}|${LLVM_CONFIG}|g' \
${WRKSRC}/ltsmaster/cmake/Modules/FindLLVM.cmake \
${WRKSRC}/cmake/Modules/FindLLVM.cmake
pre-configure:
@cd ${WRKSRC}/ltsmaster && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} .
@cd ${WRKSRC}/ltsmaster && \
${SETENV} ${MAKE_ENV} ${MAKE}
.include <bsd.port.post.mk>