/[gentoo-x86]/media-libs/xine-lib/xine-lib-1.2.1.ebuild
Gentoo

Contents of /media-libs/xine-lib/xine-lib-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu May 17 20:32:40 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha105/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/xine-lib/xine-lib-1.2.1.ebuild,v 1.7 2012/05/05 08:02:37 jdhore Exp $
4
5 EAPI=4
6
7 unset _live_inherits
8
9 if [[ ${PV} == *9999* ]]; then
10 EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2"
11 _live_inherits="autotools mercurial"
12 else
13 KEYWORDS="amd64 hppa ppc ppc64 x86 ~x86-fbsd"
14 SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
15 fi
16
17 inherit eutils libtool multilib ${_live_inherits}
18
19 DESCRIPTION="Core libraries for Xine movie player"
20 HOMEPAGE="http://xine.sourceforge.net/"
21
22 LICENSE="GPL-2"
23 SLOT="1"
24 IUSE="a52 aac aalib +alsa altivec bluray +css directfb dts dvb dxr3 fbcon flac fusion gtk imagemagick ipv6 jack libcaca mad +mmap mng modplug musepack nls opengl oss pulseaudio real samba sdl speex theora truetype v4l vcd vdpau vdr vidix +vis vorbis wavpack win32codecs +X +xcb xinerama +xv xvmc"
25
26 RDEPEND="dev-libs/libxdg-basedir
27 media-libs/libdvdnav
28 sys-libs/zlib
29 virtual/ffmpeg
30 virtual/libiconv
31 a52? ( media-libs/a52dec )
32 aac? ( media-libs/faad2 )
33 aalib? ( media-libs/aalib )
34 alsa? ( media-libs/alsa-lib )
35 bluray? ( >=media-libs/libbluray-0.2.1 )
36 css? ( >=media-libs/libdvdcss-1.2.10 )
37 directfb? ( dev-libs/DirectFB )
38 dts? ( media-libs/libdca )
39 dxr3? ( media-libs/libfame )
40 flac? ( media-libs/flac )
41 fusion? ( media-libs/FusionSound )
42 gtk? ( x11-libs/gdk-pixbuf:2 )
43 imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
44 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
45 libcaca? ( media-libs/libcaca )
46 mad? ( media-libs/libmad )
47 mng? ( media-libs/libmng )
48 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
49 musepack? ( >=media-sound/musepack-tools-444 )
50 nls? ( virtual/libintl )
51 opengl? (
52 virtual/glu
53 virtual/opengl
54 )
55 pulseaudio? ( media-sound/pulseaudio )
56 real? (
57 amd64? ( media-libs/amd64codecs )
58 x86? ( media-libs/win32codecs )
59 x86-fbsd? ( media-libs/win32codecs )
60 )
61 samba? ( net-fs/samba )
62 sdl? ( media-libs/libsdl )
63 speex? (
64 media-libs/libogg
65 media-libs/speex
66 )
67 theora? (
68 media-libs/libogg
69 media-libs/libtheora
70 )
71 truetype? (
72 media-libs/fontconfig
73 media-libs/freetype:2
74 )
75 v4l? ( media-libs/libv4l )
76 vcd? (
77 >=media-video/vcdimager-0.7.23
78 dev-libs/libcdio[-minimal]
79 )
80 vdpau? ( x11-libs/libvdpau )
81 vorbis? (
82 media-libs/libogg
83 media-libs/libvorbis
84 )
85 wavpack? ( media-sound/wavpack )
86 win32codecs? ( media-libs/win32codecs )
87 X? (
88 x11-libs/libX11
89 x11-libs/libXext
90 )
91 xcb? ( x11-libs/libxcb )
92 xinerama? ( x11-libs/libXinerama )
93 xv? ( x11-libs/libXv )
94 xvmc? ( x11-libs/libXvMC )"
95 DEPEND="${RDEPEND}
96 app-arch/xz-utils
97 virtual/pkgconfig
98 >=sys-devel/libtool-2.2.6b
99 bluray? ( !media-libs/libbluray-xine )
100 nls? ( sys-devel/gettext )
101 oss? ( virtual/os-headers )
102 v4l? ( virtual/os-headers )
103 X? (
104 x11-libs/libXt
105 x11-proto/xf86vidmodeproto
106 x11-proto/xproto
107 )
108 xv? ( x11-proto/videoproto )
109 xvmc? ( x11-proto/videoproto )
110 xinerama? ( x11-proto/xineramaproto )"
111 REQUIRED_USE="vidix? ( || ( X fbcon ) )
112 xv? ( X )
113 xinerama? ( X )"
114
115 src_prepare() {
116 epatch "${FILESDIR}/${P}-ffmpeg-git.patch"
117 sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
118
119 if [[ ${PV} == *9999* ]]; then
120 eautopoint
121 eautoreconf
122 else
123 elibtoolize
124 fi
125 }
126
127 src_configure() {
128 local win32dir #197236
129 if has_multilib_profile; then
130 win32dir=/usr/$(ABI="x86" get_libdir)/win32
131 else
132 win32dir=/usr/$(get_libdir)/win32
133 fi
134
135 econf \
136 $(use_enable ipv6) \
137 $(use_enable nls) \
138 $(use_enable altivec) \
139 $(use_enable vis) \
140 --disable-optimizations \
141 $(use_enable mmap) \
142 $(use_enable oss) \
143 $(use_enable aalib) \
144 $(use_enable directfb) \
145 $(use_enable dxr3) \
146 $(use_enable fbcon fb) \
147 $(use_enable opengl) $(use_enable opengl glu) \
148 $(use_enable vidix) \
149 $(use_enable xinerama) \
150 $(use_enable xvmc) \
151 $(use_enable vdpau) \
152 $(use_enable dvb) \
153 --disable-gnomevfs \
154 $(use_enable samba) \
155 --disable-v4l $(use_enable v4l v4l2) $(use_enable v4l libv4l) \
156 $(use_enable vcd) \
157 $(use_enable vdr) \
158 $(use_enable bluray) \
159 $(use_enable a52 a52dec) \
160 $(use_enable aac faad) \
161 $(use_enable gtk gdkpixbuf) \
162 $(use_enable dts) \
163 $(use_enable mad) \
164 $(use_enable modplug) \
165 $(use_enable musepack) \
166 $(use_enable mng) \
167 $(use_enable real real-codecs) \
168 $(use_enable win32codecs w32dll) \
169 $(use_with truetype freetype) $(use_with truetype fontconfig) \
170 $(use_with X x) \
171 $(use_with alsa) \
172 --without-esound \
173 $(use_with fusion fusionsound) \
174 $(use_with jack) \
175 $(use_with pulseaudio) \
176 $(use_with libcaca caca) \
177 $(use_with sdl) \
178 $(use_with xcb) \
179 --with-xv-path=/usr/$(get_libdir) \
180 $(use_with imagemagick) \
181 --with-external-dvdnav \
182 $(use_with flac libflac) \
183 $(use_with speex) \
184 $(use_with theora) \
185 $(use_with vorbis) \
186 --with-real-codecs-path=/usr/$(get_libdir)/codecs \
187 --with-w32-path=${win32dir} \
188 $(use_with wavpack)
189 }
190
191 src_install() {
192 emake \
193 DESTDIR="${D}" \
194 docdir="/usr/share/doc/${PF}" \
195 htmldir="/usr/share/doc/${PF}/html" \
196 install
197
198 rm -f \
199 "${ED}"usr/lib*/libxine*.la \
200 "${ED}"usr/share/doc/${PF}/COPYING
201 }

  ViewVC Help
Powered by ViewVC 1.1.20