blob: bdc28125efe1402a11067ba0614341d66735e4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic qmake-utils toolchain-funcs
DESCRIPTION="Video effects library based on web technologies"
HOMEPAGE="https://github.com/mltframework/webvfx/"
SRC_URI="https://github.com/mltframework/${PN}/releases/download/${PV}/${P}.txz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
BDEPEND="
doc? ( app-doc/doxygen )
"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtgui:5
dev-qt/qtopengl:5
dev-qt/qtquickcontrols:5[widgets]
dev-qt/qtwebkit:5
dev-qt/qtwidgets:5
media-libs/mlt
virtual/opengl
"
DEPEND="${RDEPEND}
dev-qt/qtnetwork:5
"
src_prepare() {
default
find -name "*.pro" -exec \
sed -i -e "s/\(system.*\)pkg-config/\1$(tc-getPKG_CONFIG)/" {} + || die
sed -i -e "s/\(target.*path.*PREFIX.*\)lib/\1$(get_libdir)/" \
webvfx/webvfx.pro || die
sed -i -e "s/PROJECT_NUMBER=\`.*\`/PROJECT_NUMBER=${PV}/" \
all.pro || die
}
src_configure() {
append-cxxflags -Wno-deprecated-declarations
eqmake5 PREFIX="${EPREFIX}/usr"
}
src_compile() {
emake
use doc && emake doxydoc
}
src_install() {
emake INSTALL_ROOT="${D}" install
use doc && local HTML_DOCS=( doxydoc/. )
einstalldocs
}
|