7 |
7 |
|
8 |
8 |
DESCRIPTION="Full featured webcam capture application"
|
9 |
9 |
HOMEPAGE="https://webcamoid.github.io"
|
10 |
|
SRC_URI="https://github.com/webcamoid/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
10 |
if [[ ${PV} = 9999 ]]; then
|
|
11 |
EGIT_REPO_URI="https://github.com/webcamoid/webcamoid.git"
|
|
12 |
EGIT_BRANCH="master"
|
|
13 |
inherit git-r3
|
|
14 |
RESTRICT="mirror"
|
|
15 |
else
|
|
16 |
SRC_URI="https://github.com/webcamoid/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
17 |
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
18 |
fi
|
11 |
19 |
|
12 |
20 |
LICENSE="GPL-3"
|
13 |
21 |
SLOT="0"
|
14 |
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
15 |
|
IUSE="alsa coreaudio ffmpeg gstreamer jack libuvc oss pulseaudio qtaudio v4lutils videoeffects debug headers v4l"
|
|
22 |
IUSE="alsa ffmpeg gstreamer jack libuvc oss portaudio pulseaudio qtaudio qtcamera sdl v4lutils videoeffects debug headers v4l"
|
16 |
23 |
|
17 |
24 |
REQUIRED_USE="v4lutils? ( v4l )"
|
18 |
25 |
|
... | ... | |
33 |
40 |
libuvc? ( media-libs/libuvc )
|
34 |
41 |
pulseaudio? ( media-libs/libpulse )
|
35 |
42 |
qtaudio? ( dev-qt/qtmultimedia:5 )
|
|
43 |
qtcamera? ( dev-qt/qtmultimedia:5 )
|
|
44 |
sdl? ( media-libs/libsdl2 )
|
36 |
45 |
v4l? ( media-libs/libv4l )
|
37 |
46 |
"
|
38 |
47 |
DEPEND="${COMMON_DEPEND}
|
... | ... | |
43 |
52 |
"
|
44 |
53 |
|
45 |
54 |
src_configure() {
|
46 |
|
#Disable git in package source. If not disabled the cmake configure process will show a lot of "fatal not a git repository" errors
|
|
55 |
#Disable git in package source. If not disabled the cmake configure process will show
|
|
56 |
#a lot of "fatal not a git repository" errors
|
47 |
57 |
sed -i 's|find_program(GIT_BIN git)|#find_program(GIT_BIN git)|' libAvKys/cmake/ProjectCommons.cmake || die
|
48 |
58 |
|
49 |
59 |
local mycmakeargs=(
|
50 |
60 |
"-DNOMEDIAFOUNDATION=1"
|
51 |
|
"-DNOAVFOUNDATION=1"
|
52 |
61 |
"-DNODSHOW=1"
|
53 |
62 |
"-DNOWASAPI=1"
|
54 |
63 |
"-DNOVLC=1"
|
55 |
64 |
"-DNOPIPEWIRE=1"
|
|
65 |
"-DNOPORTAUDIO=1" # PortAudio not packaged for gentoo
|
56 |
66 |
"-DNOALSA=$(usex alsa 0 1)"
|
57 |
|
"-DNOCOREAUDIO=$(usex coreaudio 0 1)"
|
|
67 |
"-DNOQTCAMERA=$(usex qtcamera 0 1)"
|
58 |
68 |
"-DNOFFMPEG=$(usex ffmpeg 0 1)"
|
59 |
69 |
"-DNOGSTREAMER=$(usex gstreamer 0 1)"
|
60 |
70 |
"-DNOJACK=$(usex jack 0 1)"
|
61 |
71 |
"-DNOLIBUVC=$(usex libuvc 0 1)"
|
62 |
72 |
"-DNOPULSEAUDIO=$(usex pulseaudio 0 1)"
|
|
73 |
"-DNOSDL=$(usex sdl 0 1)"
|
63 |
74 |
"-DNOV4L2=$(usex v4l 0 1)"
|
64 |
75 |
"-DNOV4LUTILS=$(usex v4lutils 0 1)"
|
65 |
76 |
"-DNOVIDEOEFFECTS=$(usex videoeffects 0 1)"
|
... | ... | |
68 |
79 |
}
|
69 |
80 |
|
70 |
81 |
src_install() {
|
71 |
|
docompress -x /usr/share/man/${PN}.1.gz
|
|
82 |
docompress -x /usr/share/man/man1/${PN}.1.gz
|
72 |
83 |
cmake_src_install
|
73 |
84 |
}
|