Lines 2-8
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= llvm |
3 |
PORTNAME= llvm |
4 |
DISTVERSION= 5.0.0 |
4 |
DISTVERSION= 5.0.0 |
5 |
PORTREVISION= 1 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= devel lang |
6 |
CATEGORIES= devel lang |
7 |
MASTER_SITES= http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR} |
7 |
MASTER_SITES= http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR} |
8 |
PKGNAMESUFFIX= ${LLVM_SUFFIX} |
8 |
PKGNAMESUFFIX= ${LLVM_SUFFIX} |
Lines 194-201
Link Here
|
194 |
.include <bsd.port.options.mk> |
194 |
.include <bsd.port.options.mk> |
195 |
|
195 |
|
196 |
# keep in sync with /usr/src/lib/clang/clang.build.mk |
196 |
# keep in sync with /usr/src/lib/clang/clang.build.mk |
197 |
CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-portbld-${OPSYS:tl}${OSREL} |
197 |
# ----------- start of sync block ------------------ |
|
|
198 |
# Armv6 and armv7 uses hard float abi, unless the CPUTYPE has soft in it. |
199 |
# arm (for armv4 and armv5 CPUs) always uses the soft float ABI. |
200 |
# For all other targets, we stick with 'unknown'. |
201 |
.if ${ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") |
202 |
TARGET_ABI= -gnueabihf |
203 |
.elif ${ARCH:Marm*} |
204 |
TARGET_ABI= -gnueabi |
205 |
.else |
206 |
TARGET_ABI= |
207 |
.endif |
198 |
|
208 |
|
|
|
209 |
CONFIGURE_TARGET:=${ARCH:C/amd64/x86_64/:C/arm64/aarch64/}-portbld-${OPSYS:tl}${OSREL}${TARGET_ABI} |
210 |
# ----------- end of sync block -------------------- |
211 |
|
199 |
.if ${PORT_OPTIONS:MCLANG} |
212 |
.if ${PORT_OPTIONS:MCLANG} |
200 |
COMMANDS+= c-index-test \ |
213 |
COMMANDS+= c-index-test \ |
201 |
clang \ |
214 |
clang \ |
Lines 323-329
Link Here
|
323 |
CXXFLAGS+= -D_GLIBCXX_USE_C99 |
336 |
CXXFLAGS+= -D_GLIBCXX_USE_C99 |
324 |
.endif |
337 |
.endif |
325 |
|
338 |
|
326 |
.if ${ARCH} == "armv6" |
339 |
.if ${ARCH} == "armv6" || ${ARCH} == "armv7" |
327 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils |
340 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/ld:devel/binutils |
328 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
341 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
329 |
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
342 |
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |