/[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.2 - (show annotations) (download)
Thu Jul 29 22:11:16 2010 UTC (9 years, 7 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +24 -6 lines
Check for OpenMP functionality with tc-has-openmp wrt #302741 by Paul Tobias. Use VIDEO_CARDS="nvidia" for media-gfx/nvidia-cg-toolkit wrt #296808 by "jms".
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.1 2009/12/22 13:22:35 aballier Exp $
4
5 EAPI=2
6 inherit cmake-utils flag-o-matic eutils toolchain-funcs
7
8 MY_P=${P/m/M}-Source ; MY_P=${MY_P/lib}
9
10 DESCRIPTION="A graphical music visualization plugin similar to milkdrop"
11 HOMEPAGE="http://projectm.sourceforge.net"
12 SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz"
13
14 LICENSE="LGPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
17 IUSE="debug openmp video_cards_nvidia"
18
19 RDEPEND=">=media-libs/ftgl-2.1.3_rc5
20 media-libs/freetype:2
21 media-libs/mesa
22 media-libs/glew
23 sys-libs/zlib
24 video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig"
27
28 S=${WORKDIR}/${MY_P}
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${P}-pcfix.patch
32 }
33
34 src_configure() {
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
53 cmake-utils_src_configure
54 }

  ViewVC Help
Powered by ViewVC 1.1.20