We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison media-libs/xine-lib/xine-lib-1.1.20.ebuild @ 25:d0b03ba8efdd

media-libs/xine-lib-1.1.20 imported from official repository (deleted files), patch added for zlib
author Daniel Neugebauer <dneuge@energiequant.de>
date Thu, 11 Oct 2012 16:24:24 +0200
parents
children abab9b79caf9
comparison
equal deleted inserted replaced
24:cb6c2ef24667 25:d0b03ba8efdd
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/Attic/xine-lib-1.1.20.ebuild,v 1.8 2012/04/17 08:54:54 ssuominen dead $
4
5 # modified by gentoo-overlay.megacoffee.net:
6 # - applied patch for zlib 1.2.5.2 (https://bugs.gentoo.org/show_bug.cgi?id=401449)
7
8 EAPI=4
9 inherit flag-o-matic toolchain-funcs multilib eutils
10
11 # This should normally be empty string, unless a release has a suffix.
12 if [[ "${P/_pre/}" != "${P}" ]]; then
13 SRC_URI="mirror://gentoo/${P}.tar.xz"
14 else
15 MY_PKG_SUFFIX=""
16 MY_P="${PN}-${PV/_/-}${MY_PKG_SUFFIX}"
17 S="${WORKDIR}/${MY_P}"
18
19 SRC_URI="mirror://sourceforge/xine/${MY_P}.tar.xz"
20 fi
21
22 DESCRIPTION="Core libraries for Xine movie player"
23 HOMEPAGE="http://xine.sourceforge.net"
24
25 LICENSE="GPL-2"
26 SLOT="1"
27 KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
28
29 IUSE="aalib libcaca win32codecs nls +css +X directfb +vorbis +alsa sdl speex +theora ipv6 altivec opengl aac fbcon +xv xvmc samba dxr3 vidix mng flac oss +v4l xinerama vcd +a52 +mad imagemagick +dts +modplug gtk pulseaudio mmap truetype wavpack +musepack +xcb jack real +vis"
30
31 RDEPEND="X? ( x11-libs/libXext
32 x11-libs/libX11 )
33 xv? ( x11-libs/libXv )
34 xvmc? ( x11-libs/libXvMC )
35 xinerama? ( x11-libs/libXinerama )
36 win32codecs? ( >=media-libs/win32codecs-0.50 )
37 css? ( >=media-libs/libdvdcss-1.2.7 )
38 alsa? ( media-libs/alsa-lib )
39 aalib? ( media-libs/aalib )
40 directfb? ( >=dev-libs/DirectFB-0.9.9 )
41 flac? ( >=media-libs/flac-1.1.2 )
42 sdl? ( >=media-libs/libsdl-1.1.5 )
43 dxr3? ( >=media-libs/libfame-0.9.0 )
44 vorbis? ( media-libs/libogg media-libs/libvorbis )
45 theora? ( media-libs/libogg media-libs/libvorbis >=media-libs/libtheora-1.0_alpha6 )
46 speex? ( media-libs/libogg media-libs/libvorbis media-libs/speex )
47 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
48 samba? ( net-fs/samba )
49 mng? ( media-libs/libmng )
50 vcd? ( media-video/vcdimager
51 dev-libs/libcdio[-minimal] )
52 a52? ( >=media-libs/a52dec-0.7.4-r5 )
53 mad? ( media-libs/libmad )
54 imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
55 dts? ( media-libs/libdca )
56 aac? ( >=media-libs/faad2-2.6.1 )
57 virtual/ffmpeg
58 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
59 nls? ( virtual/libintl )
60 gtk? ( x11-libs/gtk+:2 )
61 pulseaudio? ( media-sound/pulseaudio )
62 truetype? ( media-libs/freetype:2 media-libs/fontconfig )
63 virtual/libiconv
64 wavpack? ( >=media-sound/wavpack-4.31 )
65 musepack? ( >=media-sound/musepack-tools-444 )
66 xcb? ( >=x11-libs/libxcb-1.0 )
67 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
68 real? (
69 x86? ( media-libs/win32codecs )
70 x86-fbsd? ( media-libs/win32codecs )
71 amd64? ( media-libs/amd64codecs ) )
72 v4l? ( media-libs/libv4l )"
73 DEPEND="${RDEPEND}
74 app-arch/xz-utils
75 X? ( x11-libs/libXt
76 x11-proto/xproto
77 x11-proto/videoproto
78 x11-proto/xf86vidmodeproto
79 xinerama? ( x11-proto/xineramaproto ) )
80 v4l? ( virtual/os-headers )
81 dev-util/pkgconfig
82 sys-devel/libtool
83 nls? ( sys-devel/gettext )"
84
85 src_prepare() {
86 epatch "${FILESDIR}/${P}-stat.patch"
87 epatch "${FILESDIR}/${P}-zlib-1.2.5.2.patch"
88 }
89
90 src_configure() {
91 #prevent quicktime crashing
92 append-flags -frename-registers -ffunction-sections
93
94 # Specific workarounds for too-few-registers arch...
95 if [[ $(tc-arch) == "x86" ]]; then
96 filter-flags -fforce-addr
97 filter-flags -momit-leaf-frame-pointer # break on gcc 3.4/4.x
98 filter-flags -fno-omit-frame-pointer #breaks per bug #149704
99 is-flag -O? || append-flags -O2
100 fi
101
102 # Set the correct win32 dll path, bug #197236
103 local win32dir
104 if has_multilib_profile ; then
105 win32dir=/usr/$(ABI="x86" get_libdir)/win32
106 else
107 win32dir=/usr/$(get_libdir)/win32
108 fi
109
110 # Too many file names are the same (xine_decoder.c), change the builddir
111 # So that the relative path is used to identify them.
112 mkdir "${WORKDIR}"/build
113
114 ECONF_SOURCE=${S} econf \
115 --disable-gnomevfs \
116 $(use_enable nls) \
117 $(use_enable ipv6) \
118 $(use_enable samba) \
119 $(use_enable altivec) \
120 $(use_enable v4l) \
121 $(use_enable v4l libv4l) \
122 $(use_enable mng) \
123 $(use_with imagemagick) \
124 $(use_enable gtk gdkpixbuf) \
125 $(use_enable aac faad) --with-external-libfaad \
126 $(use_with flac libflac) \
127 $(use_with vorbis) \
128 $(use_with speex) \
129 $(use_with theora) \
130 $(use_with wavpack) \
131 $(use_enable modplug) \
132 $(use_enable a52 a52dec) --with-external-a52dec \
133 $(use_enable mad) --with-external-libmad \
134 $(use_enable dts) --with-external-libdts \
135 $(use_enable musepack) --with-external-libmpcdec \
136 $(use_with X x) \
137 $(use_enable xinerama) \
138 $(use_enable vidix) \
139 $(use_enable dxr3) \
140 $(use_enable directfb) \
141 $(use_enable fbcon fb) \
142 $(use_enable opengl) \
143 $(use_enable aalib) \
144 $(use_with libcaca caca) \
145 $(use_with sdl) \
146 $(use_enable xvmc) \
147 $(use_with xcb) \
148 $(use_enable oss) \
149 $(use_with alsa) \
150 --without-arts \
151 --without-esound \
152 $(use_with pulseaudio) \
153 $(use_with jack) \
154 $(use_enable vcd) --without-internal-vcdlibs \
155 $(use_enable win32codecs w32dll) \
156 $(use_enable real real-codecs) \
157 $(use_enable mmap) \
158 $(use_with truetype freetype) $(use_with truetype fontconfig) \
159 $(use_enable vis) \
160 --enable-asf \
161 --with-external-ffmpeg \
162 --disable-optimizations \
163 --disable-syncfb \
164 --with-xv-path=/usr/$(get_libdir) \
165 --with-w32-path=${win32dir} \
166 --with-real-codecs-path=/usr/$(get_libdir)/codecs \
167 --enable-fast-install
168 }
169
170 src_install() {
171 emake \
172 DESTDIR="${D}" \
173 docdir="/usr/share/doc/${PF}" \
174 htmldir="/usr/share/doc/${PF}/html" \
175 install
176
177 dodoc ChangeLog
178
179 rm -f "${D}"usr/lib*/libxine.la
180 }