1 |
commit: a70a70cb502c14c355ab40194ed7f238b5839191 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 03:18:30 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 03:18:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a70a70cb |
7 |
|
8 |
www-plugins/freshplayerplugin: Revision bump to include new adobe-flash slot |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
.../freshplayerplugin-0.3.5-r1.ebuild | 86 ++++++++++++++++++++++ |
13 |
1 file changed, 86 insertions(+) |
14 |
|
15 |
diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r1.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..29ef4d6 |
18 |
--- /dev/null |
19 |
+++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.5-r1.ebuild |
20 |
@@ -0,0 +1,86 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+CMAKE_MIN_VERSION="2.8.8" |
28 |
+ |
29 |
+inherit cmake-utils |
30 |
+ |
31 |
+LICENSE="MIT" |
32 |
+HOMEPAGE="https://github.com/i-rinat/freshplayerplugin" |
33 |
+DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers" |
34 |
+SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+SLOT=0 |
36 |
+IUSE="gles2 gtk3 jack libav libressl pulseaudio v4l vaapi vdpau" |
37 |
+ |
38 |
+KEYWORDS="~amd64" |
39 |
+ |
40 |
+HWDEC_DEPEND=" |
41 |
+ libav? ( media-video/libav:0=[vaapi?,vdpau?] ) |
42 |
+ !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?] ) |
43 |
+ x11-libs/libva |
44 |
+ x11-libs/libvdpau |
45 |
+" |
46 |
+ |
47 |
+COMMON_DEPEND=" |
48 |
+ dev-libs/glib:2= |
49 |
+ dev-libs/icu:0= |
50 |
+ dev-libs/libevent:=[threads] |
51 |
+ media-libs/alsa-lib:= |
52 |
+ media-libs/freetype:2= |
53 |
+ media-libs/mesa:=[egl,gles2?] |
54 |
+ x11-libs/cairo:=[X] |
55 |
+ x11-libs/libXcursor:= |
56 |
+ x11-libs/libXrandr:= |
57 |
+ x11-libs/libXrender:= |
58 |
+ x11-libs/libdrm:= |
59 |
+ x11-libs/pango:=[X] |
60 |
+ jack? ( |
61 |
+ media-sound/jack-audio-connection-kit |
62 |
+ media-libs/soxr |
63 |
+ ) |
64 |
+ pulseaudio? ( media-sound/pulseaudio ) |
65 |
+ !gtk3? ( x11-libs/gtk+:2= ) |
66 |
+ gtk3? ( x11-libs/gtk+:3= ) |
67 |
+ libressl? ( dev-libs/libressl:0= ) |
68 |
+ !libressl? ( dev-libs/openssl:0= ) |
69 |
+ v4l? ( media-libs/libv4l:0= ) |
70 |
+ vaapi? ( ${HWDEC_DEPEND} ) |
71 |
+ vdpau? ( ${HWDEC_DEPEND} ) |
72 |
+" |
73 |
+ |
74 |
+DEPEND="${COMMON_DEPEND} |
75 |
+ dev-util/ragel |
76 |
+ virtual/pkgconfig |
77 |
+ " |
78 |
+RDEPEND="${COMMON_DEPEND} |
79 |
+ || ( |
80 |
+ www-plugins/chrome-binary-plugins[flash] |
81 |
+ www-client/google-chrome |
82 |
+ www-client/google-chrome-beta |
83 |
+ www-client/google-chrome-unstable |
84 |
+ www-plugins/adobe-flash:22 |
85 |
+ ) |
86 |
+ " |
87 |
+ |
88 |
+PATCHES=( "${FILESDIR}/0.3.5-cmake.patch" "${FILESDIR}/0.3.4-git-revision.patch" ) |
89 |
+DOCS=( ChangeLog data/freshwrapper.conf.example README.md ) |
90 |
+ |
91 |
+src_configure() { |
92 |
+ mycmakeargs=( |
93 |
+ -DWITH_JACK=$(usex jack) |
94 |
+ -DWITH_PULSEAUDIO=$(usex pulseaudio) |
95 |
+ -DWITH_GTK=$(usex gtk3 3 2) |
96 |
+ -DWITH_GLES2=$(usex gles2) |
97 |
+ -DWITH_LIBV4L2=$(usex v4l) |
98 |
+ -DCMAKE_SKIP_RPATH=1 |
99 |
+ ) |
100 |
+ if use vaapi || use vdpau ; then |
101 |
+ mycmakeargs+=( -DWITH_HWDEC=1 ) |
102 |
+ else |
103 |
+ mycmakeargs+=( -DWITH_HWDEC=0 ) |
104 |
+ fi |
105 |
+ cmake-utils_src_configure |
106 |
+} |