| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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/mythtv-plugins.eclass,v 1.1 2005/05/20 02:39:14 cardoe Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv-plugins.eclass,v 1.2 2005/05/27 23:24:09 eradicator Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Doug Goldstein <cardoe@gentoo.org |
5 | # Author: Doug Goldstein <cardoe@gentoo.org |
| 6 | # |
6 | # |
|
|
7 | |
|
|
8 | inherit multilib |
| 7 | |
9 | |
| 8 | ECLASS=mythtv-plugins |
10 | ECLASS=mythtv-plugins |
| 9 | INHERITED="${INHERITED} ${ECLASS} debug" |
11 | INHERITED="${INHERITED} ${ECLASS} debug" |
| 10 | IUSE="${IUSE} mmx" |
12 | IUSE="${IUSE} mmx" |
| 11 | |
13 | |
| … | |
… | |
| 30 | |
32 | |
| 31 | sed -e "s!QMAKE_CFLAGS_RELEASE = \$\${QMAKE_CXXFLAGS_RELEASE}!QMAKE_CFLAGS_RELEASE = ${CFLAGS}!" \ |
33 | sed -e "s!QMAKE_CFLAGS_RELEASE = \$\${QMAKE_CXXFLAGS_RELEASE}!QMAKE_CFLAGS_RELEASE = ${CFLAGS}!" \ |
| 32 | -i 'settings.pro' || die "ciaranm sucks" |
34 | -i 'settings.pro' || die "ciaranm sucks" |
| 33 | #sed -e "/^QMAKE_CFLAGS_RELEASE/s!= .*!= ${CFLAGS}!" |
35 | #sed -e "/^QMAKE_CFLAGS_RELEASE/s!= .*!= ${CFLAGS}!" |
| 34 | #-i 'settings.pro' || die "Fixing Qmake's CFLAGS failed" |
36 | #-i 'settings.pro' || die "Fixing Qmake's CFLAGS failed" |
|
|
37 | |
|
|
38 | find ${S} -name '*.pro' -exec sed -i \ |
|
|
39 | -e "s:\$\${PREFIX}/lib/:\$\${PREFIX}/$(get_libdir)/:g" \ |
|
|
40 | -e "s:\$\${PREFIX}/lib$:\$\${PREFIX}/$(get_libdir):g" \ |
|
|
41 | {} \; |
| 35 | } |
42 | } |
| 36 | |
43 | |
| 37 | mythtv-plugins_src_compile() { |
44 | mythtv-plugins_src_compile() { |
| 38 | cd ${S} |
45 | cd ${S} |
| 39 | |
46 | |