Lines 9-15
Link Here
|
9 |
PYTHON_COMPAT=( python2_7 ) |
9 |
PYTHON_COMPAT=( python2_7 ) |
10 |
PYTHON_REQ_USE="sqlite" |
10 |
PYTHON_REQ_USE="sqlite" |
11 |
|
11 |
|
12 |
inherit eutils linux-info python-single-r1 multiprocessing autotools |
12 |
inherit eutils linux-info python-single-r1 multiprocessing autotools flag-o-matic toolchain-funcs |
13 |
|
13 |
|
14 |
CODENAME="Isengard" |
14 |
CODENAME="Isengard" |
15 |
case ${PV} in |
15 |
case ${PV} in |
Lines 34-40
Link Here
|
34 |
|
34 |
|
35 |
LICENSE="GPL-2" |
35 |
LICENSE="GPL-2" |
36 |
SLOT="0" |
36 |
SLOT="0" |
37 |
IUSE="airplay alsa avahi bluetooth bluray caps cec css dbus debug +fishbmc gles goom java joystick midi mysql nfs +opengl profile +projectm pulseaudio +rsxs rtmp +samba sftp +spectrum test texturepacker udisks upnp upower +usb vaapi vdpau +waveform webserver +X" |
37 |
IUSE="airplay alsa avahi bluetooth bluray caps cec css dbus debug +fishbmc gles goom java joystick midi mysql nfs +opengl profile +projectm pulseaudio -raspberry-pi +rsxs rtmp +samba sftp +spectrum test texturepacker udisks upnp upower +usb vaapi vdpau +waveform webserver +X" |
38 |
REQUIRED_USE=" |
38 |
REQUIRED_USE=" |
39 |
rsxs? ( X ) |
39 |
rsxs? ( X ) |
40 |
udisks? ( dbus ) |
40 |
udisks? ( dbus ) |
Lines 117-123
Link Here
|
117 |
x11-libs/libXinerama |
117 |
x11-libs/libXinerama |
118 |
x11-libs/libXrandr |
118 |
x11-libs/libXrandr |
119 |
x11-libs/libXrender |
119 |
x11-libs/libXrender |
120 |
)" |
120 |
) |
|
|
121 |
raspberry-pi? ( >media-libs/raspberrypi-userland-0_pre20141006 ) |
122 |
texturepacker? ( media-libs/giflib )" |
121 |
RDEPEND="${COMMON_DEPEND} |
123 |
RDEPEND="${COMMON_DEPEND} |
122 |
!media-tv/xbmc |
124 |
!media-tv/xbmc |
123 |
udisks? ( sys-fs/udisks:0 ) |
125 |
udisks? ( sys-fs/udisks:0 ) |
Lines 140-145
Link Here
|
140 |
In some cases Kodi needs to access multicast addresses. |
142 |
In some cases Kodi needs to access multicast addresses. |
141 |
Please consider enabling IP_MULTICAST under Networking options. |
143 |
Please consider enabling IP_MULTICAST under Networking options. |
142 |
" |
144 |
" |
|
|
145 |
pkg_config() { |
146 |
if use raspberry-pi; then |
147 |
elog "Rember to set \"eselect opengl set raspberrypi\" if you want to run kodi without X" |
148 |
fi |
149 |
} |
143 |
|
150 |
|
144 |
pkg_setup() { |
151 |
pkg_setup() { |
145 |
check_extra_config |
152 |
check_extra_config |
Lines 190-195
Link Here
|
190 |
|
197 |
|
191 |
# Tweak autotool timestamps to avoid regeneration |
198 |
# Tweak autotool timestamps to avoid regeneration |
192 |
find . -type f -exec touch -r configure {} + |
199 |
find . -type f -exec touch -r configure {} + |
|
|
200 |
|
201 |
#libsquish is needed for packing textures on the build host and for unpacking on target host, |
202 |
# but is not compiled when crosscompiling (if crosscompile != yes) |
203 |
if tc-is-cross-compiler; then |
204 |
if use texturepacker; then |
205 |
#for the build host |
206 |
|
207 |
#squish |
208 |
cp -a tools/depends/native/libsquish-native tools/depends/native/libsquish-native-build || die |
209 |
CFLAGS="-O2 -pipe" CXXFLAGS=$CFLAGS make -C tools/depends/native/libsquish-native-build || die |
210 |
|
211 |
#texturepacker |
212 |
CFLAGS="-O2 -pipe" CXXFLAGS=$CFLAGS \ |
213 |
SQUISH_LIBS="-L${S}/tools/depends/native/libsquish-native-build/squish-install/lib -lsquish" \ |
214 |
SQUISH_CFLAGS="-I${S}/tools/depends/native/libsquish-native-build/squish-install/include" \ |
215 |
make -C tools/depends/native/TexturePacker || die |
216 |
make -C tools/depends/native/TexturePacker/native install || die |
217 |
fi |
218 |
|
219 |
#build squish for target host (is needed even without texturepacker (bug?)) |
220 |
emake -C tools/depends/native/libsquish-native clean #clean from build above |
221 |
emake -C tools/depends/native/libsquish-native CXX=$(tc-getCXX) |
222 |
fi |
193 |
} |
223 |
} |
194 |
|
224 |
|
195 |
src_configure() { |
225 |
src_configure() { |
Lines 202-207
Link Here
|
202 |
# Requiring java is asine #434662 |
232 |
# Requiring java is asine #434662 |
203 |
[[ ${PV} != "9999" ]] && export ac_cv_path_JAVA_EXE=$(which $(usex java java true)) |
233 |
[[ ${PV} != "9999" ]] && export ac_cv_path_JAVA_EXE=$(which $(usex java java true)) |
204 |
|
234 |
|
|
|
235 |
if use raspberry-pi; then |
236 |
append-ldflags -L$ROOT/usr/lib/opengl/raspberrypi/lib || die |
237 |
append-flags -I$ROOT/usr/lib/opengl/raspberrypi/include || die |
238 |
append-flags -I${S}/tools/depends/native/libsquish-native/squish-install/include || die |
239 |
append-ldflags -L${S}/tools/depends/native/libsquish-native/squish-install/lib || die |
240 |
append-flags -I$ROOT/usr/include || die |
241 |
append-flags -I$ROOT/usr/include/python2.7 || die |
242 |
fi |
243 |
|
244 |
#TINYXML_*: override pkg-config-detection: tinyxml doens't ship pkg-config files |
245 |
#SQUISH_*: pkg-config would fail here without it, alternativly add libsquish-path to PKG_CONFIG_PATH |
246 |
#PYTHON_*: python-detection in configure is incompatible with cross compilation, so override it here |
247 |
#TEXTUREPACKER: TexturePacker binary is needed for packing Skins during build |
248 |
TINYXML_LIBS="-ltinyxml" TINYXML_CFLAGS=" " \ |
249 |
PYTHON_VERSION="2.7" PYTHON_NOVERSIONCHECK="no-check" PYTHON_LDFLAGS="-L$ROOT/usr/lib -L$ROOT/usr/lib64 -lpython2.7" \ |
250 |
SQUISH_LIBS="-lsquish" SQUISH_CFLAGS=" " \ |
251 |
TEXTUREPACKER="${S}/tools/depends/native/TexturePacker/bin/TexturePacker" \ |
205 |
econf \ |
252 |
econf \ |
206 |
--docdir=/usr/share/doc/${PF} \ |
253 |
--docdir=/usr/share/doc/${PF} \ |
207 |
--disable-ccache \ |
254 |
--disable-ccache \ |
Lines 227-232
Link Here
|
227 |
$(use_enable profile profiling) \ |
274 |
$(use_enable profile profiling) \ |
228 |
$(use_enable projectm) \ |
275 |
$(use_enable projectm) \ |
229 |
$(use_enable pulseaudio pulse) \ |
276 |
$(use_enable pulseaudio pulse) \ |
|
|
277 |
$(use_with raspberry-pi platform raspberry-pi) \ |
278 |
$(use_enable raspberry-pi player omxplayer) \ |
230 |
$(use_enable rsxs) \ |
279 |
$(use_enable rsxs) \ |
231 |
$(use_enable rtmp) \ |
280 |
$(use_enable rtmp) \ |
232 |
$(use_enable samba) \ |
281 |
$(use_enable samba) \ |