2007-01-31 19:58:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# be sure to have all build deps + libtool installed before running this
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -z "$1" -o $# -ne 1 ]; then
|
|
|
|
echo "Usage: $0 <xine-lib-version>"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
|
|
|
version=$1
|
|
|
|
|
2007-04-11 21:36:29 +00:00
|
|
|
# missing dependency on autoconf >= (apparently) 2.61 in upstream autofoo files
|
|
|
|
acversion="$(rpm -q --qf=%{VERSION} autoconf)"
|
|
|
|
case $acversion in
|
|
|
|
2.6*) ;;
|
|
|
|
*) echo "ERROR: autoconf >= 2.61 required" ; exit 1 ;;
|
|
|
|
esac
|
|
|
|
|
2007-01-31 19:58:30 +00:00
|
|
|
rm -rf xine-lib-$version xine-lib-$version-pruned
|
|
|
|
tar jxf xine-lib-$version-pruned.tar.bz2
|
|
|
|
cp -a xine-lib-$version xine-lib-$version-pruned
|
|
|
|
|
2009-02-10 23:03:37 +00:00
|
|
|
pushd xine-lib-$version
|
2010-06-21 12:32:45 +00:00
|
|
|
patch -p1 < ../xine-lib-${version}-no_autopoint.patch
|
2009-02-10 23:03:37 +00:00
|
|
|
# extra work for to omit old libtool-related crud
|
|
|
|
rm -f configure ltmain.sh libtool m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4
|
2007-01-31 19:58:30 +00:00
|
|
|
./autogen.sh noconfig
|
|
|
|
rm -rf autom4te.cache *~
|
2009-02-10 23:03:37 +00:00
|
|
|
popd
|
2007-01-31 19:58:30 +00:00
|
|
|
|
|
|
|
diff -Nru xine-lib-$version-pruned xine-lib-$version \
|
|
|
|
| bzip2 --best > xine-lib-$version-autotools.patch.bz2
|