|
Lines 8-13
Link Here
|
| 8 |
# |
8 |
# |
| 9 |
# c++0x: The port needs a compiler understanding C++0X |
9 |
# c++0x: The port needs a compiler understanding C++0X |
| 10 |
# c++11-lang: The port needs a compiler understanding C++11 |
10 |
# c++11-lang: The port needs a compiler understanding C++11 |
|
|
11 |
# c++14-lang: The port needs a compiler understanding C++14 |
| 11 |
# gcc-c++11-lib:The port needs g++ compiler with a C++11 library |
12 |
# gcc-c++11-lib:The port needs g++ compiler with a C++11 library |
| 12 |
# c++11-lib: The port needs a compiler understanding C++11 and with a C++11 ready standard library |
13 |
# c++11-lib: The port needs a compiler understanding C++11 and with a C++11 ready standard library |
| 13 |
# c11: The port needs a compiler understanding C11 |
14 |
# c11: The port needs a compiler understanding C11 |
|
Lines 34-40
Link Here
|
| 34 |
compiler_ARGS= env |
35 |
compiler_ARGS= env |
| 35 |
.endif |
36 |
.endif |
| 36 |
|
37 |
|
| 37 |
VALID_ARGS= c++11-lib c++11-lang c11 features openmp env nestedfct c++0x gcc-c++11-lib |
38 |
VALID_ARGS= c++11-lib c++11-lang c++14-lang c11 features openmp env nestedfct c++0x gcc-c++11-lib |
| 38 |
|
39 |
|
| 39 |
.if ${compiler_ARGS} == gcc-c++11-lib |
40 |
.if ${compiler_ARGS} == gcc-c++11-lib |
| 40 |
_COMPILER_ARGS+= features gcc-c++11-lib |
41 |
_COMPILER_ARGS+= features gcc-c++11-lib |
|
Lines 44-49
Link Here
|
| 44 |
_COMPILER_ARGS+= features c++0x |
45 |
_COMPILER_ARGS+= features c++0x |
| 45 |
.elif ${compiler_ARGS} == c++11-lang |
46 |
.elif ${compiler_ARGS} == c++11-lang |
| 46 |
_COMPILER_ARGS+= features c++11-lang |
47 |
_COMPILER_ARGS+= features c++11-lang |
|
|
48 |
.elif ${compiler_ARGS} == c++14-lang |
| 49 |
_COMPILER_ARGS+= features c++14-lang |
| 47 |
.elif ${compiler_ARGS} == c11 |
50 |
.elif ${compiler_ARGS} == c11 |
| 48 |
_COMPILER_ARGS+= features c11 |
51 |
_COMPILER_ARGS+= features c11 |
| 49 |
.elif ${compiler_ARGS} == features |
52 |
.elif ${compiler_ARGS} == features |
|
Lines 138-143
Link Here
|
| 138 |
.endif |
141 |
.endif |
| 139 |
.endif |
142 |
.endif |
| 140 |
|
143 |
|
|
|
144 |
.if ${_COMPILER_ARGS:Mc++14-lang} |
| 145 |
.if !${COMPILER_FEATURES:Mc++14} |
| 146 |
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 |
| 147 |
USE_GCC= 5+ |
| 148 |
CHOSEN_COMPILER_TYPE= gcc |
| 149 |
.elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 35) || ${COMPILER_TYPE} == gcc |
| 150 |
.if ${ALT_COMPILER_TYPE} == clang && ${ALT_COMPILER_VERSION} >= 35 |
| 151 |
CPP= clang-cpp |
| 152 |
CC= clang |
| 153 |
CXX= clang++ |
| 154 |
CHOSEN_COMPILER_TYPE= clang |
| 155 |
.else |
| 156 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang35:${PORTSDIR}/lang/clang35 |
| 157 |
CPP= ${LOCALBASE}/bin/clang-cpp35 |
| 158 |
CC= ${LOCALBASE}/bin/clang35 |
| 159 |
CXX= ${LOCALBASE}/bin/clang++35 |
| 160 |
CHOSEN_COMPILER_TYPE= clang |
| 161 |
.if ${OSVERSION} < 900033 |
| 162 |
USE_BINUTILS= yes |
| 163 |
LDFLAGS+= -B${LOCALBASE}/bin |
| 164 |
.endif |
| 165 |
.endif |
| 166 |
.endif |
| 167 |
.endif |
| 168 |
.endif |
| 169 |
|
| 141 |
.if ${_COMPILER_ARGS:Mc++11-lang} |
170 |
.if ${_COMPILER_ARGS:Mc++11-lang} |
| 142 |
.if !${COMPILER_FEATURES:Mc++11} |
171 |
.if !${COMPILER_FEATURES:Mc++11} |
| 143 |
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 |
172 |
.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 |