blob: 4bcaea19737c10504ea79dd3f0d1d565ac16c61d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/sh
MAJORVERSION=11
MINORVERSION=0
PRERELEASE=Eden_beta1
VERSION=${MAJORVERSION}.${MINORVERSION}${PRERELEASE:+-${PRERELEASE}}
GITHUBURL=https://github.com/xbmc/xbmc/tarball/$VERSION-Dharma
# comment-out line below if using tarball
#curl -L $GITHUBURL | tar xz
# Repair GitHub's odd auto-generated top-level directory...
#mv xbmc-xbmc-* xbmc-$VERSION
# extract tarball
# comment-out if not using tarball
tar -xzvf xbmc-$VERSION.tar.gz
cd xbmc-$VERSION
# remove bundled libraries, saves space and forces using external versions
for i in cximage-6.0/zlib libid3tag/zlib libhdhomerun libmpeg2 ffmpeg
do
rm -r lib/$i
done
# remove more bundled codecs
for i in libmpeg2
do
rm -r xbmc/cores/dvdplayer/DVDCodecs/Video/$i
done
# remove DVD stuff we can't ship, or is already in external libraries
for i in libdvdcss libdvdread includes
do
rm -r lib/libdvd/$i
done
# remove all prebuilt binaries (e.g., .so files and Win32 DLLs)
find \( -type f -name '*.so' -o -name '*.DLL' -o -name '*.dll' -o -name '*.lib' -o -name '*.zlib' -o -name '*.obj' -o -name '*.exe' -o -name '*.vis' \) -print0 | xargs -0 rm -f
# remove all other packages that should be system-wide
# except for libass, cpluff, jsoncpp (need to figure out how to
# remove these too)
# xbmc-dll-symbols seems to be XBMC-specific
for i in enca freetype liblame libmicrohttpd libmodplug libbluray librtmp win32
do
rm -r lib/$i
done
# TODO/FIXME: remove tools/XBMCLive/ and other things under tools/
# also remove anything to do with win32
for i in arm darwin win32buildtools
do
rm -r tools/$i
done
cd ..
# repack
tar -cJvf xbmc-$VERSION-patched.tar.xz xbmc-$VERSION
|