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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Mar 3 08:50:30 2015 UTC (4 years, 10 months ago) by dlan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -3 lines
add arm64 support, tested on A53 board

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)

1 # Copyright 1999-2015 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.1.0-r1.ebuild,v 1.11 2014/05/24 01:33:28 mrueg Exp $
4
5 EAPI=5
6
7 inherit base 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 ~arm ~arm64 hppa ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
18 IUSE="debug openmp video_cards_nvidia"
19
20 RDEPEND="media-fonts/dejavu
21 >=media-libs/ftgl-2.1.3_rc5
22 media-libs/freetype:2
23 media-libs/mesa
24 media-libs/glew
25 sys-libs/zlib
26 video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )"
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig"
29
30 S=${WORKDIR}/${MY_P}/src/libprojectM
31
32 PATCHES=(
33 "${FILESDIR}"/${P}-multilib.patch
34 "${FILESDIR}"/${P}-path.patch
35 )
36
37 src_configure() {
38 if use video_cards_nvidia; then
39 append-ldflags -L/opt/nvidia-cg-toolkit/$(get_libdir)
40 append-ldflags -L/opt/nvidia-cg-toolkit/lib
41 append-cppflags -I/opt/nvidia-cg-toolkit/include
42 fi
43
44 local mycmakeargs=(
45 $(cmake-utils_use_use video_cards_nvidia CG)
46 "-DUSE_OPENMP=OFF"
47 "-DprojectM_FONT_MENU=${EPREFIX}/usr/share/fonts/dejavu/DejaVuSans.ttf"
48 "-DprojectM_FONT_TITLE=${EPREFIX}/usr/share/fonts/dejavu/DejaVuSansMono.ttf"
49 )
50
51 if use openmp && tc-has-openmp; then
52 mycmakeargs+=(
53 $(cmake-utils_use_use openmp)
54 )
55 fi
56
57 cmake-utils_src_configure
58 }

  ViewVC Help
Powered by ViewVC 1.1.20