/[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.1 Revision 1.2
1# Copyright 1999-2009 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/media-libs/libprojectm/libprojectm-2.0.1-r1.ebuild,v 1.1 2009/12/22 13:22:35 aballier Exp $ 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 $
4 4
5EAPI=2 5EAPI=2
6inherit cmake-utils flag-o-matic eutils 6inherit cmake-utils flag-o-matic eutils toolchain-funcs
7 7
8MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib} 8MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib}
9 9
10DESCRIPTION="A graphical music visualization plugin similar to milkdrop" 10DESCRIPTION="A graphical music visualization plugin similar to milkdrop"
11HOMEPAGE="http://projectm.sourceforge.net" 11HOMEPAGE="http://projectm.sourceforge.net"
12SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz" 12SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz"
13 13
14LICENSE="LGPL-2" 14LICENSE="LGPL-2"
15SLOT="0" 15SLOT="0"
16KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" 16KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
17IUSE="debug" 17IUSE="debug openmp video_cards_nvidia"
18 18
19RDEPEND=">=media-libs/ftgl-2.1.3_rc5 19RDEPEND=">=media-libs/ftgl-2.1.3_rc5
20 media-libs/freetype:2 20 media-libs/freetype:2
21 media-libs/mesa 21 media-libs/mesa
22 media-libs/glew 22 media-libs/glew
23 sys-libs/zlib" 23 sys-libs/zlib
24 video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
24DEPEND="${RDEPEND} 25DEPEND="${RDEPEND}
25 dev-util/pkgconfig" 26 dev-util/pkgconfig"
26 27
27S=${WORKDIR}/${MY_P} 28S=${WORKDIR}/${MY_P}
28 29
29src_prepare() { 30src_prepare() {
30 epatch "${FILESDIR}/${P}-pcfix.patch" 31 epatch "${FILESDIR}"/${P}-pcfix.patch
31} 32}
32 33
33src_configure() { 34src_configure() {
34 append-ldflags $(no-as-needed) 35 append-ldflags $(no-as-needed)
36
37 if use video_cards_nvidia; then
38 append-ldflags -L/opt/nvidia-cg-toolkit/lib
39 append-flags -I/opt/nvidia-cg-toolkit/include
40 fi
41
42 mycmakeargs=(
43 $(cmake-utils_use_use video_cards_nvidia CG)
44 "-DUSE_OPENMP=OFF"
45 )
46
47 if use openmp && tc-has-openmp; then
48 mycmakeargs+=(
49 $(cmake-utils_use_use openmp)
50 )
51 fi
52
35 cmake-utils_src_configure 53 cmake-utils_src_configure
36} 54}

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

  ViewVC Help
Powered by ViewVC 1.1.20