/[gentoo-x86]/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild
Gentoo

Diff of /media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 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/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild,v 1.2 2010/07/29 22:11:16 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild,v 1.3 2012/03/16 09:46:07 scarabeus Exp $
4 4
5EAPI=2 5EAPI=4
6
6inherit cmake-utils flag-o-matic eutils toolchain-funcs 7inherit cmake-utils flag-o-matic eutils toolchain-funcs
7 8
8MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib} 9MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib}
9 10
10DESCRIPTION="A graphical music visualization plugin similar to milkdrop" 11DESCRIPTION="A graphical music visualization plugin similar to milkdrop"
25DEPEND="${RDEPEND} 26DEPEND="${RDEPEND}
26 dev-util/pkgconfig" 27 dev-util/pkgconfig"
27 28
28S=${WORKDIR}/${MY_P} 29S=${WORKDIR}/${MY_P}
29 30
30src_prepare() { 31PATCHES=(
31 epatch "${FILESDIR}"/${P}-pcfix.patch 32 "${FILESDIR}"/${P}-pcfix.patch
32} 33)
33 34
34src_configure() { 35src_configure() {
35 append-ldflags $(no-as-needed) 36 append-ldflags $(no-as-needed)
36 37
37 if use video_cards_nvidia; then 38 if use video_cards_nvidia; then
38 append-ldflags -L/opt/nvidia-cg-toolkit/lib 39 append-ldflags -L/opt/nvidia-cg-toolkit/lib
39 append-flags -I/opt/nvidia-cg-toolkit/include 40 append-flags -I/opt/nvidia-cg-toolkit/include
40 fi 41 fi
41 42
42 mycmakeargs=( 43 local mycmakeargs=(
43 $(cmake-utils_use_use video_cards_nvidia CG) 44 $(cmake-utils_use_use video_cards_nvidia CG)
44 "-DUSE_OPENMP=OFF" 45 "-DUSE_OPENMP=OFF"
45 ) 46 )
46 47
47 if use openmp && tc-has-openmp; then 48 if use openmp && tc-has-openmp; then
48 mycmakeargs+=( 49 mycmakeargs+=(
49 $(cmake-utils_use_use openmp) 50 $(cmake-utils_use_use openmp)
50 ) 51 )
51 fi 52 fi
52 53
53 cmake-utils_src_configure 54 cmake-utils_src_configure
54} 55}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20