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

Contents of /media-libs/libprojectm/libprojectm-2.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 10 22:08:12 2012 UTC (2 years, 1 month ago) by aballier
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

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.8 2012/05/31 15:13:47 jer Exp $
4
5 EAPI=4
6
7 inherit cmake-utils flag-o-matic eutils toolchain-funcs multilib
8
9 MY_P=${PN/m/M}-complete-${PV}-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}/src/libprojectM
30
31 PATCHES=(
32 "${FILESDIR}"/${P}-libsuffix.patch
33 "${FILESDIR}"/${P}-path.patch
34 )
35
36 src_configure() {
37 if use video_cards_nvidia; then
38 append-ldflags -L/opt/nvidia-cg-toolkit/lib
39 append-cppflags -I/opt/nvidia-cg-toolkit/include
40 fi
41
42 local 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
53 cmake-utils_src_configure
54 }

  ViewVC Help
Powered by ViewVC 1.1.20