/[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.72 Revision 1.75
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.72 2010/05/26 15:17:17 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.75 2010/07/03 09:10:55 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>,
140 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ 140 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \
141 ${QT4_EXTRACT_DIRECTORIES}; do 141 ${QT4_EXTRACT_DIRECTORIES}; do
142 targets+=" ${MY_P}/${target}" 142 targets+=" ${MY_P}/${target}"
143 done 143 done
144 144
145 echo tar xzpf "${DISTDIR}"/${MY_P}.tar.gz ${targets} 145 echo tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets}
146 tar xzpf "${DISTDIR}"/${MY_P}.tar.gz ${targets} || die 146 tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets} || die
147} 147}
148 148
149# @ECLASS-VARIABLE: PATCHES 149# @ECLASS-VARIABLE: PATCHES
150# @DESCRIPTION: 150# @DESCRIPTION:
151# In case you have patches to apply, specify them in PATCHES variable. Make sure 151# In case you have patches to apply, specify them in PATCHES variable. Make sure
213 213
214 # Bug 282984 && Bug 295530 214 # Bug 282984 && Bug 295530
215 sed -e "s:\(^SYSTEM_VARIABLES\):CC=$(tc-getCC)\nCXX=$(tc-getCXX)\nCFLAGS=\"${CFLAGS}\"\nCXXFLAGS=\"${CXXFLAGS}\"\nLDFLAGS=\"${LDFLAGS}\"\n\1:" \ 215 sed -e "s:\(^SYSTEM_VARIABLES\):CC=$(tc-getCC)\nCXX=$(tc-getCXX)\nCFLAGS=\"${CFLAGS}\"\nCXXFLAGS=\"${CXXFLAGS}\"\nLDFLAGS=\"${LDFLAGS}\"\n\1:" \
216 -i configure || die "sed qmake compilers failed" 216 -i configure || die "sed qmake compilers failed"
217 # bug 321335 217 # bug 321335
218 if version_is_at_least 4.6; then
218 find ./config.tests/unix -name "*.test" -type f -exec grep -lZ \$MAKE '{}' \; | \ 219 find ./config.tests/unix -name "*.test" -type f -exec grep -lZ \$MAKE '{}' \; | \
219 xargs -0 \ 220 xargs -0 \
220 sed -e "s:\(\$MAKE\):\1 CC=$(tc-getCC) CXX=$(tc-getCXX) LD=$(tc-getCXX) LINK=$(tc-getCXX):g" \ 221 sed -e "s:\(\$MAKE\):\1 CC=$(tc-getCC) CXX=$(tc-getCXX) LD=$(tc-getCXX) LINK=$(tc-getCXX):g" \
221 -i || die "sed test compilers failed" 222 -i || die "sed test compilers failed"
223 fi
222 224
223 # Bug 172219 225 # Bug 172219
224 sed -e "s:X11R6/::" \ 226 sed -e "s:X11R6/::" \
225 -i "${S}"/mkspecs/$(qt_mkspecs_dir)/qmake.conf || die "sed ${S}/mkspecs/$(qt_mkspecs_dir)/qmake.conf failed" 227 -i "${S}"/mkspecs/$(qt_mkspecs_dir)/qmake.conf || die "sed ${S}/mkspecs/$(qt_mkspecs_dir)/qmake.conf failed"
226 228
272 # use GCC over SunStudio 274 # use GCC over SunStudio
273 sed -i -e '/PLATFORM=solaris-cc/s/cc/g++/' configure || die 275 sed -i -e '/PLATFORM=solaris-cc/s/cc/g++/' configure || die
274 # don't flirt with non-Prefix stuff, we're quite possessive 276 # don't flirt with non-Prefix stuff, we're quite possessive
275 sed -i -e '/^QMAKE_\(LIB\|INC\)DIR\(_X11\|_OPENGL\|\)\t/s/=.*$/=/' \ 277 sed -i -e '/^QMAKE_\(LIB\|INC\)DIR\(_X11\|_OPENGL\|\)\t/s/=.*$/=/' \
276 mkspecs/$(qt_mkspecs_dir)/qmake.conf || die 278 mkspecs/$(qt_mkspecs_dir)/qmake.conf || die
279 # strip predefined CFLAGS from qmake ( bug #312689 )
280 sed -i '/^QMAKE_CFLAGS_\(RELEASE\|DEBUG\)/s:+=.*:+=:' mkspecs/common/g++.conf
277 281
278 base_src_prepare 282 base_src_prepare
279} 283}
280 284
281# @FUNCTION: qt4-build_src_configure 285# @FUNCTION: qt4-build_src_configure

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.75

  ViewVC Help
Powered by ViewVC 1.1.20