Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 471200 | Differences between
and this patch

Collapse All | Expand All

(-)a/xbmc-12.2-r1.ebuild (-6 / +36 lines)
Lines 9-15 Link Here
9
PYTHON_COMPAT=( python{2_6,2_7} )
9
PYTHON_COMPAT=( python{2_6,2_7} )
10
PYTHON_REQ_USE="sqlite"
10
PYTHON_REQ_USE="sqlite"
11
11
12
inherit eutils python-single-r1 multiprocessing autotools
12
inherit eutils python-single-r1 multiprocessing autotools flag-o-matic
13
13
14
BACKPORTS_VERSION=1
14
BACKPORTS_VERSION=1
15
15
Lines 39-48 Link Here
39
39
40
LICENSE="GPL-2"
40
LICENSE="GPL-2"
41
SLOT="0"
41
SLOT="0"
42
IUSE="airplay alsa altivec avahi bluetooth bluray caps cec css debug gles goom java joystick midi mysql neon nfs +opengl profile +projectm pulseaudio pvr +rsxs rtmp +samba +sdl sse sse2 sftp udev upnp +usb vaapi vdpau webserver +X +xrandr"
42
IUSE="airplay alsa altivec avahi bluetooth bluray caps cec +crystalhd css debug external-ffmpeg gles goom java joystick midi mysql neon nfs non-free -omxplayer +opengl +openmax optical-drive optimizations profile +projectm pulseaudio pvr -raspberrypi +rsxs rtmp +samba +sdl sse sse2 sftp udev upnp +usb vaapi +vdadecoder vdpau +vtbdecoder webserver +X +xrandr"
43
44
43
REQUIRED_USE="
45
REQUIRED_USE="
44
	pvr? ( mysql )
46
	pvr? ( mysql )
45
	rsxs? ( X )
46
	X? ( sdl )
47
	X? ( sdl )
47
	xrandr? ( X )
48
	xrandr? ( X )
48
"
49
"
Lines 134-140 Link Here
134
	X? ( x11-proto/xineramaproto )
135
	X? ( x11-proto/xineramaproto )
135
	dev-util/cmake
136
	dev-util/cmake
136
	x86? ( dev-lang/nasm )
137
	x86? ( dev-lang/nasm )
137
	java? ( virtual/jre )"
138
	java? ( virtual/jre )
139
	raspberrypi? ( media-libs/raspberrypi-userland
140
		       media-libs/libsdl
141
		       media-libs/sdl-image )"
138
142
139
S=${WORKDIR}/${MY_P}
143
S=${WORKDIR}/${MY_P}
140
144
Lines 195-200 Link Here
195
199
196
	# Tweak autotool timestamps to avoid regeneration
200
	# Tweak autotool timestamps to avoid regeneration
197
	find . -type f -print0 | xargs -0 touch -r configure
201
	find . -type f -print0 | xargs -0 touch -r configure
202
203
	if use raspberrypi ; then
204
	   sed -i -e 's/USE_BUILDROOT=1/USE_BUILDROOT=0/' \
205
		-e 's/sudo //g' \
206
		-e 's/\/opt\//${S}\/opt\//g' tools/rbp/setup-sdk.sh 
207
	   sed -i 's/TOOLCHAIN=\/usr\/local\/bcm-gcc/TOOLCHAIN=\/usr/' tools/rbp/setup-sdk.sh
208
	   sed -i 's/cd $(SOURCE); $(CONFIGURE)/#cd $(SOURCE); $(CONFIGURE)/' tools/rbp/depends/xbmc/Makefile
209
	   ln -s ${S}/xbmc/guilib ${S}/lib/libsquish ${S}/xbmc/linux/PlatformDefs.h ${S}/xbmc/config.h ${S}/xbmc/utils ${S}/tools/TexturePacker/
210
	   ln -s ${S}/xbmc/config.h ${S}/xbmc/utils/
211
	   sh tools/rbp/setup-sdk.sh
212
	   make -C tools/rbp/depends/xbmc/
213
	fi
198
}
214
}
199
215
200
src_configure() {
216
src_configure() {
Lines 207-225 Link Here
207
	# Requiring java is asine #434662
223
	# Requiring java is asine #434662
208
	export ac_cv_path_JAVA_EXE=$(which $(usex java java true))
224
	export ac_cv_path_JAVA_EXE=$(which $(usex java java true))
209
225
226
	if use raspberrypi ; then
227
	   append-ldflags -L/opt/vc/lib
228
	   append-flags -I/opt/vc/include
229
	fi
230
210
	econf \
231
	econf \
211
		--docdir=/usr/share/doc/${PF} \
232
		--docdir=/usr/share/doc/${PF} \
212
		--disable-ccache \
233
		--disable-ccache \
213
		--disable-optimizations \
214
		--enable-external-libraries \
234
		--enable-external-libraries \
215
		--enable-gl \
216
		$(use_enable airplay) \
235
		$(use_enable airplay) \
236
		$(use_enable alsa) \
217
		$(use_enable avahi) \
237
		$(use_enable avahi) \
218
		$(use_enable bluray libbluray) \
238
		$(use_enable bluray libbluray) \
219
		$(use_enable caps libcap) \
239
		$(use_enable caps libcap) \
220
		$(use_enable cec libcec) \
240
		$(use_enable cec libcec) \
241
		$(use_enable crystalhd) \
221
		$(use_enable css dvdcss) \
242
		$(use_enable css dvdcss) \
222
		$(use_enable debug) \
243
		$(use_enable debug) \
244
		$(use_enable external-ffmpeg) \
223
		$(use_enable gles) \
245
		$(use_enable gles) \
224
		$(use_enable goom) \
246
		$(use_enable goom) \
225
		--disable-hal \
247
		--disable-hal \
Lines 228-238 Link Here
228
		$(use_enable mysql) \
250
		$(use_enable mysql) \
229
		$(use_enable neon) \
251
		$(use_enable neon) \
230
		$(use_enable nfs) \
252
		$(use_enable nfs) \
253
		$(use_enable non-free) \
254
		$(use_enable omxplayer player omxplayer) \
231
		$(use_enable opengl gl) \
255
		$(use_enable opengl gl) \
256
		$(use_enable openmax) \
257
		$(use_enable optical-drive) \
258
		$(use_enable optimizations) \
232
		$(use_enable profile profiling) \
259
		$(use_enable profile profiling) \
233
		$(use_enable projectm) \
260
		$(use_enable projectm) \
234
		$(use_enable pulseaudio pulse) \
261
		$(use_enable pulseaudio pulse) \
235
		$(use_enable pvr mythtv) \
262
		$(use_enable pvr mythtv) \
263
		$(use_with raspberrypi platform raspberry-pi) \
236
		$(use_enable rsxs) \
264
		$(use_enable rsxs) \
237
		$(use_enable rtmp) \
265
		$(use_enable rtmp) \
238
		$(use_enable samba) \
266
		$(use_enable samba) \
Lines 243-248 Link Here
243
		$(use_enable vaapi) \
271
		$(use_enable vaapi) \
244
		$(use_enable vdpau) \
272
		$(use_enable vdpau) \
245
		$(use_enable webserver) \
273
		$(use_enable webserver) \
274
		$(use_enable vdadecoder) \
275
		$(use_enable vtbdecoder) \
246
		$(use_enable X x11) \
276
		$(use_enable X x11) \
247
		$(use_enable xrandr)
277
		$(use_enable xrandr)
248
}
278
}

Return to bug 471200