Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/xbmc: ChangeLog xbmc-9.11.ebuild
Date: Sat, 26 Dec 2009 18:45:12
Message-Id: E1NObdU-0004sm-Tt@stork.gentoo.org
1 vapier 09/12/26 18:45:08
2
3 Modified: ChangeLog
4 Added: xbmc-9.11.ebuild
5 Log:
6 Version bump #298226 by hal.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.40 media-tv/xbmc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/xbmc/ChangeLog?rev=1.40&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/xbmc/ChangeLog?rev=1.40&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/xbmc/ChangeLog?r1=1.39&r2=1.40
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v
19 retrieving revision 1.39
20 retrieving revision 1.40
21 diff -u -r1.39 -r1.40
22 --- ChangeLog 19 Dec 2009 20:44:11 -0000 1.39
23 +++ ChangeLog 26 Dec 2009 18:45:08 -0000 1.40
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-tv/xbmc
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.39 2009/12/19 20:44:11 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/ChangeLog,v 1.40 2009/12/26 18:45:08 vapier Exp $
29 +
30 +*xbmc-9.11 (26 Dec 2009)
31 +
32 + 26 Dec 2009; Mike Frysinger <vapier@g.o> +xbmc-9.11.ebuild,
33 + +files/xbmc-9.11-wavpack.patch:
34 + Version bump #298226 by hal.
35
36 *xbmc-9.11_rc1 (19 Dec 2009)
37
38
39
40
41 1.1 media-tv/xbmc/xbmc-9.11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/xbmc/xbmc-9.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/xbmc/xbmc-9.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xbmc-9.11.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9.11.ebuild,v 1.1 2009/12/26 18:45:08 vapier Exp $
51
52 EAPI="2"
53
54 inherit eutils
55
56 # Use XBMC_ESVN_REPO_URI to track a different branch
57 ESVN_REPO_URI=${XBMC_ESVN_REPO_URI:-http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk}
58 ESVN_PROJECT=${ESVN_REPO_URI##*/svnroot/}
59 ESVN_PROJECT=${ESVN_PROJECT%/*}
60 if [[ ${PV} == "9999" ]] ; then
61 inherit subversion autotools
62 KEYWORDS=""
63 else
64 inherit autotools
65 MY_P=${P/_/-}
66 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
67 KEYWORDS="~amd64 ~x86"
68 S=${WORKDIR}/${MY_P}
69 fi
70
71 DESCRIPTION="XBMC is a free and open source media-player and entertainment hub"
72 HOMEPAGE="http://xbmc.org/"
73
74 LICENSE="GPL-2"
75 SLOT="0"
76 IUSE="aac alsa altivec avahi css debug joystick midi opengl profile pulseaudio sse sse2 vdpau xrandr"
77
78 RDEPEND="opengl? ( virtual/opengl )
79 app-arch/bzip2
80 || ( app-arch/unrar app-arch/unrar-gpl )
81 app-arch/unzip
82 app-arch/zip
83 app-i18n/enca
84 >=dev-lang/python-2.4
85 dev-libs/boost
86 dev-libs/fribidi
87 dev-libs/libcdio
88 dev-libs/libpcre
89 dev-libs/lzo
90 >=dev-python/pysqlite-2
91 media-libs/a52dec
92 media-libs/alsa-lib
93 aac? ( media-libs/faac )
94 media-libs/faad2
95 media-libs/flac
96 media-libs/fontconfig
97 media-libs/freetype
98 media-libs/glew
99 media-libs/jasper
100 media-libs/jbigkit
101 media-libs/jpeg
102 >=media-libs/libass-0.9.7
103 media-libs/libdca
104 css? ( media-libs/libdvdcss )
105 media-libs/libmad
106 media-libs/libmms
107 media-libs/libmpeg2
108 media-libs/libogg
109 media-libs/libsamplerate
110 media-libs/libsdl[alsa,audio,video,X]
111 media-libs/libvorbis
112 media-libs/sdl-gfx
113 media-libs/sdl-image[gif,jpeg,png]
114 media-libs/sdl-mixer
115 media-libs/sdl-sound
116 media-libs/tiff
117 pulseaudio? ( media-sound/pulseaudio )
118 media-sound/wavpack
119 media-video/ffmpeg
120 avahi? ( net-dns/avahi )
121 net-misc/curl
122 net-fs/samba
123 sys-apps/dbus
124 sys-apps/hal
125 sys-libs/zlib
126 virtual/mysql
127 x11-apps/xdpyinfo
128 x11-apps/mesa-progs
129 vdpau? ( >=x11-drivers/nvidia-drivers-180.51 )
130 x11-libs/libXinerama
131 xrandr? ( x11-libs/libXrandr )
132 x11-libs/libXrender"
133 DEPEND="${RDEPEND}
134 x11-proto/xineramaproto
135 dev-util/cmake
136 x86? ( dev-lang/nasm )"
137
138 src_unpack() {
139 if [[ ${PV} == "9999" ]] ; then
140 subversion_src_unpack
141 cd "${S}"
142 rm -f configure
143 else
144 unpack ${A}
145 cd "${S}"
146 fi
147
148 # Fix case sensitivity
149 mv media/Fonts/{a,A}rial.ttf || die
150 mv media/{S,s}plash.png || die
151 }
152
153 src_prepare() {
154 epatch "${FILESDIR}"/${P}-wavpack.patch
155 # http://xbmc.org/trac/ticket/8218
156 sed -i \
157 -e 's: ftell64: dll_ftell64:' \
158 xbmc/cores/DllLoader/exports/wrapper.c || die
159 sed -i \
160 -e '1i#include <stdlib.h>\n#include <string.h>\n' \
161 xbmc/lib/libid3tag/libid3tag/metadata.c || die
162
163 # some dirs ship generated autotools, some dont
164 local d
165 for d in . xbmc/cores/dvdplayer/Codecs/libbdnav ; do
166 [[ -d ${d} ]] || continue
167 [[ -e ${d}/configure ]] && continue
168 pushd ${d} >/dev/null
169 einfo "Generating autotools in ${d}"
170 eautoreconf
171 popd >/dev/null
172 done
173
174 local squish #290564
175 use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec"
176 use sse && squish="-DSQUISH_USE_SSE=1 -msse"
177 use sse2 && squish="-DSQUISH_USE_SSE=2 -msse2"
178 sed -i \
179 -e '/^CXXFLAGS/{s:-D[^=]*=.::;s:-m[[:alnum:]]*::}' \
180 -e "1iCXXFLAGS += ${squish}" \
181 xbmc/lib/libsquish/Makefile.in || die
182
183 # Fix XBMC's final version string showing as "exported"
184 # instead of the SVN revision number.
185 export SVN_REV=${ESVN_WC_REVISION:-exported}
186
187 # Avoid lsb-release dependency
188 sed -i \
189 -e 's:/usr/bin/lsb_release -d:cat /etc/gentoo-release:' \
190 xbmc/utils/SystemInfo.cpp
191
192 # Do not use termcap #262822
193 sed -i 's:-ltermcap::' xbmc/lib/libPython/Python/configure
194
195 epatch_user #293109
196
197 # Tweak autotool timestamps to avoid regeneration
198 find . -type f -print0 | xargs -0 touch -r configure
199 }
200
201 src_configure() {
202 # Disable documentation generation
203 export ac_cv_path_LATEX=no
204 # Avoid help2man
205 export HELP2MAN=$(type -P help2man || echo true)
206
207 econf \
208 --disable-ccache \
209 --disable-optimizations \
210 --enable-external-libraries \
211 --enable-goom \
212 $(use_enable avahi) \
213 $(use_enable css dvdcss) \
214 $(use_enable debug) \
215 $(use_enable aac faac) \
216 $(use_enable joystick) \
217 $(use_enable midi mid) \
218 $(use_enable opengl gl) \
219 $(use_enable profile profiling) \
220 $(use_enable pulseaudio pulse) \
221 $(use_enable vdpau) \
222 $(use_enable xrandr)
223 }
224
225 src_install() {
226 einstall || die "Install failed!"
227
228 insinto /usr/share/xbmc/web/styles/
229 doins -r "${S}"/web/*/styles/*/ || die
230
231 insinto /usr/share/applications
232 doins tools/Linux/xbmc.desktop
233 doicon tools/Linux/xbmc.png
234
235 dodoc README.linux known_issues.txt
236 rm "${D}"/usr/share/xbmc/{README.linux,LICENSE.GPL,*.txt}
237 }
238
239 pkg_postinst() {
240 elog "Visit http://xbmc.org/wiki/?title=XBMC_Online_Manual"
241 }