/[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 - (hide 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 scarabeus 1.3 # Copyright 1999-2012 Gentoo Foundation
2 aballier 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.4 # $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 scarabeus 1.3
5     EAPI=4
6 aballier 1.1
7 ssuominen 1.2 inherit cmake-utils flag-o-matic eutils toolchain-funcs
8 aballier 1.1
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 ssuominen 1.2 IUSE="debug openmp video_cards_nvidia"
19 aballier 1.1
20     RDEPEND=">=media-libs/ftgl-2.1.3_rc5
21     media-libs/freetype:2
22     media-libs/mesa
23     media-libs/glew
24 ssuominen 1.2 sys-libs/zlib
25     video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
26 aballier 1.1 DEPEND="${RDEPEND}
27 jdhore 1.4 virtual/pkgconfig"
28 aballier 1.1
29     S=${WORKDIR}/${MY_P}
30    
31 scarabeus 1.3 PATCHES=(
32     "${FILESDIR}"/${P}-pcfix.patch
33     )
34 aballier 1.1
35     src_configure() {
36     append-ldflags $(no-as-needed)
37 ssuominen 1.2
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 scarabeus 1.3 local mycmakeargs=(
44 ssuominen 1.2 $(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 scarabeus 1.3 )
52 ssuominen 1.2 fi
53    
54 aballier 1.1 cmake-utils_src_configure
55     }

  ViewVC Help
Powered by ViewVC 1.1.20