Diff vdr-xineliboutput-2.2.0-r5 with a vdr-xineliboutput-9999

/usr/portage/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild 2025-08-07 18:21:07.541166066 +0300
1
# Copyright 2022-2024 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
5

  
6
inherit flag-o-matic toolchain-funcs vdr-plugin-2
4
EAPI=8
7 5

  
8 6
GENTOO_VDR_CONDITIONAL=yes
9 7

  
8
inherit flag-o-matic git-r3 toolchain-funcs vdr-plugin-2
9

  
10 10
DESCRIPTION="VDR Plugin: Xinelib PlugIn"
11 11
HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
12
SRC_URI="https://downloads.sourceforge.net/${PN#vdr-}/${P}.tgz
13
		http://vdr.websitec.de/download/${PN}/${P}_clang.patch.bz2"
12
EGIT_REPO_URI="https://git.code.sf.net/p/xineliboutput/git"
13
S="${WORKDIR}/${P}"
14 14

  
15 15
LICENSE="GPL-2+"
16 16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="bluray caps cec dbus fbcon jpeg nls opengl +vdr vaapi vdpau +X +xine xinerama"
17
IUSE="bluray caps cec dbus fbcon jpeg nls opengl +vdr vdpau wayland +X +xine xinerama"
19 18

  
20 19
COMMON_DEPEND="
21 20
	vdr? (
......
31 30
			x11-libs/libX11
32 31
			x11-libs/libXext
33 32
			x11-libs/libXrender
33
			xinerama? ( x11-libs/libXinerama )
34
			dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
35
			vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
36
			jpeg? ( media-libs/libjpeg-turbo:= )
37
			bluray? ( media-libs/libbluray )
38
			opengl? ( virtual/opengl )
39
		)
40
		wayland? (
41
			>=media-libs/xine-lib-1.2.10[wayland]
34 42
			bluray? ( media-libs/libbluray )
35 43
			dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
36 44
			jpeg? ( media-libs/libjpeg-turbo:= )
37 45
			opengl? ( virtual/opengl )
38
			vaapi? ( media-libs/libva >=media-libs/xine-lib-1.2[vaapi] )
39
			vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2[vdpau] )
40
			xinerama? ( x11-libs/libXinerama )
46
			vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2.10[vdpau] )
41 47
		)
42
	)"
48
	)
49

  
50
	cec? ( dev-libs/libcec )"
43 51

  
44 52
DEPEND="${COMMON_DEPEND}
45 53
	sys-kernel/linux-headers
......
51 59
		)
52 60
	)"
53 61
RDEPEND="${COMMON_DEPEND}"
54
BDEPEND="virtual/pkgconfig"
62
BDEPEND="acct-user/vdr
63
	virtual/pkgconfig"
55 64

  
56
REQUIRED_USE=" || ( vdr xine )"
57

  
58
VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
65
VDR_CONFD_FILE="${FILESDIR}/confd-2.3.0"
59 66

  
60 67
pkg_setup() {
68
	if ! use vdr && ! use xine; then
69
		die "You either need at least one of these flags: vdr xine"
70
	fi
71

  
61 72
	vdr-plugin-2_pkg_setup
62 73

  
63 74
	if use xine; then
......
66 77
	fi
67 78
}
68 79

  
80
src_unpack() {
81
	git-r3_src_unpack
82
}
83

  
69 84
src_prepare() {
70
	vdr-plugin-2_src_prepare
85
	# Allow user patches to be applied without modifyfing the ebuild
86
	eapply_user
71 87

  
72
	# bug 711978
73
	sed -e "s:X11  opengl:X11  OpenGl:" -i configure || die
88
	vdr-plugin-2_src_prepare
74 89

  
75
	# bug 771036,780462 do not call cc directly
76
	eapply "${FILESDIR}/${P}_no-gcc.patch"
77
	eapply "${WORKDIR}/${P}_clang.patch"
90
	# UINT64_C is needed by ffmpeg headers
91
	append-cxxflags -D__STDC_CONSTANT_MACROS
78 92
}
79 93

  
80 94
src_configure() {
......
94 108
		$(use_enable X xshm) \
95 109
		$(use_enable X xdpms) \
96 110
		$(use_enable X xshape) \
97
		$(use_enable X xrandr) \
98 111
		$(use_enable X xrender) \
99 112
		$(use_enable fbcon fb) \
100 113
		$(use_enable vdr) \
101 114
		$(use_enable xine libxine) \
102 115
		--disable-libextractor \
103 116
		$(use_enable caps libcap) \
104
		$(use_enable cec libcec) \
105 117
		$(use_enable jpeg libjpeg) \
106 118
		$(use_enable xinerama) \
107 119
		$(use_enable dbus dbus-glib-1) \
108 120
		$(use_enable nls i18n) \
109 121
		$(use_enable bluray libbluray) \
110 122
		$(use_enable opengl) \
123
		$(use_enable wayland) \
124
		$(use_enable cec libcec) \
111 125
		${myconf} \
112 126
		|| die
113

  
114
	# UINT64_C is needed by ffmpeg headers
115
	append-cxxflags -D__STDC_CONSTANT_MACROS
116 127
}
117 128

  
118 129
src_install() {
......
150 161
				insinto $VDR_PLUGIN_DIR
151 162
				doins libxineliboutput-sxfe.so.*
152 163
			fi
164
			if use wayland; then
165
				dobin vdr-wlfe
166

  
167
				insinto $VDR_PLUGIN_DIR
168
				doins libxineliboutput-wlfe.so.*
169
			fi
153 170
		fi
154 171
	else
155 172
		emake DESTDIR="${D}" install
156

  
157
		dodoc HISTORY README
158 173
	fi
174
	dodoc HISTORY README
159 175
}
Thank you!