mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
bf43557044
armv7, mark them so. This is part two of a multipart commit to bring armv7 ports to parity with armv6. Approved by: portmgr (tier-2 blanket) Obtained from: lonesome.com -exp run
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldc
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= lang
|
|
MASTER_SITES= https://github.com/ldc-developers/ldc/releases/download/v${PORTVERSION}/:source \
|
|
https://github.com/ldc-developers/ldc/releases/download/v${BOOTVER}/:bootstrap
|
|
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
|
|
|
|
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
|
|
CMAKE_ARGS+= -DD_COMPILER:STRING="${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/}/bin/ldmd2" \
|
|
-DD_COMPILER_FLAGS:STRING=${D_COMPILER_FLAGS} \
|
|
-DD_FLAGS:STRING=${D_FLAGS} \
|
|
-DBUILD_SHARED_LIBS:STRING="BOTH"
|
|
CC= clang39
|
|
|
|
BOOTVER= 0.17.3
|
|
LDCVER= ${PORTVERSION}
|
|
D_FLAGS= "-w;"
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/-src/}
|
|
|
|
DISTFILES+= ${PORTNAME}-${BOOTVER}-src.tar.gz:bootstrap
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
D_COMPILER_FLAGS="-m64 -relocation-model=pic"
|
|
D_FLAGS="-m64;-relocation-model=pic"
|
|
.endif
|
|
|
|
pre-configure:
|
|
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${CMAKE_BIN} .
|
|
@cd ${WRKDIR}/${PORTNAME}-${BOOTVER:S/$/-src/} && ${MAKE}
|
|
|
|
.include <bsd.port.post.mk>
|