1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Cross-platform application development framework"
10 if [[ ${QT5_BUILD_TYPE} == release ]]; then
11 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
17 dev-libs/double-conversion:=
19 dev-libs/libpcre2[pcre16,unicode]
21 icu? ( dev-libs/icu:= )
22 !icu? ( virtual/libiconv )
23 systemd? ( sys-apps/systemd:= )
26 !<dev-qt/qtcore-4.8.7-r4:4
33 src/tools/qfloat16-tables
39 QT5_GENTOO_PRIVATE_CONFIG=(
47 # don't add -O3 to CXXFLAGS, bug 549140
48 sed -i -e '/CONFIG\s*+=/s/optimize_full//' src/corelib/corelib.pro || die
50 # fix missing qt_version_tag symbol w/ LTO, bug 674382
51 sed -i -e 's/^gcc:ltcg/gcc/' src/corelib/global/global.pri || die
58 -no-feature-statx # bug 672856
61 $(qt_use systemd journald)
63 qt5-build_src_configure
70 DBUS FREETYPE IMAGEFORMAT_JPEG IMAGEFORMAT_PNG
71 OPENGL OPENSSL SSL WIDGETS
74 for flag in ${flags[@]}; do
75 cat >> "${D%/}"/${QT5_HEADERDIR}/QtCore/qconfig.h <<- _EOF_ || die
77 #if defined(QT_NO_${flag}) && defined(QT_${flag})
79 #elif !defined(QT_NO_${flag}) && !defined(QT_${flag})
80 # define QT_NO_${flag}