blob: 74bf3582873108717fd36cd15f3abc8dee7582b0 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic libtool
if [[ ${PV} == *9999* ]]; then
EHG_REPO_URI="http://hg.code.sf.net/p/xine/xine-lib-1.2"
inherit autotools mercurial
unset NLS_IUSE
NLS_DEPEND="sys-devel/gettext"
NLS_RDEPEND="virtual/libintl"
else
KEYWORDS="amd64 arm64 ~hppa ppc ppc64 x86"
SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
NLS_IUSE="nls"
NLS_DEPEND="nls? ( sys-devel/gettext )"
NLS_RDEPEND="nls? ( virtual/libintl )"
fi
DESCRIPTION="Core libraries for Xine movie player"
HOMEPAGE="http://xine.sourceforge.net/"
LICENSE="GPL-2"
SLOT="1"
IUSE="a52 aac aalib +alsa altivec bluray +css dts dvb dxr3 fbcon flac gtk imagemagick ipv6 jack jpeg libcaca mad +mmap mng modplug musepack nfs opengl oss pulseaudio samba sdl sftp speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack wayland +X xinerama +xv xvmc ${NLS_IUSE}"
RDEPEND="${NLS_RDEPEND}
dev-libs/libxdg-basedir
media-libs/libdvdnav
media-video/ffmpeg:0=
sys-libs/zlib:=
virtual/libiconv
a52? ( media-libs/a52dec )
aac? ( media-libs/faad2 )
aalib? ( media-libs/aalib )
alsa? ( media-libs/alsa-lib )
bluray? ( >=media-libs/libbluray-0.2.1:= )
css? ( >=media-libs/libdvdcss-1.2.10 )
dts? ( media-libs/libdca )
dxr3? ( media-libs/libfame )
flac? ( media-libs/flac )
gtk? ( x11-libs/gdk-pixbuf:2 )
imagemagick? ( virtual/imagemagick-tools )
jack? ( virtual/jack )
jpeg? ( virtual/jpeg:0 )
libcaca? ( media-libs/libcaca )
mad? ( media-libs/libmad )
mng? ( media-libs/libmng:= )
modplug? ( >=media-libs/libmodplug-0.8.8.1 )
musepack? ( >=media-sound/musepack-tools-444 )
nfs? ( net-fs/libnfs:= )
opengl? (
virtual/glu
virtual/opengl
)
pulseaudio? ( media-sound/pulseaudio )
samba? ( net-fs/samba )
sftp? ( net-libs/libssh2 )
sdl? ( media-libs/libsdl )
speex? (
media-libs/libogg
media-libs/speex
)
theora? (
media-libs/libogg
media-libs/libtheora
)
truetype? (
media-libs/fontconfig
media-libs/freetype:2
)
v4l? ( media-libs/libv4l )
vaapi? ( x11-libs/libva:0=[X,opengl] )
vcd? (
>=media-video/vcdimager-0.7.23
dev-libs/libcdio:0=[-minimal]
)
vdpau? ( x11-libs/libvdpau )
vorbis? (
media-libs/libogg
media-libs/libvorbis
)
vpx? ( media-libs/libvpx:0= )
wavpack? ( media-sound/wavpack )
wayland? ( dev-libs/wayland )
X? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libxcb
)
xinerama? ( x11-libs/libXinerama )
xv? ( x11-libs/libXv )
xvmc? ( x11-libs/libXvMC )
"
DEPEND="${RDEPEND}
${NLS_DEPEND}
app-arch/xz-utils
>=sys-devel/libtool-2.2.6b
virtual/pkgconfig
oss? ( virtual/os-headers )
v4l? ( virtual/os-headers )
X? (
x11-base/xorg-proto
x11-libs/libXt
)
xv? ( x11-base/xorg-proto )
xvmc? ( x11-base/xorg-proto )
xinerama? ( x11-base/xorg-proto )
"
REQUIRED_USE="
vidix? ( || ( X fbcon ) )
xv? ( X )
xinerama? ( X )
"
src_prepare() {
default
sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
if [[ "${PV}" = *9999* ]] ; then
eautoreconf
else
elibtoolize
fi
local x
for x in 0 1 2 3; do
sed -i -e "/^O${x}_CFLAGS=\"-O${x}\"/d" configure || die
done
}
src_configure() {
[[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
local win32dir #197236
if has_multilib_profile; then
win32dir=/usr/$(ABI="x86" get_libdir)/win32
else
win32dir=/usr/$(get_libdir)/win32
fi
local myconf=(
--disable-directfb
--disable-gnomevfs
--disable-optimizations
--disable-real-codecs
--disable-v4l
--disable-w32dll
--enable-avformat
--with-external-dvdnav
--with-real-codecs-path=/usr/$(get_libdir)/codecs
--with-w32-path=${win32dir}
--with-xv-path=/usr/$(get_libdir)
--without-esound
--without-fusionsound
$(use_enable a52 a52dec)
$(use_enable aac faad)
$(use_enable aalib)
$(use_enable altivec)
$(use_enable bluray)
$(use_enable dts)
$(use_enable dvb)
$(use_enable dxr3)
$(use_enable fbcon fb)
$(use_enable gtk gdkpixbuf)
$(use_enable ipv6)
$(use_enable jpeg libjpeg)
$(use_enable mad)
$(use_enable mmap)
$(use_enable mng)
$(use_enable modplug)
$(use_enable musepack)
$(use_enable nfs)
$(use_enable opengl)
$(use_enable opengl glu)
$(use_enable oss)
$(use_enable samba)
$(use_enable sftp)
$(use_enable v4l libv4l)
$(use_enable v4l v4l2)
$(use_enable vaapi)
$(use_enable vdpau)
$(use_enable vis)
$(use_enable vidix)
$(use_enable xinerama)
$(use_enable xvmc)
$(use_enable vcd)
$(use_enable vdr)
$(use_enable vpx)
$(use_enable wayland)
$(use_with alsa)
$(use_with flac libflac)
$(use_with imagemagick)
$(use_with jack)
$(use_with libcaca caca)
$(use_with pulseaudio)
$(use_with sdl)
$(use_with speex)
$(use_with theora)
$(use_with truetype fontconfig)
$(use_with truetype freetype)
$(use_with vorbis)
$(use_with wavpack)
$(use_with X x)
$(use_with X xcb)
)
[[ ${PV} == *9999* ]] || myconf+=( $(use_enable nls) )
econf "${myconf[@]}"
}
src_compile() {
# enable verbose building, bug #448140
emake V=1
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
rm -f "${ED}"usr/share/doc/${PF}/COPYING || die
}
|