/[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.26 Revision 1.28
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.26 2009/03/05 09:25:01 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.28 2009/03/16 08:21:18 aballier 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>,
207 else 207 else
208 myconf="${myconf} -release -no-separate-debug-info" 208 myconf="${myconf} -release -no-separate-debug-info"
209 fi 209 fi
210 210
211 # ARCH is set on Gentoo. Qt now falls back to generic on an unsupported 211 # ARCH is set on Gentoo. Qt now falls back to generic on an unsupported
212 # ${ARCH}. Therefore we convert it to supported values. 212 # $(tc-arch). Therefore we convert it to supported values.
213 case "${ARCH}" in 213 case "$(tc-arch)" in
214 amd64) myconf="${myconf} -arch x86_64" ;; 214 amd64) myconf="${myconf} -arch x86_64" ;;
215 ppc|ppc64) myconf="${myconf} -arch powerpc" ;; 215 ppc|ppc64) myconf="${myconf} -arch powerpc" ;;
216 x86|x86-*) myconf="${myconf} -arch i386" ;; 216 x86|x86-*) myconf="${myconf} -arch i386" ;;
217 alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch ${ARCH}" ;; 217 alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;;
218 hppa|sh) myconf="${myconf} -arch generic" ;; 218 hppa|sh) myconf="${myconf} -arch generic" ;;
219 *) die "${ARCH} is unsupported by this eclass. Please file a bug." ;; 219 *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;;
220 esac 220 esac
221 221
222 myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath 222 myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath
223 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} 223 -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
224 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} 224 -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}
225 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} 225 -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
226 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} 226 -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
227 -demosdir ${QTDEMOSDIR} -silent -fast 227 -demosdir ${QTDEMOSDIR} -silent -fast
228 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) 228 $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions)
229 $(use x86-fbsd || echo -reduce-relocations)
230 -nomake examples -nomake demos" 229 -reduce-relocations -nomake examples -nomake demos"
231 230
232 echo "${myconf}" 231 echo "${myconf}"
233} 232}
234 233
235build_directories() { 234build_directories() {

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20