/[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.31 Revision 1.33
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.31 2009/03/28 02:29:24 gengor Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.33 2009/05/12 14:21:22 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>,
50 fi 50 fi
51 51
52 # Check USE requirements 52 # Check USE requirements
53 qt4-build_check_use 53 qt4-build_check_use
54 fi 54 fi
55
56 # Set up installation directories 55 # Set up installation directories
57 QTBASEDIR=/usr/$(get_libdir)/qt4 56 QTBASEDIR=/usr/$(get_libdir)/qt4
58 QTPREFIXDIR=/usr 57 QTPREFIXDIR=/usr
59 QTBINDIR=/usr/bin 58 QTBINDIR=/usr/bin
60 QTLIBDIR=/usr/$(get_libdir)/qt4 59 QTLIBDIR=/usr/$(get_libdir)/qt4
219 alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;; 218 alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;;
220 hppa|sh) myconf="${myconf} -arch generic" ;; 219 hppa|sh) myconf="${myconf} -arch generic" ;;
221 *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; 220 *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;;
222 esac 221 esac
223 222
223 # Bug 261412 Qt configure detects archs by uname
224 case "$(tc-arch)" in
225 ppc) myconf="${myconf} -platform linux-g++-32";;
226 esac
227
224 myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath 228 myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath
225 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} 229 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
226 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} 230 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}
227 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} 231 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
228 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} 232 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
229 -demosdir ${QTDEMOSDIR} -silent -fast 233 -demosdir ${QTDEMOSDIR} -silent -fast
230 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) 234 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions)
231 -reduce-relocations -nomake examples -nomake demos" 235 -reduce-relocations -nomake examples -nomake demos"
236
237 # Make eclass 4.5.{1,2} ready
238 case "${MY_PV}" in
239 4.5.1 | 4.5.2)
240 myconf="${myconf} -opensource"
241 ;;
242 esac
232 243
233 echo "${myconf}" 244 echo "${myconf}"
234} 245}
235 246
236build_directories() { 247build_directories() {

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20