/[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.37 Revision 1.39
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.39 2009/06/27 12:37:32 yngwin 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>,
56esac 56esac
57MY_P=qt-x11-${SRCTYPE}-${MY_PV} 57MY_P=qt-x11-${SRCTYPE}-${MY_PV}
58S=${WORKDIR}/${MY_P} 58S=${WORKDIR}/${MY_P}
59 59
60HOMEPAGE="http://www.qtsoftware.com/" 60HOMEPAGE="http://www.qtsoftware.com/"
61SRC_URI="http://download.qtsoftware.com/qt/source/${MY_P}.tar.bz2" 61SRC_URI="http://get.qtsoftware.com/qt/source/${MY_P}.tar.bz2"
62 62
63case "${PV}" in 63case "${PV}" in
64 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;; 64 4.4.?) SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" ;;
65 *) ;; 65 *) ;;
66esac 66esac
216 216
217 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ 217 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
218 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ 218 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
219 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ 219 -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
220 -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" 220 -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed"
221 221
222 base_src_prepare 222 base_src_prepare
223} 223}
224 224
225# @FUNCTION: qt4-build_src_configure 225# @FUNCTION: qt4-build_src_configure
226# @DESCRIPTION: 226# @DESCRIPTION:
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
305 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) 300 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions)
306 -reduce-relocations -nomake examples -nomake demos" 301 -reduce-relocations -nomake examples -nomake demos"
307 302
308 # Make eclass 4.5.{1,2} ready 303 # Make eclass 4.5.{1,2} ready
309 case "${MY_PV}" in 304 case "${MY_PV}" in
310 4.5.1 | 4.5.2) 305 4.5.1 | 4.5.2)
311 myconf="${myconf} -opensource" 306 myconf="${myconf} -opensource"
312 ;; 307 ;;
516 rmdir "${D}"/${QTLIBDIR}/pkgconfig 511 rmdir "${D}"/${QTLIBDIR}/pkgconfig
517} 512}
518 513
519# @FUNCTION: qt_use 514# @FUNCTION: qt_use
520# @USAGE: < flag > [ feature ] [ enableval ] 515# @USAGE: < flag > [ feature ] [ enableval ]
521# @DESCRIPTION: 516# @DESCRIPTION:
522# This will echo "${enableval}-${feature}" if <flag> is enabled, or 517# This will echo "${enableval}-${feature}" if <flag> is enabled, or
523# "-no-${feature} if the flag is disabled. If [feature] is not specified <flag> 518# "-no-${feature} if the flag is disabled. If [feature] is not specified <flag>
524# will be used for that. If [enableval] is not specified, it omits the 519# will be used for that. If [enableval] is not specified, it omits the
525# assignment-part 520# assignment-part
526qt_use() { 521qt_use() {
608 fi 603 fi
609} 604}
610 605
611# @FUNCTION: qt_mkspecs_dir 606# @FUNCTION: qt_mkspecs_dir
612# @RETURN: the specs-directory w/o path 607# @RETURN: the specs-directory w/o path
613# @DESCRIPTION: 608# @DESCRIPTION:
614# Allows us to define which mkspecs dir we want to use. 609# Allows us to define which mkspecs dir we want to use.
615qt_mkspecs_dir() { 610qt_mkspecs_dir() {
616 # Allows us to define which mkspecs dir we want to use. 611 # Allows us to define which mkspecs dir we want to use.
617 local spec 612 local spec
618 613

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20