some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.
This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -
- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.
- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.
devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
MODGCC4_CPPWANTLIB cant be defined/used there..
Manually add estdc++ to WANTLIB only on amd64 & i386, with a big comment
explaining why. sigh.
Discussed with sthen@
estdc++.
Those two ports have multimedia/libvpx in their dependency chain, and
the latter uses lang/clang MODULE but only on i386 & amd64 only, which
in turns adds gcc4 to MODULES and thus adds lang/gcc/4.9,-libs to
LIB_DEPENDS.. but only for i386 & amd64 - thus breaking other archs with
'Missing library for estdc++'.
Using MODGCC4_CPPWANTLIB fixes this, because it is set on archs using
lang/clang, and unset on the others.
ok ajacoutot@
- add various other missing WANTLIB (and LIB_DEPENDS in some cases)
- while there move PKGNAME=..pX to REVISION, and move some ports
to new-style LIB_DEPENDS
original diff from Brad, extensive checking by me (clean build of everything
related to liboil).
included, so the tools know that old ffmpeg versions won't satisfy the
dependencies listed in WANTLIB.
this way, attempting to install these packages with old ffmpeg will
no longer give you a cryptic error message as seen by dhill@.