summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-11-23 11:11:09 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-04-03 16:56:44 +0200
commit8555f014d0ed6d453e8d1f6f3553ff4169ddc77f (patch)
tree4acc512b9b9da5e01c81ffbb885f5234d9fe0afc /www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild
parentgames-emulation/mupen64plus-video-rice: rename USE=gles2 to USE=gles2-only (diff)
downloadgentoo-8555f014d0ed6d453e8d1f6f3553ff4169ddc77f.tar.gz
gentoo-8555f014d0ed6d453e8d1f6f3553ff4169ddc77f.tar.bz2
gentoo-8555f014d0ed6d453e8d1f6f3553ff4169ddc77f.zip
www-plugins/freshplayerplugin: rename USE=gles2 to USE=gles2-only
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild')
-rw-r--r--www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild
new file mode 100644
index 00000000000..488069f26f1
--- /dev/null
+++ b/www-plugins/freshplayerplugin/freshplayerplugin-0.3.9-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+LICENSE="MIT"
+HOMEPAGE="https://github.com/i-rinat/freshplayerplugin"
+DESCRIPTION="PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based browsers"
+SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SLOT=0
+IUSE="gles2-only jack libav libressl pulseaudio v4l vaapi vdpau"
+
+KEYWORDS="amd64"
+
+HWDEC_DEPEND="
+ libav? ( media-video/libav:0=[vaapi?,vdpau?] )
+ !libav? ( media-video/ffmpeg:0=[vaapi?,vdpau?] )
+ x11-libs/libvdpau
+"
+
+COMMON_DEPEND="
+ dev-libs/glib:2=
+ dev-libs/icu:0=
+ dev-libs/libevent:=[threads]
+ media-libs/alsa-lib:=
+ media-libs/freetype:2=
+ media-libs/mesa:=[egl]
+ gles2-only? ( media-libs/mesa[gles2] )
+ x11-libs/cairo:=[X]
+ x11-libs/libXcursor:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libdrm:=
+ x11-libs/libva:=
+ x11-libs/pango:=[X]
+ jack? (
+ media-sound/jack-audio-connection-kit
+ media-libs/soxr
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
+ v4l? ( media-libs/libv4l:0= )
+ vaapi? ( ${HWDEC_DEPEND} )
+ vdpau? ( ${HWDEC_DEPEND} )
+"
+
+DEPEND="${COMMON_DEPEND}
+ dev-util/ragel
+ virtual/pkgconfig
+ "
+RDEPEND="${COMMON_DEPEND}
+ www-plugins/adobe-flash:22[abi_x86_64,ppapi(+)]
+ "
+
+PATCHES=(
+ "${FILESDIR}/0.3.5-cmake.patch"
+ "${FILESDIR}/0.3.9-ioctl.patch"
+ "${FILESDIR}/${P}-ffmpeg-4.patch"
+)
+DOCS=( ChangeLog data/freshwrapper.conf.example README.md )
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_JACK=$(usex jack)
+ -DWITH_PULSEAUDIO=$(usex pulseaudio)
+ -DWITH_GLES2=$(usex gles2-only)
+ -DWITH_LIBV4L2=$(usex v4l)
+ -DCMAKE_SKIP_RPATH=1
+ )
+ if use vaapi || use vdpau ; then
+ mycmakeargs+=( -DWITH_HWDEC=1 )
+ else
+ mycmakeargs+=( -DWITH_HWDEC=0 )
+ fi
+ cmake-utils_src_configure
+}