/[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.89 Revision 1.90
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.89 2011/03/03 21:39:29 wired Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.90 2011/03/10 23:45:51 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>,
338 [[ ${PV} == "4.7.1" ]] && myconf+=" -no-sse4.1 -no-sse4.2" 338 [[ ${PV} == "4.7.1" ]] && myconf+=" -no-sse4.1 -no-sse4.2"
339 339
340 echo ./configure ${myconf} 340 echo ./configure ${myconf}
341 ./configure ${myconf} || die "./configure failed" 341 ./configure ${myconf} || die "./configure failed"
342 myconf="" 342 myconf=""
343
344 prepare_directories ${QT4_TARGET_DIRECTORIES}
343} 345}
344 346
345# @FUNCTION: qt4-build_src_compile 347# @FUNCTION: qt4-build_src_compile
346# @DESCRIPTION: Actual compile phase 348# @DESCRIPTION: Actual compile phase
347qt4-build_src_compile() { 349qt4-build_src_compile() {
491 -nomake examples -nomake demos" 493 -nomake examples -nomake demos"
492 494
493 echo "${myconf}" 495 echo "${myconf}"
494} 496}
495 497
496# @FUNCTION: build_directories 498# @FUNCTION: prepare_directories
497# @USAGE: < directories > 499# @USAGE: < directories >
498# @DESCRIPTION: 500# @DESCRIPTION:
499# Compiles the code in $QT4_TARGET_DIRECTORIES 501# Generates makefiles for the directories set in $QT4_TARGET_DIRECTORIES
500build_directories() { 502prepare_directories() {
501 for x in "$@"; do 503 for x in "$@"; do
502 pushd "${S}"/${x} >/dev/null 504 pushd "${S}"/${x} >/dev/null
505 einfo "running qmake in: $x"
503 # avoid running over the maximum argument number, bug #299810 506 # avoid running over the maximum argument number, bug #299810
504 { 507 {
505 echo "${S}"/mkspecs/common/*.conf 508 echo "${S}"/mkspecs/common/*.conf
506 find "${S}" -name '*.pr[io]' 509 find "${S}" -name '*.pr[io]'
507 } | xargs sed -i -e "s:\$\$\[QT_INSTALL_LIBS\]:${EPREFIX}/usr/$(get_libdir)/qt4:g" || die 510 } | xargs sed -i -e "s:\$\$\[QT_INSTALL_LIBS\]:${EPREFIX}/usr/$(get_libdir)/qt4:g" || die
508 "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed" 511 "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed"
512 popd >/dev/null
513 done
514}
515
516
517# @FUNCTION: build_directories
518# @USAGE: < directories >
519# @DESCRIPTION:
520# Compiles the code in $QT4_TARGET_DIRECTORIES
521build_directories() {
522 for x in "$@"; do
523 pushd "${S}"/${x} >/dev/null
509 emake CC="$(tc-getCC)" \ 524 emake CC="$(tc-getCC)" \
510 CXX="$(tc-getCXX)" \ 525 CXX="$(tc-getCXX)" \
511 LINK="$(tc-getCXX)" || die "emake failed" 526 LINK="$(tc-getCXX)" || die "emake failed"
512 popd >/dev/null 527 popd >/dev/null
513 done 528 done

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90

  ViewVC Help
Powered by ViewVC 1.1.20