/[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.4 - (show annotations) (download)
Sat May 5 08:02:39 2012 UTC (7 years, 9 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

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.3 2012/03/16 09:46:07 scarabeus 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 ~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