* [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/
@ 2016-01-07 22:10 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2016-01-07 22:10 UTC (permalink / raw
To: gentoo-commits
commit: 2f3c69a446e35a0610e3a2e36faeeeb121fa93b9
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 7 16:07:37 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 7 22:09:41 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3c69a4
www-plugins/lightspark: Remove old vers requiring llvm-3.2
www-plugins/lightspark/Manifest | 2 -
.../files/lightspark-0.7.2-ffmpeg20.patch | 155 ---------------------
.../lightspark/files/lightspark-0.7.2-llvm33.patch | 103 --------------
www-plugins/lightspark/lightspark-0.7.1.ebuild | 108 --------------
www-plugins/lightspark/lightspark-0.7.2-r1.ebuild | 108 --------------
www-plugins/lightspark/lightspark-0.7.2.ebuild | 108 --------------
6 files changed, 584 deletions(-)
diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
index 5c946be..3d1aa9b 100644
--- a/www-plugins/lightspark/Manifest
+++ b/www-plugins/lightspark/Manifest
@@ -1,3 +1 @@
-DIST lightspark-0.7.1.tar.gz 920218 SHA256 a6f9ef13ddf3ebd700d4daaeeb4e9497889c18697aeca1ddcb30ac8cdc20e931 SHA512 a8c10782f144cf4b9a39d32ca4c78f441957550f790161671fa52fec686672f22ab977b41c55b5e33d1e65eaa28e78bf48e729ce01f51b56ef24d2d09e62eeae WHIRLPOOL 0842b113070cc679d8e960e558bf4d7562f6796f60b923fc4fe41f3e20f4cb86da0340d8f27543d86c2cf6aefaf1232990c9ef51bcdcb765dc89befee16823cc
-DIST lightspark-0.7.2.tar.gz 955952 SHA256 70479bac90f3455a5ff6d0aaf6bccaedfbaac3c70bd602680f68ce75eab2dd1b SHA512 90442d92b54bef18c20952aefd4dcd5cab446213cf9c186b340c9c8e0dd3ef28d034e888ca26f5b9ffe93d0cfd6e1a3c696fbd6f561aa21ff909d463abd27d29 WHIRLPOOL 9465424e2d8b46adb5aadc54239b6d58105703c519f5073ffbc3eb7a03dacca68cf64d57864de3c0aefd6d7cd4c3a88b0deb8417917980a8b60fa49397dc0631
DIST lightspark-0.7.2_p20150318.tar.gz 1039961 SHA256 92e4fa23e9760ebc73efd269a373c7e566eb1550ccf1c7cc7cff58b0d53d048a SHA512 2deb55a9ab7f00d0469b8fd5b053f43155d63c12f4b40bd40d6aa802501b5c7d4d3fe5d442f6ddb67eb1f592d48ccd1490b92e738359e78c162a39eb1605f9a5 WHIRLPOOL 72b471f193ffeba8e2078cad35917eac2d5c8d399cc18a177c1da0a88f85506025f28c86cb22a4dac6dd92feb0a32bc202c60cfe8ca334407f1d1fa6ba2f305f
diff --git a/www-plugins/lightspark/files/lightspark-0.7.2-ffmpeg20.patch b/www-plugins/lightspark/files/lightspark-0.7.2-ffmpeg20.patch
deleted file mode 100644
index c0a1f5f..0000000
--- a/www-plugins/lightspark/files/lightspark-0.7.2-ffmpeg20.patch
+++ /dev/null
@@ -1,155 +0,0 @@
-From fff7e63650c1569908bf80f11a123e051e993f31 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Ludger=20Kr=C3=A4mer?= <dbluelle@blau-weissoedingen.de>
-Date: Fri, 16 Aug 2013 20:30:28 +0200
-Subject: [PATCH] fix compilation with ffmpeg 2.0 avcodec_decode_audio4 seems
- not to deliver data in AV_SAMPLE_FMT_S16 format, so we have to use
- libavresample for resampling
-
----
- CMakeLists.txt | 2 +-
- conf/FindFFMpeg.cmake | 6 ++++-
- src/backends/decoder.cpp | 64 ++++++++++++++++++++++++++++++++++++++++++------
- src/backends/decoder.h | 8 ++++++
- 4 files changed, 70 insertions(+), 10 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 33dbb85..d3a964b 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -286,7 +286,7 @@ IF(AUDIO_BACKEND)
- ENDIF(AUDIO_BACKEND)
-
- IF(ENABLE_LIBAVCODEC)
-- pkg_check_modules(FFMPEG libavcodec libavutil libavformat)
-+ pkg_check_modules(FFMPEG libavcodec libavutil libavformat libavresample)
- IF(NOT(FFMPEG_FOUND))
- INCLUDE(FindFFMpeg REQUIRED)
- ENDIF(NOT(FFMPEG_FOUND))
-diff --git a/conf/FindFFMpeg.cmake b/conf/FindFFMpeg.cmake
-index 2b4dd98..8246c15 100644
---- a/conf/FindFFMpeg.cmake
-+++ b/conf/FindFFMpeg.cmake
-@@ -23,7 +23,11 @@ FIND_LIBRARY(FFMPEG_AVFORMAT_LIBRARY NAMES
- avformat
- )
-
--SET(FFMPEG_LIBRARY ${FFMPEG_AVCODEC_LIBRARY} ${FFMPEG_AVUTIL_LIBRARY} ${FFMPEG_AVFORMAT_LIBRARY})
-+FIND_LIBRARY(FFMPEG_AVRESAMPLE_LIBRARY NAMES
-+ avresample
-+)
-+
-+SET(FFMPEG_LIBRARY ${FFMPEG_AVCODEC_LIBRARY} ${FFMPEG_AVUTIL_LIBRARY} ${FFMPEG_AVFORMAT_LIBRARY} ${FFMPEG_AVRESAMPLE_LIBRARY})
- MARK_AS_ADVANCED(FFMPEG_LIBRARY)
-
- # handle the QUIETLY and REQUIRED arguments and set FFMPEG_FOUND to TRUE if
-diff --git a/src/backends/decoder.cpp b/src/backends/decoder.cpp
-index 22eac2e..4b3148c 100755
---- a/src/backends/decoder.cpp
-+++ b/src/backends/decoder.cpp
-@@ -295,6 +295,8 @@ bool FFMpegVideoDecoder::decodePacket(AVPacket* pkt, uint32_t time)
- #else
- int ret=avcodec_decode_video(codecContext, frameIn, &frameOk, pkt->data, pkt->size);
- #endif
-+ if (ret < 0)
-+ return false;
-
- assert_and_throw(ret==(int)pkt->size);
- if(frameOk)
-@@ -612,10 +614,33 @@ uint32_t FFMpegAudioDecoder::decodeData(uint8_t* data, int32_t datalen, uint32_t
- ret=-1;
- else
- {
-- //This is suboptimal but equivalent to what libavcodec
-- //does for the compatibility version of avcodec_decode_audio3
-- memcpy(curTail.samples, frameIn->extended_data[0], frameIn->linesize[0]);
-- maxLen=frameIn->linesize[0];
-+ if (frameIn->format != AV_SAMPLE_FMT_S16)
-+ {
-+ AVAudioResampleContext * avr = avresample_alloc_context();
-+ av_opt_set_int(avr, "in_channel_layout", frameIn->channel_layout, 0);
-+ av_opt_set_int(avr, "out_channel_layout", frameIn->channel_layout, 0);
-+ av_opt_set_int(avr, "in_sample_rate", frameIn->sample_rate, 0);
-+ av_opt_set_int(avr, "out_sample_rate", frameIn->sample_rate, 0);
-+ av_opt_set_int(avr, "in_sample_fmt", frameIn->format, 0);
-+ av_opt_set_int(avr, "out_sample_fmt", AV_SAMPLE_FMT_S16, 0);
-+ avresample_open(avr);
-+
-+ uint8_t *output;
-+ int out_linesize;
-+ int out_samples = avresample_available(avr) + av_rescale_rnd(avresample_get_delay(avr) + frameIn->linesize[0], frameIn->sample_rate, frameIn->sample_rate, AV_ROUND_UP);
-+ av_samples_alloc(&output, &out_linesize, frameIn->nb_samples, out_samples, AV_SAMPLE_FMT_S16, 0);
-+ maxLen = avresample_convert(avr, &output, out_linesize, out_samples, frameIn->extended_data, frameIn->linesize[0], frameIn->nb_samples)*4;
-+ memcpy(curTail.samples, output, maxLen);
-+ av_freep(&output);
-+ avresample_free(&avr);
-+ }
-+ else
-+ {
-+ //This is suboptimal but equivalent to what libavcodec
-+ //does for the compatibility version of avcodec_decode_audio3
-+ memcpy(curTail.samples, frameIn->extended_data[0], frameIn->linesize[0]);
-+ maxLen=frameIn->linesize[0];
-+ }
- }
- #else
- int32_t ret=avcodec_decode_audio3(codecContext, curTail.samples, &maxLen, &pkt);
-@@ -660,10 +685,33 @@ uint32_t FFMpegAudioDecoder::decodePacket(AVPacket* pkt, uint32_t time)
- ret=-1;
- else
- {
-- //This is suboptimal but equivalent to what libavcodec
-- //does for the compatibility version of avcodec_decode_audio3
-- memcpy(curTail.samples, frameIn->extended_data[0], frameIn->linesize[0]);
-- maxLen=frameIn->linesize[0];
-+ if (frameIn->format != AV_SAMPLE_FMT_S16)
-+ {
-+ AVAudioResampleContext * avr = avresample_alloc_context();
-+ av_opt_set_int(avr, "in_channel_layout", frameIn->channel_layout, 0);
-+ av_opt_set_int(avr, "out_channel_layout", frameIn->channel_layout, 0);
-+ av_opt_set_int(avr, "in_sample_rate", frameIn->sample_rate, 0);
-+ av_opt_set_int(avr, "out_sample_rate", frameIn->sample_rate, 0);
-+ av_opt_set_int(avr, "in_sample_fmt", frameIn->format, 0);
-+ av_opt_set_int(avr, "out_sample_fmt", AV_SAMPLE_FMT_S16, 0);
-+ avresample_open(avr);
-+
-+ uint8_t *output;
-+ int out_linesize;
-+ int out_samples = avresample_available(avr) + av_rescale_rnd(avresample_get_delay(avr) + frameIn->linesize[0], frameIn->sample_rate, frameIn->sample_rate, AV_ROUND_UP);
-+ av_samples_alloc(&output, &out_linesize, frameIn->nb_samples, out_samples, AV_SAMPLE_FMT_S16, 0);
-+ maxLen = avresample_convert(avr, &output, out_linesize, out_samples, frameIn->extended_data, frameIn->linesize[0], frameIn->nb_samples)*4;
-+ memcpy(curTail.samples, output, maxLen);
-+ av_freep(&output);
-+ avresample_free(&avr);
-+ }
-+ else
-+ {
-+ //This is suboptimal but equivalent to what libavcodec
-+ //does for the compatibility version of avcodec_decode_audio3
-+ memcpy(curTail.samples, frameIn->extended_data[0], frameIn->linesize[0]);
-+ maxLen=frameIn->linesize[0];
-+ }
- }
- #elif HAVE_AVCODEC_DECODE_AUDIO3
- int ret=avcodec_decode_audio3(codecContext, curTail.samples, &maxLen, pkt);
-diff --git a/src/backends/decoder.h b/src/backends/decoder.h
-index 93950ad..28bd232 100644
---- a/src/backends/decoder.h
-+++ b/src/backends/decoder.h
-@@ -28,6 +28,14 @@
- {
- #include <libavcodec/avcodec.h>
- #include <libavformat/avformat.h>
-+#include <libavresample/avresample.h>
-+#include <libavutil/opt.h>
-+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
-+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
-+#endif
-+#ifndef CodecID
-+#define CodecID AVCodecID
-+#endif
- #define MAX_AUDIO_FRAME_SIZE AVCODEC_MAX_AUDIO_FRAME_SIZE
- }
- #else
---
-1.8.4
-
diff --git a/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch b/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch
deleted file mode 100644
index 2e45233..0000000
--- a/www-plugins/lightspark/files/lightspark-0.7.2-llvm33.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-diff -up lightspark-0.7.2/conf/FindLLVM.cmake.llvm33 lightspark-0.7.2/conf/FindLLVM.cmake
---- lightspark-0.7.2/conf/FindLLVM.cmake.llvm33 2013-03-16 12:19:18.000000000 +0100
-+++ lightspark-0.7.2/conf/FindLLVM.cmake 2013-05-11 11:57:36.455450049 +0200
-@@ -168,11 +168,16 @@ else (LLVM_INCLUDE_DIR)
-
- set(CMAKE_REQUIRED_INCLUDES ${LLVM_INCLUDE_DIR})
- check_include_file_cxx("llvm/DataLayout.h" HAVE_DATALAYOUT_H)
-+ check_include_file_cxx("llvm/IR/DataLayout.h" HAVE_IR_DATALAYOUT_H)
- unset(CMAKE_REQUIRED_INCLUDES)
- MESSAGE(STATUS "HAVE_DATALAYOUT_H: " ${HAVE_DATALAYOUT_H})
-+ MESSAGE(STATUS "HAVE_IR_DATALAYOUT_H: " ${HAVE_IR_DATALAYOUT_H})
- IF(HAVE_DATALAYOUT_H)
- ADD_DEFINITIONS(-DHAVE_DATALAYOUT_H)
- ENDIF(HAVE_DATALAYOUT_H)
-+ IF(HAVE_IR_DATALAYOUT_H)
-+ ADD_DEFINITIONS(-DHAVE_IR_DATALAYOUT_H)
-+ ENDIF(HAVE_IR_DATALAYOUT_H)
-
- exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cxxflags OUTPUT_VARIABLE LLVM_COMPILE_FLAGS )
- MESSAGE(STATUS "LLVM CXX flags: " ${LLVM_COMPILE_FLAGS})
-diff -up lightspark-0.7.2/src/scripting/abc.cpp.llvm33 lightspark-0.7.2/src/scripting/abc.cpp
---- lightspark-0.7.2/src/scripting/abc.cpp.llvm33 2013-03-16 12:19:18.000000000 +0100
-+++ lightspark-0.7.2/src/scripting/abc.cpp 2013-05-11 11:57:36.451450048 +0200
-@@ -23,12 +23,19 @@
-
- #include "compat.h"
-
--#include <llvm/Module.h>
- #include <llvm/ExecutionEngine/ExecutionEngine.h>
- #include <llvm/ExecutionEngine/JIT.h>
- #include <llvm/PassManager.h>
--#include <llvm/LLVMContext.h>
--#ifdef HAVE_DATALAYOUT_H
-+#ifdef HAVE_IR_DATALAYOUT_H
-+# include <llvm/IR/Module.h>
-+# include <llvm/IR/LLVMContext.h>
-+#else
-+# include <llvm/Module.h>
-+# include <llvm/LLVMContext.h>
-+#endif
-+#ifdef HAVE_IR_DATALAYOUT_H
-+# include <llvm/IR/DataLayout.h>
-+#elif defined HAVE_DATALAYOUT_H
- # include <llvm/DataLayout.h>
- #else
- # include <llvm/Target/TargetData.h>
-@@ -1489,7 +1496,7 @@ void ABCVm::Run(ABCVm* th)
- assert_and_throw(th->ex);
-
- th->FPM=new llvm::FunctionPassManager(th->module);
--#ifdef HAVE_DATALAYOUT_H
-+#if defined HAVE_DATALAYOUT_H || defined HAVE_IR_DATALAYOUT_H
- th->FPM->add(new llvm::DataLayout(*th->ex->getDataLayout()));
- #else
- th->FPM->add(new llvm::TargetData(*th->ex->getTargetData()));
-diff -up lightspark-0.7.2/src/scripting/abc_codesynt.cpp.llvm33 lightspark-0.7.2/src/scripting/abc_codesynt.cpp
---- lightspark-0.7.2/src/scripting/abc_codesynt.cpp.llvm33 2013-03-16 12:19:18.000000000 +0100
-+++ lightspark-0.7.2/src/scripting/abc_codesynt.cpp 2013-05-11 11:59:23.066458300 +0200
-@@ -25,18 +25,29 @@
- #endif
-
- #include "compat.h"
--#include <llvm/Module.h>
--#include <llvm/DerivedTypes.h>
- #include <llvm/ExecutionEngine/ExecutionEngine.h>
- #include <llvm/PassManager.h>
--#include <llvm/Constants.h>
--#ifdef HAVE_IRBUILDER_H
-+#ifdef HAVE_IR_DATALAYOUT_H
-+# include <llvm/IR/Constants.h>
-+# include <llvm/IR/DerivedTypes.h>
-+# include <llvm/IR/Module.h>
-+# include <llvm/IR/LLVMContext.h>
-+#else
-+# include <llvm/Constants.h>
-+# include <llvm/DerivedTypes.h>
-+# include <llvm/Module.h>
-+# include <llvm/LLVMContext.h>
-+#endif
-+#ifdef HAVE_IR_DATALAYOUT_H
-+# include <llvm/IR/IRBuilder.h>
-+#elif defined HAVE_IRBUILDER_H
- # include <llvm/IRBuilder.h>
- #else
- # include <llvm/Support/IRBuilder.h>
- #endif
--#include <llvm/LLVMContext.h>
--#ifdef HAVE_DATALAYOUT_H
-+#ifdef HAVE_IR_DATALAYOUT_H
-+# include <llvm/IR/DataLayout.h>
-+#elif defined HAVE_DATALAYOUT_H
- # include <llvm/DataLayout.h>
- #else
- # include <llvm/Target/TargetData.h>
-@@ -279,7 +290,7 @@ void ABCVm::registerFunctions()
- llvm::FunctionType* FT=NULL;
-
- //Create types
--#ifdef HAVE_DATALAYOUT_H
-+#if defined HAVE_DATALAYOUT_H || defined HAVE_IR_DATALAYOUT_H
- ptr_type=ex->getDataLayout()->getIntPtrType(llvm_context());
- #else
- ptr_type=ex->getTargetData()->getIntPtrType(llvm_context());
diff --git a/www-plugins/lightspark/lightspark-0.7.1.ebuild b/www-plugins/lightspark/lightspark-0.7.1.ebuild
deleted file mode 100644
index a43d6ca..0000000
--- a/www-plugins/lightspark/lightspark-0.7.1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit cmake-utils nsplugins multilib toolchain-funcs
-
-DESCRIPTION="High performance flash player"
-HOMEPAGE="http://lightspark.sourceforge.net/"
-SRC_URI="https://launchpad.net/${PN}/trunk/${P}/+download/${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="curl ffmpeg gles nsplugin profile pulseaudio rtmp sdl"
-
-RDEPEND=">=dev-cpp/libxmlpp-2.33.1:2.6
- >=dev-libs/boost-1.42
- dev-libs/libpcre[cxx]
- media-fonts/liberation-fonts
- media-libs/libpng
- media-libs/libsdl
- >=sys-devel/gcc-4.6.0[cxx]
- >=sys-devel/llvm-3
- <sys-devel/llvm-3.3
- x11-libs/cairo
- x11-libs/gtk+:2
- x11-libs/libX11
- x11-libs/pango
- curl? (
- net-misc/curl
- )
- ffmpeg? (
- virtual/ffmpeg
- )
- !gles? (
- >=media-libs/glew-1.5.3
- virtual/opengl
- )
- gles? (
- media-libs/mesa[gles2]
- )
- pulseaudio? (
- media-sound/pulseaudio
- )
- rtmp? (
- media-video/rtmpdump
- )
- virtual/jpeg"
-DEPEND="${RDEPEND}
- amd64? ( dev-lang/nasm )
- x86? ( dev-lang/nasm )
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc*/}
-
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.6.0"
- die "You need at least sys-devel/gcc-4.6.0"
- fi
- fi
-}
-
-src_configure() {
- local audiobackends
- use pulseaudio && audiobackends+="pulse"
- use sdl && audiobackends+="sdl"
-
- local mycmakeargs=(
- $(cmake-utils_use curl ENABLE_CURL)
- $(cmake-utils_use gles ENABLE_GLES2)
- $(cmake-utils_use ffmpeg ENABLE_LIBAVCODEC)
- $(cmake-utils_use nsplugin COMPILE_PLUGIN)
- $(cmake-utils_use profile ENABLE_MEMORY_USAGE_PROFILING)
- $(cmake-utils_use profile ENABLE_PROFILING)
- $(cmake-utils_use rtmp ENABLE_RTMP)
- -DAUDIO_BACKEND="${audiobackends}"
- -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
-
- # default to sdl audio if pulseaudio plugin is not built, bug #406197
- if use sdl && ! use pulseaudio; then
- sed -i 's/backend = pulseaudio/backend = sdl/' "${ED}/etc/xdg/${PN}.conf" || die
- fi
-}
-
-pkg_postinst() {
- if use nsplugin && ! has_version www-plugins/gnash; then
- elog "Lightspark now supports gnash fallback for its browser plugin."
- elog "Install www-plugins/gnash to take advantage of it."
- fi
- if use nsplugin && has_version www-plugins/gnash[nsplugin]; then
- elog "Having two plugins installed for the same MIME type may confuse"
- elog "Mozilla based browsers. It is recommended to disable the nsplugin"
- elog "USE flag for either gnash or lightspark. For details, see"
- elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
- fi
-}
diff --git a/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild b/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild
deleted file mode 100644
index c107a97..0000000
--- a/www-plugins/lightspark/lightspark-0.7.2-r1.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit cmake-utils nsplugins multilib toolchain-funcs
-
-DESCRIPTION="High performance flash player"
-HOMEPAGE="http://lightspark.sourceforge.net/"
-SRC_URI="https://launchpad.net/${PN}/trunk/${P}/+download/${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="curl ffmpeg gles nsplugin profile pulseaudio rtmp sdl"
-
-RDEPEND=">=dev-cpp/libxmlpp-2.33.1:2.6
- >=dev-libs/boost-1.42
- dev-libs/libpcre[cxx]
- media-fonts/liberation-fonts
- media-libs/libpng
- media-libs/libsdl
- >=sys-devel/gcc-4.6.0[cxx]
- (
- <sys-devel/llvm-3.4
- >=sys-devel/llvm-3
- )
- x11-libs/cairo
- x11-libs/gtk+:2
- x11-libs/libX11
- x11-libs/pango
- curl? (
- net-misc/curl
- )
- ffmpeg? (
- virtual/ffmpeg
- )
- !gles? (
- >=media-libs/glew-1.5.3
- virtual/opengl
- )
- gles? (
- media-libs/mesa[gles2]
- )
- pulseaudio? (
- media-sound/pulseaudio
- )
- rtmp? (
- media-video/rtmpdump
- )
- virtual/jpeg"
-DEPEND="${RDEPEND}
- amd64? ( dev-lang/nasm )
- x86? ( dev-lang/nasm )
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc*/}
-
-PATCHES=(
- "${FILESDIR}/${P}-llvm33.patch"
- "${FILESDIR}/${P}-ffmpeg20.patch"
-)
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.6.0"
- die "You need at least sys-devel/gcc-4.6.0"
- fi
- fi
-}
-
-src_configure() {
- local audiobackends
- use pulseaudio && audiobackends+="pulse"
- use sdl && audiobackends+="sdl"
-
- local mycmakeargs=(
- $(cmake-utils_use curl ENABLE_CURL)
- $(cmake-utils_use gles ENABLE_GLES2)
- $(cmake-utils_use ffmpeg ENABLE_LIBAVCODEC)
- $(cmake-utils_use nsplugin COMPILE_PLUGIN)
- $(cmake-utils_use profile ENABLE_MEMORY_USAGE_PROFILING)
- $(cmake-utils_use profile ENABLE_PROFILING)
- $(cmake-utils_use rtmp ENABLE_RTMP)
- -DAUDIO_BACKEND="${audiobackends}"
- -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
-
- # default to sdl audio if pulseaudio plugin is not built, bug #406197
- if use sdl && ! use pulseaudio; then
- sed -i 's/backend = pulseaudio/backend = sdl/' "${ED}/etc/xdg/${PN}.conf" || die
- fi
-}
-
-pkg_postinst() {
- if use nsplugin && ! has_version www-plugins/gnash; then
- elog "Lightspark now supports gnash fallback for its browser plugin."
- elog "Install www-plugins/gnash to take advantage of it."
- fi
-}
diff --git a/www-plugins/lightspark/lightspark-0.7.2.ebuild b/www-plugins/lightspark/lightspark-0.7.2.ebuild
deleted file mode 100644
index a43d6ca..0000000
--- a/www-plugins/lightspark/lightspark-0.7.2.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-inherit cmake-utils nsplugins multilib toolchain-funcs
-
-DESCRIPTION="High performance flash player"
-HOMEPAGE="http://lightspark.sourceforge.net/"
-SRC_URI="https://launchpad.net/${PN}/trunk/${P}/+download/${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="curl ffmpeg gles nsplugin profile pulseaudio rtmp sdl"
-
-RDEPEND=">=dev-cpp/libxmlpp-2.33.1:2.6
- >=dev-libs/boost-1.42
- dev-libs/libpcre[cxx]
- media-fonts/liberation-fonts
- media-libs/libpng
- media-libs/libsdl
- >=sys-devel/gcc-4.6.0[cxx]
- >=sys-devel/llvm-3
- <sys-devel/llvm-3.3
- x11-libs/cairo
- x11-libs/gtk+:2
- x11-libs/libX11
- x11-libs/pango
- curl? (
- net-misc/curl
- )
- ffmpeg? (
- virtual/ffmpeg
- )
- !gles? (
- >=media-libs/glew-1.5.3
- virtual/opengl
- )
- gles? (
- media-libs/mesa[gles2]
- )
- pulseaudio? (
- media-sound/pulseaudio
- )
- rtmp? (
- media-video/rtmpdump
- )
- virtual/jpeg"
-DEPEND="${RDEPEND}
- amd64? ( dev-lang/nasm )
- x86? ( dev-lang/nasm )
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc*/}
-
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.6.0"
- die "You need at least sys-devel/gcc-4.6.0"
- fi
- fi
-}
-
-src_configure() {
- local audiobackends
- use pulseaudio && audiobackends+="pulse"
- use sdl && audiobackends+="sdl"
-
- local mycmakeargs=(
- $(cmake-utils_use curl ENABLE_CURL)
- $(cmake-utils_use gles ENABLE_GLES2)
- $(cmake-utils_use ffmpeg ENABLE_LIBAVCODEC)
- $(cmake-utils_use nsplugin COMPILE_PLUGIN)
- $(cmake-utils_use profile ENABLE_MEMORY_USAGE_PROFILING)
- $(cmake-utils_use profile ENABLE_PROFILING)
- $(cmake-utils_use rtmp ENABLE_RTMP)
- -DAUDIO_BACKEND="${audiobackends}"
- -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
-
- # default to sdl audio if pulseaudio plugin is not built, bug #406197
- if use sdl && ! use pulseaudio; then
- sed -i 's/backend = pulseaudio/backend = sdl/' "${ED}/etc/xdg/${PN}.conf" || die
- fi
-}
-
-pkg_postinst() {
- if use nsplugin && ! has_version www-plugins/gnash; then
- elog "Lightspark now supports gnash fallback for its browser plugin."
- elog "Install www-plugins/gnash to take advantage of it."
- fi
- if use nsplugin && has_version www-plugins/gnash[nsplugin]; then
- elog "Having two plugins installed for the same MIME type may confuse"
- elog "Mozilla based browsers. It is recommended to disable the nsplugin"
- elog "USE flag for either gnash or lightspark. For details, see"
- elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
- fi
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/
@ 2017-07-20 8:46 Chí-Thanh Christopher Nguyễn
0 siblings, 0 replies; 3+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2017-07-20 8:46 UTC (permalink / raw
To: gentoo-commits
commit: aa2763887266bfe7e5dfe447f8833050d2745a27
Author: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 08:45:37 2017 +0000
Commit: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 08:45:37 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa276388
www-plugins/lightspark: add upstream patch to fix ffmpeg-free build
Bug: https://bugs.gentoo.org/show_bug.cgi?id=607492
Package-Manager: Portage-2.3.6, Repoman-2.3.1
.../files/lightspark-0.8.0-ffmpeg-free.patch | 31 ++++++++++++++++++++++
www-plugins/lightspark/lightspark-0.8.0.ebuild | 2 ++
2 files changed, 33 insertions(+)
diff --git a/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
new file mode 100644
index 00000000000..76566e6be79
--- /dev/null
+++ b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
@@ -0,0 +1,31 @@
+From 22a85a13a5c3ded942ef59522ad399eb5d9a58d9 Mon Sep 17 00:00:00 2001
+From: Mikhail Vorobyov <vorobyov.mikhail@gmail.com>
+Date: Tue, 18 Jul 2017 23:46:37 +0300
+Subject: [PATCH] Add NullVideoDecoder::switchCodec
+
+Add VideoDecoder::switchCodec implementation to NullVideoDecoder to fix
+ffmpeg-free build.
+---
+ src/backends/decoder.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/backends/decoder.h b/src/backends/decoder.h
+index 069543d0..f53288bd 100644
+--- a/src/backends/decoder.h
++++ b/src/backends/decoder.h
+@@ -140,6 +140,7 @@ class NullVideoDecoder: public VideoDecoder
+ public:
+ NullVideoDecoder() {status=VALID;}
+ ~NullVideoDecoder() { while(fenceCount); }
++ void switchCodec(LS_VIDEO_CODEC codecId, uint8_t* initdata, uint32_t datalen, double frameRateHint){};
+ bool decodeData(uint8_t* data, uint32_t datalen, uint32_t time){return false;}
+ bool discardFrame(){return false;}
+ void skipUntil(uint32_t time){}
+@@ -305,6 +306,7 @@ class NullAudioDecoder: public AudioDecoder
+ sampleRate=44100;
+ channelCount=2;
+ }
++ void switchCodec(LS_AUDIO_CODEC codecId, uint8_t* initdata, uint32_t datalen){};
+ uint32_t decodeData(uint8_t* data, int32_t datalen, uint32_t time){return 0;}
+ };
+
diff --git a/www-plugins/lightspark/lightspark-0.8.0.ebuild b/www-plugins/lightspark/lightspark-0.8.0.ebuild
index d67d565b6b3..1a71cb2ec2d 100644
--- a/www-plugins/lightspark/lightspark-0.8.0.ebuild
+++ b/www-plugins/lightspark/lightspark-0.8.0.ebuild
@@ -51,6 +51,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${P/_rc*/}
+PATCHES=( "${FILESDIR}"/${P}-ffmpeg-free.patch )
+
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/
@ 2018-04-11 16:19 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2018-04-11 16:19 UTC (permalink / raw
To: gentoo-commits
commit: 8d5b3a8f09ac1ef68121a7b126f6c89b29bacdeb
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 5 18:52:27 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 11 16:19:45 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d5b3a8f
www-plugins/lightspark: Drop old (requiring LLVM < 4)
www-plugins/lightspark/Manifest | 2 -
.../files/lightspark-0.8.0-ffmpeg-free.patch | 31 -------
.../lightspark/lightspark-0.7.2_p20160107.ebuild | 102 --------------------
www-plugins/lightspark/lightspark-0.8.0.ebuild | 103 ---------------------
4 files changed, 238 deletions(-)
diff --git a/www-plugins/lightspark/Manifest b/www-plugins/lightspark/Manifest
index d4255c1bae1..579cbb8a401 100644
--- a/www-plugins/lightspark/Manifest
+++ b/www-plugins/lightspark/Manifest
@@ -1,3 +1 @@
-DIST lightspark-0.7.2_p20160107.tar.gz 1803064 BLAKE2B 95b7522ed5e8c757e6b6de7251dbdd862a3094fd2779d9c49e049ef3518b65ef9747be304e1a6ce2ff1ca8f5ccbfc98516f9d614666c4a37c0fe147d18fcba2d SHA512 937352c8d428579a9ac89a45724db2beb624eba874da59d684e07d9d306305d85937f4b2e692c56750a1b5e6ca485e05d9997409d3bc934fab209124cd471601
-DIST lightspark-0.8.0.tar.gz 1830071 BLAKE2B 5fe10d3795cdaedc88ffbc6479957c863440b8400fb4d90bc06a302730343c95e24898e115e4c59f0962cce952ccd51c0a21141091cc0e57cfb6635c1c868619 SHA512 333de501caf5f5ed9c8581cfda5bf1e6e04170c90f1c2f6150c9c2343f9de20e140a041d066f693e406d24fa24e7a5c3464675a583f4a5c104f5214ebee072b9
DIST lightspark-f6ed8284810ad91c277ed5d0835b215e7329450e.tar.gz 1880249 BLAKE2B 031dc48f40956fcfb5a8b0fd825da8a2a0dba6daa4646296a385d5f90f13027d44cbb09562f6bf57b8d5d415a278fa06974624aee42e14b75892c36798dceda0 SHA512 a75ebf5e666daec0f244285bfd1029feb6fcfa2aeba800f175bb07bc148d39e76435d77868c964b2e149019b763498990bf0db25ba632cf21b91ad0958412332
diff --git a/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
deleted file mode 100644
index 76566e6be79..00000000000
--- a/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 22a85a13a5c3ded942ef59522ad399eb5d9a58d9 Mon Sep 17 00:00:00 2001
-From: Mikhail Vorobyov <vorobyov.mikhail@gmail.com>
-Date: Tue, 18 Jul 2017 23:46:37 +0300
-Subject: [PATCH] Add NullVideoDecoder::switchCodec
-
-Add VideoDecoder::switchCodec implementation to NullVideoDecoder to fix
-ffmpeg-free build.
----
- src/backends/decoder.h | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/backends/decoder.h b/src/backends/decoder.h
-index 069543d0..f53288bd 100644
---- a/src/backends/decoder.h
-+++ b/src/backends/decoder.h
-@@ -140,6 +140,7 @@ class NullVideoDecoder: public VideoDecoder
- public:
- NullVideoDecoder() {status=VALID;}
- ~NullVideoDecoder() { while(fenceCount); }
-+ void switchCodec(LS_VIDEO_CODEC codecId, uint8_t* initdata, uint32_t datalen, double frameRateHint){};
- bool decodeData(uint8_t* data, uint32_t datalen, uint32_t time){return false;}
- bool discardFrame(){return false;}
- void skipUntil(uint32_t time){}
-@@ -305,6 +306,7 @@ class NullAudioDecoder: public AudioDecoder
- sampleRate=44100;
- channelCount=2;
- }
-+ void switchCodec(LS_AUDIO_CODEC codecId, uint8_t* initdata, uint32_t datalen){};
- uint32_t decodeData(uint8_t* data, int32_t datalen, uint32_t time){return 0;}
- };
-
diff --git a/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild b/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild
deleted file mode 100644
index 9e297057383..00000000000
--- a/www-plugins/lightspark/lightspark-0.7.2_p20160107.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit cmake-utils nsplugins vcs-snapshot toolchain-funcs
-
-DESCRIPTION="High performance flash player"
-HOMEPAGE="http://lightspark.github.io/"
-SRC_URI="https://github.com/lightspark/lightspark/archive/308241eb55c5379765033e60f28dfdd956c7abcd.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp"
-
-# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work:
-# https://gitlab.kitware.com/cmake/cmake/issues/16606
-RDEPEND="app-arch/xz-utils:0=
- dev-cpp/glibmm:2=
- >=dev-libs/boost-1.42:0=
- dev-libs/glib:2=
- dev-libs/libpcre:3=[cxx]
- media-fonts/liberation-fonts
- media-libs/freetype:2=
- media-libs/libpng:0=
- media-libs/libsdl2:0=
- media-libs/sdl2-mixer:0=
- >=sys-devel/gcc-4.6.0:*[cxx]
- <sys-devel/llvm-4:0=
- >=sys-devel/llvm-3.4:0=
- sys-libs/zlib:0=
- x11-libs/cairo:0=
- x11-libs/gtk+:2=
- x11-libs/libX11:0=
- x11-libs/pango:0=
- virtual/jpeg:0=
- curl? ( net-misc/curl:0= )
- ffmpeg? (
- libav? ( media-video/libav:0= )
- !libav? ( media-video/ffmpeg:0= )
- )
- gles? ( media-libs/mesa:0=[gles2] )
- !gles? (
- >=media-libs/glew-1.5.3:0=
- virtual/opengl:0=
- )
- rtmp? ( media-video/rtmpdump:0= )"
-DEPEND="${RDEPEND}
- amd64? ( dev-lang/nasm )
- x86? ( dev-lang/nasm )
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc*/}
-
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.6.0"
- die "You need at least sys-devel/gcc-4.6.0"
- fi
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- -DENABLE_CURL=$(usex curl)
- -DENABLE_GLES2=$(usex gles)
- -DENABLE_LIBAVCODEC=$(usex ffmpeg)
- -DENABLE_RTMP=$(usex rtmp)
-
- -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile)
- -DENABLE_PROFILING=$(usex profile)
- -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
-
- -DCOMPILE_PLUGIN=$(usex nsplugin)
- -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
- # TODO: install /etc/chromium file? block adobe-flash?
- -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi)
- -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN}
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
-}
-
-pkg_postinst() {
- if use nsplugin && ! has_version www-plugins/gnash; then
- elog "Lightspark now supports gnash fallback for its browser plugin."
- elog "Install www-plugins/gnash to take advantage of it."
- fi
- if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then
- elog "Having two plugins installed for the same MIME type may confuse"
- elog "Mozilla based browsers. It is recommended to disable the nsplugin"
- elog "USE flag for either gnash or lightspark. For details, see"
- elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
- fi
-}
diff --git a/www-plugins/lightspark/lightspark-0.8.0.ebuild b/www-plugins/lightspark/lightspark-0.8.0.ebuild
deleted file mode 100644
index 1a71cb2ec2d..00000000000
--- a/www-plugins/lightspark/lightspark-0.8.0.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit cmake-utils nsplugins vcs-snapshot toolchain-funcs
-
-DESCRIPTION="High performance flash player"
-HOMEPAGE="http://lightspark.github.io/"
-SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cpu_flags_x86_sse2 curl ffmpeg gles libav nsplugin ppapi profile rtmp"
-
-# Note: code-wise llvm-4.0 is fine but due to CMake bug it can't work:
-# https://gitlab.kitware.com/cmake/cmake/issues/16606
-RDEPEND="app-arch/xz-utils:0=
- dev-cpp/glibmm:2=
- >=dev-libs/boost-1.42:0=
- dev-libs/glib:2=
- dev-libs/libpcre:3=[cxx]
- media-fonts/liberation-fonts
- media-libs/freetype:2=
- media-libs/libpng:0=
- media-libs/libsdl2:0=
- media-libs/sdl2-mixer:0=
- >=sys-devel/gcc-4.6.0:*[cxx]
- >=sys-devel/llvm-3.4:0=
- sys-libs/zlib:0=
- x11-libs/cairo:0=
- x11-libs/gtk+:2=
- x11-libs/libX11:0=
- x11-libs/pango:0=
- virtual/jpeg:0=
- curl? ( net-misc/curl:0= )
- ffmpeg? (
- libav? ( media-video/libav:0= )
- !libav? ( media-video/ffmpeg:0= )
- )
- gles? ( media-libs/mesa:0=[gles2] )
- !gles? (
- >=media-libs/glew-1.5.3:0=
- virtual/opengl:0=
- )
- rtmp? ( media-video/rtmpdump:0= )"
-DEPEND="${RDEPEND}
- amd64? ( dev-lang/nasm )
- x86? ( dev-lang/nasm )
- virtual/pkgconfig"
-
-S=${WORKDIR}/${P/_rc*/}
-
-PATCHES=( "${FILESDIR}"/${P}-ffmpeg-free.patch )
-
-pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.6.0"
- die "You need at least sys-devel/gcc-4.6.0"
- fi
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
- -DENABLE_CURL=$(usex curl)
- -DENABLE_GLES2=$(usex gles)
- -DENABLE_LIBAVCODEC=$(usex ffmpeg)
- -DENABLE_RTMP=$(usex rtmp)
-
- -DENABLE_MEMORY_USAGE_PROFILING=$(usex profile)
- -DENABLE_PROFILING=$(usex profile)
- -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
-
- -DCOMPILE_NPAPI_PLUGIN=$(usex nsplugin)
- -DPLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/${PN}/plugins
- # TODO: install /etc/chromium file? block adobe-flash?
- -DCOMPILE_PPAPI_PLUGIN=$(usex ppapi)
- -DPPAPI_PLUGIN_DIRECTORY="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/${PN}
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- use nsplugin && inst_plugin /usr/$(get_libdir)/${PN}/plugins/liblightsparkplugin.so
-}
-
-pkg_postinst() {
- if use nsplugin && ! has_version www-plugins/gnash; then
- elog "Lightspark now supports gnash fallback for its browser plugin."
- elog "Install www-plugins/gnash to take advantage of it."
- fi
- if use nsplugin && has_version "www-plugins/gnash[nsplugin]"; then
- elog "Having two plugins installed for the same MIME type may confuse"
- elog "Mozilla based browsers. It is recommended to disable the nsplugin"
- elog "USE flag for either gnash or lightspark. For details, see"
- elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
- fi
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-11 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-11 16:19 [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2017-07-20 8:46 Chí-Thanh Christopher Nguyễn
2016-01-07 22:10 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox