summaryrefslogtreecommitdiff
path: root/media-video/xjadeo/xjadeo-0.8.14.ebuild
blob: 415a5aa2ca015b9c37df375c6eb2c83d8990c266 (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
# Copyright 2021-2025 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit autotools

DESCRIPTION="a simple video player that is synchronized to jack transport."
HOMEPAGE="https://xjadeo.sourceforge.net/"
SRC_URI="https://github.com/x42/xjadeo/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="alsa imlib osc osd sdl tools xv"

RDEPEND="virtual/jack
	media-video/ffmpeg:=
	alsa? ( >=media-libs/alsa-lib-1.0.10 )
	imlib? ( >=media-libs/imlib2-1.3.0 )
	osc? ( media-libs/liblo )
	sdl? ( >=media-libs/libsdl-1.2.8 )"

DEPEND="${RDPEND}
	>=sys-libs/zlib-1.2.2
	x11-misc/xcb
	virtual/pkgconfig"

DOCS=( AUTHORS ChangeLog README NEWS )

src_prepare() {
	eautoreconf
	default
}

PATCHES=( $FILESDIR/ffmpeg8.patch )

src_configure() {
	local myeconfargs=(
		$(use_enable imlib imlib2)
		$(use_enable osc)
		$(use_enable osd ft)
		$(use_enable sdl)
		$(use_enable tools contrib)
		$(use_enable xv)
		--disable-qtgui
		--disable-timescale
		--disable-portmidi
		--enable-silent-rules
	)

	econf "${myeconfargs[@]}"
}

src_install() {
	default

	if use tools; then
		newdoc contrib/cli-remote/README README.cli-remote
		dobin contrib/cli-remote/jadeo-rcli
		insinto "/usr/share/${PN}"
		doins "contrib/${PN}-example.mp4"
	fi
}