| 1 | # Copyright 2007-2009 Gentoo Foundation |
1 | # Copyright 2007-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.37 2009/05/29 20:58:54 hwoarang Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.38 2009/06/06 22:43:27 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>, |
| … | |
… | |
| 289 | alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;; |
289 | alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;; |
| 290 | hppa|sh) myconf="${myconf} -arch generic" ;; |
290 | hppa|sh) myconf="${myconf} -arch generic" ;; |
| 291 | *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; |
291 | *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; |
| 292 | esac |
292 | esac |
| 293 | |
293 | |
| 294 | # Bug 261412 Qt configure detects archs by uname |
|
|
| 295 | case "$(tc-arch)" in |
|
|
| 296 | ppc) myconf="${myconf} -platform linux-g++-32";; |
|
|
| 297 | esac |
|
|
| 298 | |
|
|
| 299 | myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath |
294 | myconf="${myconf} -platform $(qt_mkspecs_dir) -stl -verbose -largefile -confirm-license -no-rpath |
| 300 | -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} |
295 | -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} |
| 301 | -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} |
296 | -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} |
| 302 | -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} |
297 | -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} |
| 303 | -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} |
298 | -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} |
| 304 | -demosdir ${QTDEMOSDIR} -silent -fast |
299 | -demosdir ${QTDEMOSDIR} -silent -fast |