/[gentoo-x86]/eclass/qt4-build.eclass
Gentoo

Diff of /eclass/qt4-build.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.77 Revision 1.81
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.77 2010/07/08 15:45:01 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.81 2010/08/14 18:00:38 hwoarang Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ben de Groot <yngwin@gentoo.org>, 7# Ben de Groot <yngwin@gentoo.org>,
8# Markos Chandras <hwoarang@gentoo.org>, 8# Markos Chandras <hwoarang@gentoo.org>,
81 fi 81 fi
82 fi 82 fi
83 83
84 if [[ "${PN}" == "qt-webkit" ]]; then 84 if [[ "${PN}" == "qt-webkit" ]]; then
85 eshopts_push -s extglob 85 eshopts_push -s extglob
86 if is-flagq '-g?(gdb)?([0-9])'; then 86 if is-flagq '-g?(gdb)?([1-9])'; then
87 echo 87 echo
88 ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)." 88 ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)."
89 ewarn "You may experience really long compilation times and/or increased memory usage." 89 ewarn "You may experience really long compilation times and/or increased memory usage."
90 ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug." 90 ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug."
91 ewarn "For more info check out bug #307861" 91 ewarn "For more info check out bug #307861"
194 if [[ ${CHOST} == *86*-apple-darwin* ]] ; then 194 if [[ ${CHOST} == *86*-apple-darwin* ]] ; then
195 # qmake bus errors with -O2 but -O3 works 195 # qmake bus errors with -O2 but -O3 works
196 replace-flags -O2 -O3 196 replace-flags -O2 -O3
197 fi 197 fi
198 198
199 if [[ ${CHOST} == arm* ]] ; then
200 # Fails on arm with -Os, bug 331641
201 # This can be removed once qt-4.7 is stable or the bug on gcc is fixed
202 replace-flags -Os -O2
203 fi
204
199 # Bug 178652 205 # Bug 178652
200 if [[ $(gcc-major-version) == 3 ]] && use amd64; then 206 if [[ $(gcc-major-version) == 3 ]] && use amd64; then
201 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" 207 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"
202 append-flags -fno-gcse 208 append-flags -fno-gcse
203 fi 209 fi
216 ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS" 222 ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS"
217 append-flags -mminimal-toc 223 append-flags -mminimal-toc
218 fi 224 fi
219 225
220 # Bug 282984 && Bug 295530 226 # Bug 282984 && Bug 295530
221 sed -e "s:\(^SYSTEM_VARIABLES\):CC=$(tc-getCC)\nCXX=$(tc-getCXX)\nCFLAGS=\"${CFLAGS}\"\nCXXFLAGS=\"${CXXFLAGS}\"\nLDFLAGS=\"${LDFLAGS}\"\n\1:" \ 227 sed -e "s:\(^SYSTEM_VARIABLES\):CC="$(tc-getCC)"\nCXX="$(tc-getCXX)"\nCFLAGS=\"${CFLAGS}\"\nCXXFLAGS=\"${CXXFLAGS}\"\nLDFLAGS=\"${LDFLAGS}\"\n\1:" \
222 -i configure || die "sed qmake compilers failed" 228 -i configure || die "sed qmake compilers failed"
223 # bug 321335 229 # bug 321335
224 if version_is_at_least 4.6; then 230 if version_is_at_least 4.6; then
225 find ./config.tests/unix -name "*.test" -type f -exec grep -lZ \$MAKE '{}' \; | \ 231 find ./config.tests/unix -name "*.test" -type f -exec grep -lZ \$MAKE '{}' \; | \
226 xargs -0 \ 232 xargs -0 \
227 sed -e "s:\(\$MAKE\):\1 CC=$(tc-getCC) CXX=$(tc-getCXX) LD=$(tc-getCXX) LINK=$(tc-getCXX):g" \ 233 sed -e "s:\(\$MAKE\):\1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getCXX)" "LINK=$(tc-getCXX)":g" \
228 -i || die "sed test compilers failed" 234 -i || die "sed test compilers failed"
229 fi 235 fi
230 236
231 # Bug 172219 237 # Bug 172219
232 sed -e "s:X11R6/::" \ 238 sed -e "s:X11R6/::" \
387 setqtenv 393 setqtenv
388 install_directories ${QT4_TARGET_DIRECTORIES} 394 install_directories ${QT4_TARGET_DIRECTORIES}
389 install_qconfigs 395 install_qconfigs
390 fix_library_files 396 fix_library_files
391 fix_includes 397 fix_includes
398 # remove .la files since we are building only shared Qt libraries
399 find "${D}"${QTLIBDIR} -name "*.la" -print0 | xargs -0 rm
392} 400}
393 401
394# @FUNCTION: setqtenv 402# @FUNCTION: setqtenv
395setqtenv() { 403setqtenv() {
396 # Set up installation directories 404 # Set up installation directories

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.81

  ViewVC Help
Powered by ViewVC 1.1.20