| 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.80 2010/08/13 16:36:10 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>, |
| … | |
… | |
| 222 | ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS" |
222 | ewarn "Appending -mminimal-toc to CFLAGS/CXXFLAGS" |
| 223 | append-flags -mminimal-toc |
223 | append-flags -mminimal-toc |
| 224 | fi |
224 | fi |
| 225 | |
225 | |
| 226 | # Bug 282984 && Bug 295530 |
226 | # Bug 282984 && Bug 295530 |
| 227 | 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:" \ |
| 228 | -i configure || die "sed qmake compilers failed" |
228 | -i configure || die "sed qmake compilers failed" |
| 229 | # bug 321335 |
229 | # bug 321335 |
| 230 | if version_is_at_least 4.6; then |
230 | if version_is_at_least 4.6; then |
| 231 | 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 '{}' \; | \ |
| 232 | xargs -0 \ |
232 | xargs -0 \ |
| 233 | 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" \ |
| 234 | -i || die "sed test compilers failed" |
234 | -i || die "sed test compilers failed" |
| 235 | fi |
235 | fi |
| 236 | |
236 | |
| 237 | # Bug 172219 |
237 | # Bug 172219 |
| 238 | sed -e "s:X11R6/::" \ |
238 | sed -e "s:X11R6/::" \ |