| 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.84 2010/10/13 19:33:17 armin76 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.86 2010/11/13 20:30:26 wired 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>, |
| … | |
… | |
| 15 | inherit base eutils multilib toolchain-funcs flag-o-matic versionator |
15 | inherit base eutils multilib toolchain-funcs flag-o-matic versionator |
| 16 | |
16 | |
| 17 | MY_PV=${PV/_/-} |
17 | MY_PV=${PV/_/-} |
| 18 | if version_is_at_least 4.5.99999999; then |
18 | if version_is_at_least 4.5.99999999; then |
| 19 | MY_P=qt-everywhere-opensource-src-${MY_PV} |
19 | MY_P=qt-everywhere-opensource-src-${MY_PV} |
| 20 | [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && IUSE="+exceptions" |
20 | [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && |
|
|
21 | [[ ${CATEGORY}/${PN} != x11-themes/qgtkstyle ]] && |
|
|
22 | IUSE="+exceptions" |
| 21 | else |
23 | else |
| 22 | MY_P=qt-x11-opensource-src-${MY_PV} |
24 | MY_P=qt-x11-opensource-src-${MY_PV} |
| 23 | fi |
25 | fi |
| 24 | |
26 | |
| 25 | HOMEPAGE="http://qt.nokia.com/" |
27 | HOMEPAGE="http://qt.nokia.com/" |
| 26 | SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz" |
28 | SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz" |
| 27 | |
29 | |
| 28 | LICENSE="|| ( LGPL-2.1 GPL-3 )" |
30 | LICENSE="|| ( LGPL-2.1 GPL-3 )" |
|
|
31 | IUSE+=" debug" |
|
|
32 | [[ ${CATEGORY}/${PN} != x11-themes/qgtkstyle ]] && |
| 29 | IUSE+=" debug pch aqua" |
33 | IUSE+=" pch aqua" |
| 30 | |
34 | |
| 31 | RDEPEND=" |
35 | RDEPEND=" |
| 32 | !<x11-libs/qt-assistant-${PV} |
36 | !<x11-libs/qt-assistant-${PV} |
| 33 | !>x11-libs/qt-assistant-${PV}-r9999 |
37 | !>x11-libs/qt-assistant-${PV}-r9999 |
| 34 | !<x11-libs/qt-core-${PV} |
38 | !<x11-libs/qt-core-${PV} |
| … | |
… | |
| 329 | # freetype2 include dir is non-standard, thus include it on configure |
333 | # freetype2 include dir is non-standard, thus include it on configure |
| 330 | # use -I from configure |
334 | # use -I from configure |
| 331 | myconf+=" $(pkg-config --cflags freetype2)" |
335 | myconf+=" $(pkg-config --cflags freetype2)" |
| 332 | fi |
336 | fi |
| 333 | |
337 | |
|
|
338 | # Disable SSE4.x, since auto-detection is currently broken |
|
|
339 | # Upstream bug http://bugreports.qt.nokia.com/browse/QTBUG-13623 |
|
|
340 | if version_is_at_least 4.7.1; then |
|
|
341 | myconf+=" -no-sse4.1 -no-sse4.2" |
|
|
342 | fi |
|
|
343 | |
| 334 | echo ./configure ${myconf} |
344 | echo ./configure ${myconf} |
| 335 | ./configure ${myconf} || die "./configure failed" |
345 | ./configure ${myconf} || die "./configure failed" |
| 336 | myconf="" |
346 | myconf="" |
| 337 | } |
347 | } |
| 338 | |
348 | |