diff options
Diffstat (limited to 'media-libs/libprojectm/libprojectm-2.1.0.ebuild')
-rw-r--r-- | media-libs/libprojectm/libprojectm-2.1.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-libs/libprojectm/libprojectm-2.1.0.ebuild b/media-libs/libprojectm/libprojectm-2.1.0.ebuild new file mode 100644 index 000000000000..907716fe86a6 --- /dev/null +++ b/media-libs/libprojectm/libprojectm-2.1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libprojectm/libprojectm-2.1.0.ebuild,v 1.1 2012/06/10 22:08:12 aballier Exp $ + +EAPI=4 + +inherit cmake-utils flag-o-matic eutils toolchain-funcs multilib + +MY_P=${PN/m/M}-complete-${PV}-Source ; MY_P=${MY_P/lib} + +DESCRIPTION="A graphical music visualization plugin similar to milkdrop" +HOMEPAGE="http://projectm.sourceforge.net" +SRC_URI="mirror://sourceforge/projectm/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="debug openmp video_cards_nvidia" + +RDEPEND=">=media-libs/ftgl-2.1.3_rc5 + media-libs/freetype:2 + media-libs/mesa + media-libs/glew + sys-libs/zlib + video_cards_nvidia? ( media-gfx/nvidia-cg-toolkit )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P}/src/libprojectM + +PATCHES=( + "${FILESDIR}"/${P}-libsuffix.patch + "${FILESDIR}"/${P}-path.patch +) + +src_configure() { + if use video_cards_nvidia; then + append-ldflags -L/opt/nvidia-cg-toolkit/lib + append-cppflags -I/opt/nvidia-cg-toolkit/include + fi + + local mycmakeargs=( + $(cmake-utils_use_use video_cards_nvidia CG) + "-DUSE_OPENMP=OFF" + ) + + if use openmp && tc-has-openmp; then + mycmakeargs+=( + $(cmake-utils_use_use openmp) + ) + fi + + cmake-utils_src_configure +} |