/[gentoo-x86]/eclass/cmake-utils.eclass
Gentoo

Diff of /eclass/cmake-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.65 Revision 1.67
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.65 2011/01/20 00:48:51 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.67 2011/03/18 19:45:49 scarabeus 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# 8#
44esac 44esac
45inherit toolchain-funcs multilib flag-o-matic base 45inherit toolchain-funcs multilib flag-o-matic base
46 46
47CMAKE_EXPF="src_compile src_test src_install" 47CMAKE_EXPF="src_compile src_test src_install"
48case ${EAPI:-0} in 48case ${EAPI:-0} in
49 3|2) CMAKE_EXPF+=" src_configure" ;; 49 4|3|2) CMAKE_EXPF+=" src_configure" ;;
50 1|0) ;; 50 1|0) ;;
51 *) die "Unknown EAPI, Bug eclass maintainers." ;; 51 *) die "Unknown EAPI, Bug eclass maintainers." ;;
52esac 52esac
53EXPORT_FUNCTIONS ${CMAKE_EXPF} 53EXPORT_FUNCTIONS ${CMAKE_EXPF}
54 54
346 346
347 # Common configure parameters (overridable) 347 # Common configure parameters (overridable)
348 # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable 348 # NOTE CMAKE_BUILD_TYPE can be only overriden via CMAKE_BUILD_TYPE eclass variable
349 # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect. 349 # No -DCMAKE_BUILD_TYPE=xxx definitions will be in effect.
350 local cmakeargs=( 350 local cmakeargs=(
351 --no-warn-unused-cli
351 -C "${common_config}" 352 -C "${common_config}"
352 -DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX:-/usr}" 353 -DCMAKE_INSTALL_PREFIX="${EPREFIX}${PREFIX:-/usr}"
353 "${mycmakeargs_local[@]}" 354 "${mycmakeargs_local[@]}"
354 -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" 355 -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}"
355 -DCMAKE_INSTALL_DO_STRIP=OFF 356 -DCMAKE_INSTALL_DO_STRIP=OFF

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.67

  ViewVC Help
Powered by ViewVC 1.1.20