/[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.8 Revision 1.10
1# Copyright 2007-2008 Gentoo Foundation 1# Copyright 2007-2008 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.8 2008/03/06 01:23:51 ingmar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.10 2008/03/11 16:39:43 ingmar Exp $
4 4
5# @ECLASS: qt4-build.eclass 5# @ECLASS: qt4-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Caleb Tennis <caleb@gentoo.org> 7# Caleb Tennis <caleb@gentoo.org>
8# @BLURB: Eclass for Qt4 split ebuilds. 8# @BLURB: Eclass for Qt4 split ebuilds.
84 if [[ $(gcc-fullversion) == "3.4.6" && gcc-specs-ssp ]] ; then 84 if [[ $(gcc-fullversion) == "3.4.6" && gcc-specs-ssp ]] ; then
85 ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" 85 ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS"
86 append-flags -fno-stack-protector 86 append-flags -fno-stack-protector
87 fi 87 fi
88 88
89 # Bug 178652
90 if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then
91 ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"
92 append-flags -fno-gcse
93 fi
94
89 myconf="$(standard_configure_options) ${myconf}" 95 myconf="$(standard_configure_options) ${myconf}"
90 96
91 echo ./configure ${myconf} 97 echo ./configure ${myconf}
92 ./configure ${myconf} || die "./configure failed" 98 ./configure ${myconf} || die "./configure failed"
93 99
163# @DESCRIPTION: 169# @DESCRIPTION:
164# List variables that should be defined at the top of QtCore/qconfig.h 170# List variables that should be defined at the top of QtCore/qconfig.h
165QCONFIG_DEFINE="${QCONFIG_DEFINE:-}" 171QCONFIG_DEFINE="${QCONFIG_DEFINE:-}"
166 172
167install_qconfigs() { 173install_qconfigs() {
168 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} || -n ${QCONFIG_DEFINE} ]]; then
169 local x 174 local x
175 if [[ -n ${QCONFIG_ADD} || -n ${QCONFIG_REMOVE} ]]; then
170 for x in QCONFIG_ADD QCONFIG_REMOVE; do 176 for x in QCONFIG_ADD QCONFIG_REMOVE; do
171 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri 177 [[ -n ${!x} ]] && echo ${x}=${!x} >> "${T}"/${PN}-qconfig.pri
172 done 178 done
173 insinto ${QTDATADIR}/mkspecs/gentoo 179 insinto ${QTDATADIR}/mkspecs/gentoo
174 doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed" 180 doins "${T}"/${PN}-qconfig.pri || die "installing ${PN}-qconfig.pri failed"
181 fi
175 182
183 if [[ -n ${QCONFIG_DEFINE} ]]; then
176 for x in ${QCONFIG_DEFINE}; do 184 for x in ${QCONFIG_DEFINE}; do
177 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h 185 echo "#define ${x}" >> "${T}"/gentoo-${PN}-qconfig.h
178 done 186 done
179 insinto ${QTHEADERDIR}/Gentoo 187 insinto ${QTHEADERDIR}/Gentoo
180 doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed" 188 doins "${T}"/gentoo-${PN}-qconfig.h || die "installing ${PN}-qconfig.h failed"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20