1 | # Copyright 2005 Gentoo Foundation |
1 | # Copyright 2005 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.3 2007/12/21 21:44:03 caleb Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.4 2007/12/22 16:28:59 caleb 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: |
8 | # @BLURB: |
… | |
… | |
50 | ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
50 | ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
51 | append-flags -fno-stack-protector |
51 | append-flags -fno-stack-protector |
52 | fi |
52 | fi |
53 | } |
53 | } |
54 | |
54 | |
|
|
55 | qt4-build_src_install() { |
|
|
56 | install_directories "${QT4_TARGET_DIRECTORIES}" |
|
|
57 | fix_library_files |
|
|
58 | } |
|
|
59 | |
55 | standard_configure_options() { |
60 | standard_configure_options() { |
56 | local myconf="" |
61 | local myconf="" |
57 | |
62 | |
58 | [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
63 | [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
59 | |
64 | |
… | |
… | |
71 | -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR}" |
76 | -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR}" |
72 | |
77 | |
73 | myconf="${myconf} -silent -fast -reduce-relocations -nomake examples -nomake demos" |
78 | myconf="${myconf} -silent -fast -reduce-relocations -nomake examples -nomake demos" |
74 | |
79 | |
75 | echo "${myconf}" |
80 | echo "${myconf}" |
|
|
81 | } |
|
|
82 | |
|
|
83 | build_target_directories() { |
|
|
84 | build_directories "${QT4_TARGET_DIRECTORIES}" |
76 | } |
85 | } |
77 | |
86 | |
78 | build_directories() { |
87 | build_directories() { |
79 | local dirs="$@" |
88 | local dirs="$@" |
80 | for x in ${dirs}; do |
89 | for x in ${dirs}; do |
… | |
… | |
174 | fi |
183 | fi |
175 | |
184 | |
176 | echo "${spec}" |
185 | echo "${spec}" |
177 | } |
186 | } |
178 | |
187 | |
179 | EXPORT_FUNCTIONS pkg_setup src-unpack |
188 | EXPORT_FUNCTIONS pkg_setup src_unpack src_install |