Permalink
Browse files

revised file

  • Loading branch information...
1 parent 9945bbe commit 4b9dca326070b1ababc13fe96633b409e3249545 @yermandu committed Mar 11, 2012
Showing with 27 additions and 26 deletions.
  1. +27 −26 www-plugins/lightspark/lightspark-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
-inherit multilib cmake-utils git
+inherit multilib cmake-utils git-2
DESCRIPTION="High performance flash player designed from scratch to be efficient on modern hardware"
HOMEPAGE="https://launchpad.net/lightspark"
@@ -13,11 +13,11 @@ EGIT_REPO_URI="git://github.com/lightspark/lightspark.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
-IUSE="nsplugin alsa openal pulseaudio sdl debug"
+IUSE="alsa nsplugin openal pulseaudio sdl"
RDEPEND="dev-libs/libpcre[cxx]
media-fonts/liberation-fonts
- >=media-video/ffmpeg-9999
+ media-video/ffmpeg
media-libs/fontconfig
media-libs/ftgl
>=media-libs/glew-1.5.3
@@ -36,46 +36,45 @@ RDEPEND="dev-libs/libpcre[cxx]
)
net-misc/curl
>=sys-devel/gcc-4.4
- >=sys-devel/llvm-2.7
- virtual/opengl
+ >=sys-devel/llvm-2.8-r2
+ virtual/ffmpeg
+ virtual/opengl
nsplugin? (
dev-libs/nspr
net-libs/xulrunner
x11-libs/gtk+:2
x11-libs/gtkglext
)
- x11-libs/libX11"
-DEPEND="${RDEPEND}
- dev-lang/nasm
- dev-util/pkgconfig
+ x11-libs/libX11
dev-cpp/libxmlpp
dev-libs/libdbusmenu"
+DEPEND="${RDEPEND}
+ dev-lang/nasm
+ dev-util/pkgconfig"
+
src_configure() {
local mycmakeargs="$(cmake-utils_use nsplugin COMPILE_PLUGIN)
-DPLUGIN_DIRECTORY=/usr/$(get_libdir)/nsbrowser/plugins"
- # Default order: pulseaudio (oldest plugin), openal, alsa (not in git yet)
-# if use pulseaudio; then
-# local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=pulseaudio"
-# fi
-# if use openal; then
-# local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=openal"
-# fi
-# if use alsa; then
-# local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=alsa"
-# fi
- if use sdl; then
- local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=sdl"
+# Default order: pulseaudio, openal, alsa , sdl
+ if use pulseaudio; then
+ local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=pulseaudio"
+ else if use openal; then
+ local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=openal"
+ else if use alsa; then
+ local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=alsa"
+ else if use sdl; then
+ local mycmakeargs="${mycmakeargs} -DAUDIO_BACKEND=sdl"
+ fi
+ fi
+ fi
fi
if ! use alsa && ! use openal && ! use pulseaudio && ! use sdl; then
local mycmakeargs="${mycmakeargs}
-DAUDIO_BACKEND=none"
fi
- if use debug; then
- CMAKE_BUILD_TYPE=Debug
- fi
cmake-utils_src_configure
}
@@ -91,6 +90,8 @@ pkg_postinst() {
elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
fi
elog ""
- elog "Please edit and set your backend audio in file:"
+ elog "You can switch your backend audio in file:"
elog "/etc/xdg/lightspark.conf"
}
+
+# :wq

0 comments on commit 4b9dca3

Please sign in to comment.