summaryrefslogtreecommitdiffstats
path: root/xbmc-generate-tarball-xz.sh
diff options
context:
space:
mode:
authoralex <alex@allele3.localdomain>2010-07-19 03:26:31 -0400
committeralex <alex@allele3.localdomain>2010-07-19 03:26:31 -0400
commit5bc6025f6eb6e8647f1d7ee1e0fed4fe9b8a034e (patch)
tree0cc4d8dbf544653ab2a09f6f02a576c2710d23e5 /xbmc-generate-tarball-xz.sh
downloadxbmc-rpm-5bc6025f6eb6e8647f1d7ee1e0fed4fe9b8a034e.tar.gz
xbmc-rpm-5bc6025f6eb6e8647f1d7ee1e0fed4fe9b8a034e.tar.xz
xbmc-rpm-5bc6025f6eb6e8647f1d7ee1e0fed4fe9b8a034e.zip
Get current version of patches in Fedora
Diffstat (limited to 'xbmc-generate-tarball-xz.sh')
-rwxr-xr-xxbmc-generate-tarball-xz.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/xbmc-generate-tarball-xz.sh b/xbmc-generate-tarball-xz.sh
new file mode 100755
index 0000000..d328c31
--- /dev/null
+++ b/xbmc-generate-tarball-xz.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+VERSION=${1-9.11}
+
+tar -xzvf xbmc-$VERSION.tar.gz
+
+cd xbmc-$VERSION
+
+# remove bundled libraries (including zlib and OSX), saves space and forces using external versions
+# also remove legally problematic libGoAhead library
+for i in libass libcdio libCDRip libcurl libenca libfribidi liblzo libmms libpcre libsamplerate sqLite/sqlite libPython/Python cximage-6.0/zlib libid3tag/zlib zlib libSDL-OSX boost libportaudio libglew libGoAhead libhdhomerun
+do
+ rm -r xbmc/lib/$i
+done
+
+# bundled win32 binaries
+rm -r xbmc/visualizations/XBMCProjectM/win32
+
+# remove various headers
+rm xbmc/FileSystem/zlib.h
+
+# remove more bundled codecs
+# libfaad2, libmad needs upstream patches to be able to remove from tarball
+# even though the bundled libaries aren't, I think, compiled
+for i in ffmpeg liba52 libmpeg2 libdts
+do
+ rm -r xbmc/cores/dvdplayer/Codecs/$i
+done
+
+# remove DVD stuff we can't ship, or is already in external libraries
+for i in libdvdcss libdvdread includes
+do
+ rm -r xbmc/cores/dvdplayer/Codecs/libdvd/$i
+done
+
+# remove all prebuilt binaries (e.g., .so files and Win32 DLLs)
+find \( -name '*.so' -o -name '*.DLL' -o -name '*.dll' -o -name '*.lib' -o -name '*.zlib' -o -name '*.obj' -o -name '*.exe' -o -name '*.vis' \) | xargs rm -f
+
+# remove other packages that should be system-wide
+rm -rf lib
+
+cd -
+
+# repack
+tar -cJvf xbmc-$VERSION-patched.tar.xz xbmc-$VERSION