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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Dec 7 23:08:25 2012 UTC (7 years, 2 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Stable for ppc64, wrt bug #408487

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20