| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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/cmake-utils.eclass,v 1.12 2008/10/27 05:36:02 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.13 2008/10/27 14:38:38 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: cmake-utils.eclass |
5 | # @ECLASS: cmake-utils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: common ebuild functions for cmake-based packages |
8 | # @BLURB: common ebuild functions for cmake-based packages |
| … | |
… | |
| 144 | |
144 | |
| 145 | # Internal use only. Common configuration options for all types of builds. |
145 | # Internal use only. Common configuration options for all types of builds. |
| 146 | _common_configure_code() { |
146 | _common_configure_code() { |
| 147 | local tmp_libdir=$(get_libdir) |
147 | local tmp_libdir=$(get_libdir) |
| 148 | # CMAKE_BUILD_TYPE only modifies compiler flags, so set to None |
148 | # CMAKE_BUILD_TYPE only modifies compiler flags, so set to None |
| 149 | echo -DCMAKE_BUILD_TYPE=None |
149 | echo -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-None} |
| 150 | echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) |
150 | echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) |
| 151 | echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX)) |
151 | echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX)) |
| 152 | echo -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} |
152 | echo -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} |
| 153 | echo -DLIB_SUFFIX=${tmp_libdir/lib} |
153 | echo -DLIB_SUFFIX=${tmp_libdir/lib} |
| 154 | echo -DLIB_INSTALL_DIR=${PREFIX:-/usr}/${tmp_libdir} |
154 | echo -DLIB_INSTALL_DIR=${PREFIX:-/usr}/${tmp_libdir} |