[Archvdr-devel] SF.net SVN: archvdr:[245] trunk/archvdr
Brought to you by:
huceke
|
From: <hu...@us...> - 2009-06-13 11:47:19
|
Revision: 245
http://archvdr.svn.sourceforge.net/archvdr/?rev=245&view=rev
Author: huceke
Date: 2009-06-13 11:47:16 +0000 (Sat, 13 Jun 2009)
Log Message:
-----------
XBMC pvr testing branch.
Added Paths:
-----------
trunk/archvdr/xbmc-pvr-testing/
trunk/archvdr/xbmc-pvr-testing/PKGBUILD
trunk/archvdr/xbmc-pvr-testing/xbmc-libfaad2-configure.patch
trunk/archvdr/xbmc-pvr-testing/xbmc-pvr-testing.install
Added: trunk/archvdr/xbmc-pvr-testing/PKGBUILD
===================================================================
--- trunk/archvdr/xbmc-pvr-testing/PKGBUILD (rev 0)
+++ trunk/archvdr/xbmc-pvr-testing/PKGBUILD 2009-06-13 11:47:16 UTC (rev 245)
@@ -0,0 +1,143 @@
+# Contributor: Edgar Hucek <gimli at dark-green dot com>
+
+pkgname=xbmc-pvr-testing
+pkgver=21038
+pkgrel=1
+pkgdesc="XBMC Media Center"
+arch=('i686' 'x86_64')
+url="http://xbmc.org"
+license=('GPL' 'custom')
+depends=('alsa-lib' 'curl' 'enca' 'faac' 'freetype2' 'fribidi' 'gawk' 'glew' \
+ 'hal' 'jasper' 'libgl' 'libjpeg>=6b-5' 'libmad' 'libmysqlclient' \
+ 'libxinerama' 'libxrandr' 'lzo2' 'sdl_image' 'sdl_mixer' 'sqlite3' \
+ 'tre' 'unzip' 'x-server' 'nvidia-utils-beta>=185.13' 'avahi' 'libsamplerate')
+makedepends=('autoconf' 'automake' 'boost' 'cmake' 'gcc' 'gperf'
+ 'libtool>=2.2.6a-1' 'make' 'nasm' 'patch' 'pkgconfig' 'zip'
+ 'nvidia-utils-beta>=185.13' 'avahi' 'libsamplerate')
+optdepends=('libcdio: optical disc support'
+ 'lirc: remote controller support'
+ 'pmount: mount removable devices as normal user'
+ 'smbclient: access windows shares'
+ 'unrar: access compressed files without unpacking them')
+provides=('xbmc')
+conflicts=('xbmc' 'xbmc-unified-pvr-svn-vdpau' 'xbmc-svn-vdpau')
+install=("${pkgname}.install")
+source=(xbmc-libfaad2-configure.patch)
+md5sums=('')
+
+build() {
+ _svntrunk=https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/pvr-testing/XBMC/
+ _svnmod=XBMC
+
+ cd ${srcdir}/
+ if [ -d $_svnmod/.svn ]; then
+ (cd $_svnmod && svn up -r $pkgver)
+ else
+ svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
+ fi
+ msg "SVN checkout done or server timeout"
+ msg "Starting make..."
+
+ if [ -d "$srcdir/$_svnmod-build" ]; then
+ rm -r "$srcdir/$_svnmod-build"
+ fi
+
+ cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
+ cd "$srcdir/$_svnmod-build"
+ patch -p1 -i ../xbmc-libfaad2-configure.patch || return 1
+
+ sed -e 's/lib64/lib/g' -i Makefile.include.in || return 1
+
+ cd "$srcdir/$_svnmod-build/xbmc/visualizations/Goom/goom2k4-0"
+ aclocal
+ CXX=g++-4.3 CC=gcc-4.3 ./autogen.sh --enable-static --with-pic
+ cd "$srcdir/$_svnmod-build/xbmc/cores/dvdplayer/Codecs/libfaad2"
+ aclocal
+ libtoolize
+ cd "$srcdir/$_svnmod-build/xbmc/cores/dvdplayer/Codecs/libdvd/libdvdnav"
+ CXX=g++-4.3 CC=gcc-4.3 autoreconf -vif
+ cd "$srcdir/$_svnmod-build/xbmc/lib/libass"
+ CXX=g++-4.3 CC=gcc-4.3 autoreconf -vif
+ cd "$srcdir/$_svnmod-build/xbmc/cores/dvdplayer/Codecs/libdvd/libdvdcss"
+ CXX=g++-4.3 CC=gcc-4.3 autoreconf -vif
+ libtoolize --force --copy
+ CXX=g++-4.3 CC=gcc-4.3 ./configure
+ #aclocal
+ #libtoolize
+ #libtoolize --force --copy
+ #cp /usr/bin/libtool .
+ cd "$srcdir/$_svnmod-build"
+
+ # Remove Mac OS X specific files
+ rm -rf system/python/lib-osx/
+ rm system/players/dvdplayer/*-osx*
+
+ # Fix permissions for the configure scripts
+ find -type f -name "configure"|xargs chmod a+x || return 1
+
+ # Fix other permissions
+ find -type f -name "*.pl"|xargs chmod a+x || return 1
+
+ # Make it gcc 4.3.x compatible
+ sed '92i#include <stdlib.h>' -i guilib/system.h || return 1
+
+ # Make sure to support C++ source code files (thanks gentoo ebuild!)
+ for file in `find . -name configure.ac`; do
+ echo 'AC_PROG_CXX' >> "${file}"
+ done
+
+ # Use the libtool script from 2.2.6a to fix some problems with the supplied one
+ cp /usr/share/libtool/config/ltmain.sh \
+ ${srcdir}/$_svnmod-build/xbmc/cores/dvdplayer/Codecs/libdvd/libdvdnav/ltmain.sh || return 1
+ cp /usr/share/libtool/config/ltmain.sh \
+ ${srcdir}/$_svnmod-build/xbmc/lib/libass/ltmain.sh || return 1
+
+ # Configure XBMC
+ CXX=g++-4.3 CC=gcc-4.3 ./configure --prefix=/usr --enable-vdpau \
+ --disable-debug || return 1
+
+ make distclean
+ libtoolize --force --copy
+ CXX=g++-4.3 CC=gcc-4.3 ./configure --prefix=/usr --enable-vdpau \
+ --disable-debug || return 1
+
+ # Fix false negative detections of realloc that happens some times
+ if grep -q 'HAVE_REALLOC 0' config.h; then
+ sed -e 's|#define HAVE_REALLOC 0|#define HAVE_REALLOC 1|' \
+ -e 's|#define realloc rpl_realloc|/* #define realloc rpl_realloc */|' \
+ -i config.h || return 1
+ fi
+
+ # XBMCTex will segfault on systems with nvidia instaleld if linked to OpenGL
+ sed -e 's/-lGLU -lGLEW -lGL//' \
+ -i ${srcdir}/$_svnmod-build/tools/XBMCTex/Makefile
+
+ # Now (finally) build
+ unset MAKEFLAGS
+ make || return 1
+ make prefix=${pkgdir}/usr install || return 1
+
+ # Fix the shell script
+ sed -i '4iexport SDL_AUDIODRIVER=alsa' ${pkgdir}/usr/bin/xbmc
+
+ # Xrandr
+ install -Dm755 ${srcdir}/$_svnmod-build/xbmc-xrandr \
+ ${pkgdir}/usr/share/xbmc/xbmc-xrandr || return 1
+
+ # Menu item
+ install -Dm644 ${srcdir}/$_svnmod-build/tools/Linux/xbmc.desktop \
+ ${pkgdir}/usr/share/applications/xbmc.desktop || return 1
+ install -Dm644 ${srcdir}/$_svnmod-build/tools/Linux/xbmc.png \
+ ${pkgdir}/usr/share/pixmaps/xbmc.png || return 1
+
+ # XBMCTex
+ install -Dm755 ${srcdir}/$_svnmod-build/tools/XBMCTex/XBMCTex \
+ ${pkgdir}/usr/share/xbmc/tools/xbmctex || return 1
+
+ # License(s)
+ install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
+ for licensef in LICENSE.GPL README.linux copying.txt; do
+ mv ${pkgdir}/usr/share/xbmc/${licensef} \
+ ${pkgdir}/usr/share/licenses/${pkgname} || return 1
+ done
+}
Added: trunk/archvdr/xbmc-pvr-testing/xbmc-libfaad2-configure.patch
===================================================================
--- trunk/archvdr/xbmc-pvr-testing/xbmc-libfaad2-configure.patch (rev 0)
+++ trunk/archvdr/xbmc-pvr-testing/xbmc-libfaad2-configure.patch 2009-06-13 11:47:16 UTC (rev 245)
@@ -0,0 +1,22 @@
+--- a/xbmc/cores/dvdplayer/Codecs/libfaad2/configure.in 2009-01-25 13:15:52.000000000 +0100
++++ b/xbmc/cores/dvdplayer/Codecs/libfaad2/configure.in 2009-01-25 13:16:11.000000000 +0100
+@@ -32,8 +32,8 @@
+ AC_ARG_WITH(drm,[ --with-drm compile libfaad with DRM support],
+ WITHDRM=$withval, WITHDRM=no)
+
+-AC_ARG_WITH(mpeg4ip, [ --with-mpeg4ip compile mpeg4ip plugin],
+- WITHMPEG4IP=$withval, WITHMPEG4IP=no)
++dnl AC_ARG_WITH(mpeg4ip, [ --with-mpeg4ip compile mpeg4ip plugin],
++dnl WITHMPEG4IP=$withval, WITHMPEG4IP=no)
+
+ dnl Checks for header files required for mp4.h
+ AC_HEADER_STDC
+@@ -159,7 +159,7 @@
+ AC_CONFIG_FILES(plugins/Makefile)
+ AC_CONFIG_FILES(plugins/xmms/Makefile)
+ AC_CONFIG_FILES(plugins/xmms/src/Makefile)
+-AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
++dnl AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
+ AC_CONFIG_FILES(faad2.spec)
+ AC_CONFIG_FILES(frontend/Makefile)
+ AC_CONFIG_FILES(Makefile)
Added: trunk/archvdr/xbmc-pvr-testing/xbmc-pvr-testing.install
===================================================================
--- trunk/archvdr/xbmc-pvr-testing/xbmc-pvr-testing.install (rev 0)
+++ trunk/archvdr/xbmc-pvr-testing/xbmc-pvr-testing.install 2009-06-13 11:47:16 UTC (rev 245)
@@ -0,0 +1,9 @@
+post_install() {
+ echo ">> If XBMC won't start, but just segfaults, double check your X.Org config"
+ echo ">> so that your display depth is at least 24-bit. Eg: change "
+ echo ">> \"DefaultDepth 16\" under the \"Screen\" section so it says 24 instead"
+ echo ">> of 16."
+ /bin/true
+}
+
+# vim:set ts=2 sw=2 et:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|