1# 2# Copyright (c) 2014 The DragonFly Project. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 8# 1. Redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer. 10# 2. Redistributions in binary form must reproduce the above copyright 11# notice, this list of conditions and the following disclaimer in 12# the documentation and/or other materials provided with the 13# distribution. 14# 3. Neither the name of The DragonFly Project nor the names of its 15# contributors may be used to endorse or promote products derived 16# from this software without specific, prior written permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22# COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23# INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 24# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 28# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30# 31 32 33STD_INCOPT="-nostdinc -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include" 34DPORT_GCC_STD_INCOPTXX="-isystem /usr/local/lib/${CCVER}/include/c++ \ 35 -isystem /usr/local/lib/${CCVER}/include/c++/${MACHARCH}-portbld-dragonfly${MACHREL}" 36DPORT_CLANG_STD_INCOPTXX="-cxx-isystem /usr/include/c++/5.0" 37 38 39# For each custom compiler definition, it is mandatory to define the 40# following variables: 41# <CCVER>_CC (path to C compiler) 42# <CCVER>_CXX (path to C++ compiler) 43# <CCVER>_CPP (path to pre-processor) 44# <CCVER>_INCOPT (include options for cc, c++ and cpp) 45# <CCVER>_INCOPTCXX (extra include options for c++) 46# 47# The following variables are optional: 48# <CCVER>_CFLAGS (extra CFLAGS) 49# <CCVER>_CXXFLAGS (extra CXXFLAGS) 50# <CCVER>_CPPFLAGS (extra CPPFLAGS) 51# <CCVER>_GCOV (path to gcov, /usr/libexec/gcc50/gcov is default) 52# 53# The following commands call the base compilers by default: 54# gcc, g++, clang, clang++, clang-cpp 55# 56# However, these can be individually overridden: 57# <CCVER>_GCC (path executed when /usr/bin/gcc called) 58# <CCVER>_GXX (path executed when /usr/bin/g++ called) 59# <CCVER>_CLANG (path executed when /usr/bin/clang called) 60# <CCVER>_CLANGCXX (path executed when /usr/bin/clang++ called) 61# <CCVER>_CLANGCPP (path executed when /usr/bin/clang-cpp called) 62# 63 64 65# lang/gcc5 (dports) 66# 67gcc5_CC=/usr/local/bin/gcc5 68gcc5_CXX=/usr/local/bin/g++5 69gcc5_CPP=/usr/local/bin/cpp5 70gcc5_GCOV=/usr/local/bin/gcov5 71gcc5_INCOPT=${STD_INCOPT} 72gcc5_INCOPTCXX=${DPORT_GCC_STD_INCOPTXX} 73gcc5_GCC=${gcc5_CC} 74gcc5_GXX=${gcc5_CXX} 75# 76# Put the 3 following lines uncommented in /etc/compilers.conf to force 77# /usr/bin/clang* to execute the custom gcc5 compiler instead of base clang 78# gcc5_CLANG=${gcc5_CC} 79# gcc5_CLANGCXX=${gcc5_CXX} 80# gcc5_CLANGCPP=${gcc5_CPP} 81 82 83# lang/gcc6-devel (dports) 84# 85gcc6_CC=/usr/local/bin/gcc6 86gcc6_CXX=/usr/local/bin/g++6 87gcc6_CPP=/usr/local/bin/cpp6 88gcc6_GCOV=/usr/local/bin/gcov6 89gcc6_INCOPT=${STD_INCOPT} 90gcc6_INCOPTCXX=${DPORT_GCC_STD_INCOPTXX} 91gcc6_GCC=${gcc6_CC} 92gcc6_GXX=${gcc6_CXX} 93 94 95# lang/gcc49 (dports) 96# 97gcc49_CC=/usr/local/bin/gcc49 98gcc49_CXX=/usr/local/bin/g++49 99gcc49_CPP=/usr/local/bin/cpp49 100gcc49_GCOV=/usr/local/bin/gcov49 101gcc49_INCOPT=${STD_INCOPT} 102gcc49_INCOPTCXX=${DPORT_GCC_STD_INCOPTXX} 103gcc49_GCC=${gcc49_CC} 104gcc49_GXX=${gcc49_CXX} 105 106 107# lang/gcc48 (dports) 108# 109gcc48_CC=/usr/local/bin/gcc48 110gcc48_CXX=/usr/local/bin/g++48 111gcc48_CPP=/usr/local/bin/cpp48 112gcc48_GCOV=/usr/local/bin/gcov48 113gcc48_INCOPT=${STD_INCOPT} 114gcc48_INCOPTCXX=${DPORT_GCC_STD_INCOPTXX} 115gcc48_GCC=${gcc48_CC} 116gcc48_GXX=${gcc48_CXX} 117 118 119# lang/clang35 (dports) 120# 121clang35_CC=/usr/local/bin/clang35 122clang35_CXX=/usr/local/bin/clang++35 123clang35_CPP=/usr/local/bin/clang-cpp35 124clang35_INCOPT=${STD_INCOPT} 125clang35_INCOPTCXX=${DPORT_CLANG_STD_INCOPTXX} 126clang35_CLANG=${clang35_CC} 127clang35_CLANGCXX=${clang35_CXX} 128clang35_CLANGCPP=${clang35_CPP} 129# 130# Put the 2 following lines uncommented in /etc/compilers.conf to force 131# /usr/bin/gcc* to execute the custom clang35 compiler instead of base gcc 132# clang35_GCC=${clang35_CC} 133# clang35_GXX=${clang35_CXX} 134 135 136# lang/clang36 (dports) 137# 138clang36_CC=/usr/local/bin/clang36 139clang36_CXX=/usr/local/bin/clang++36 140clang36_CPP=/usr/local/bin/clang-cpp36 141clang36_INCOPT=${STD_INCOPT} 142clang36_INCOPTCXX=${DPORT_CLANG_STD_INCOPTXX} 143clang36_CLANG=${clang36_CC} 144clang36_CLANGCXX=${clang36_CXX} 145clang36_CLANGCPP=${clang36_CPP} 146 147 148# lang/clang37 (dports) 149# 150clang37_CC=/usr/local/bin/clang37 151clang37_CXX=/usr/local/bin/clang++37 152clang37_CPP=/usr/local/bin/clang-cpp37 153clang37_INCOPT=${STD_INCOPT} 154clang37_INCOPTCXX=${DPORT_CLANG_STD_INCOPTXX} 155clang37_CLANG=${clang37_CC} 156clang37_CLANGCXX=${clang37_CXX} 157clang37_CLANGCPP=${clang37_CPP} 158 159 160# devel/llvm-devel (dports) 161# 162clangnext_CC=/usr/local/bin/clang-devel 163clangnext_CXX=/usr/local/bin/clang++-devel 164clangnext_CPP=/usr/local/bin/clang-cpp-devel 165clangnext_INCOPT=${STD_INCOPT} 166clangnext_INCOPTCXX=${DPORT_CLANG_STD_INCOPTXX} 167clangnext_CLANG=${clangnext_CC} 168clangnext_CLANGCXX=${clangnext_CXX} 169clangnext_CLANGCPP=${clangnext_CPP} 170