From b7e8a22add9ff7e7ca41fe8c5fc25ea501eb3e2d Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Sun, 22 Mar 2009 12:20:07 -0700 Subject: Bring XBMC to LinHES. --- abs/extra-testing/cmake/PKGBUILD | 33 +++++++ abs/extra-testing/community/enca/PKGBUILD | 23 +++++ abs/extra-testing/community/tre/PKGBUILD | 19 +++++ abs/extra-testing/community/xbmc/ChangeLog | 64 ++++++++++++++ abs/extra-testing/community/xbmc/PKGBUILD | 118 ++++++++++++++++++++++++++ abs/extra-testing/community/xbmc/xbmc.install | 9 ++ abs/extra-testing/glew/PKGBUILD | 23 +++++ abs/extra-testing/hd2u/PKGBUILD | 21 +++++ abs/extra-testing/libjpeg/PKGBUILD | 28 ++++++ abs/extra-testing/xmlrpc-c/PKGBUILD | 32 +++++++ 10 files changed, 370 insertions(+) create mode 100644 abs/extra-testing/cmake/PKGBUILD create mode 100644 abs/extra-testing/community/enca/PKGBUILD create mode 100644 abs/extra-testing/community/tre/PKGBUILD create mode 100644 abs/extra-testing/community/xbmc/ChangeLog create mode 100644 abs/extra-testing/community/xbmc/PKGBUILD create mode 100644 abs/extra-testing/community/xbmc/xbmc.install create mode 100644 abs/extra-testing/glew/PKGBUILD create mode 100644 abs/extra-testing/hd2u/PKGBUILD create mode 100644 abs/extra-testing/libjpeg/PKGBUILD create mode 100644 abs/extra-testing/xmlrpc-c/PKGBUILD diff --git a/abs/extra-testing/cmake/PKGBUILD b/abs/extra-testing/cmake/PKGBUILD new file mode 100644 index 0000000..60e7f35 --- /dev/null +++ b/abs/extra-testing/cmake/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 27686 2009-02-24 20:21:28Z pierre $ +# Maintainer: Pierre Schmitz +# Contributor: damir +# Contributor: Konstantinos Pachnis + +pkgname=cmake +pkgver=2.6.3 +pkgrel=1 +pkgdesc="CMake is a cross-platform open-source make system" +arch=('i686' 'x86_64') +license=('custom') +url="http://www.cmake.org" +depends=('expat' 'xmlrpc-c') +makedepends=('qt') +optdepends=('qt: cmake-gui') +source=("http://www.cmake.org/files/v2.6/$pkgname-$pkgver.tar.gz") +md5sums=('5ba47a94ce276f326abca1fd72a7e7c6') + +build() { + cd $srcdir/$pkgname-$pkgver + ./bootstrap --prefix=/usr \ + --mandir=/share/man \ + --docdir=/share/doc/cmake \ + --system-libs \ + --qt-gui + make || return 1 + make DESTDIR=$pkgdir install + + install -D -m644 Docs/cmake-indent.vim $pkgdir/usr/share/vim/indent/cmake-indent.vim + install -D -m644 Docs/cmake-syntax.vim $pkgdir/usr/share/vim/syntax/cmake-syntax.vim + install -D -m644 Docs/cmake-mode.el $pkgdir/usr/share/emacs/site-lisp/cmake-mode.el + install -D -m644 Copyright.txt $pkgdir/usr/share/licenses/$pkgname/Copyright.txt +} diff --git a/abs/extra-testing/community/enca/PKGBUILD b/abs/extra-testing/community/enca/PKGBUILD new file mode 100644 index 0000000..b8dfe10 --- /dev/null +++ b/abs/extra-testing/community/enca/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: PKGBUILD,v 1.7 2009/02/27 12:40:33 sergej Exp $ +# Maintainer: Sergej Pupykin +# Contributor: Filip Dvorak + +pkgname=enca +pkgver=1.9 +pkgrel=3 +pkgdesc="Charset analyser and converter" +arch=(i686 x86_64) +url="http://trific.ath.cx/software/enca" +options=('!libtool') +license=("GPL") +depends=() +source=(http://archlinux-stuff.googlecode.com/files/enca-$pkgver.tar.bz2) +md5sums=('b3581e28d68d452286fb0bfe58bed3b3') + +build() { + cd $startdir/src/enca-$pkgver + ./configure --prefix=/usr --libexecdir=/usr/lib/enca + make || return 1 + make DESTDIR=$startdir/pkg install +} + diff --git a/abs/extra-testing/community/tre/PKGBUILD b/abs/extra-testing/community/tre/PKGBUILD new file mode 100644 index 0000000..b7d82eb --- /dev/null +++ b/abs/extra-testing/community/tre/PKGBUILD @@ -0,0 +1,19 @@ +# Contributor: Igor Galic +# Maintainer: Stefan Husmann + + * 8.10-10 : + Try and fix some autoconf issues (thanks Gentoo ebuild). + +2009-02-08 [vEX] + + * 8.10-9 : + Replace some libtool 'ltmain.sh' scripts with the one from libtool + installed with Arch. + Make sure XBMCTex isn't linked to OpenGL libraries or it will segfault + on systems using the nvidia driver. + +2009-01-30 [vEX] + + * 8.10-8 : + Fix some include's so that gcc 4.3.x is happy, shouldn't complain about + undefined '::realloc' anymore. + Remove Mac OS X specific files. + +2009-01-25 [vEX] + + * 8.10-7 : + Moved libcdio, pmount, smbclient and unrar to optdepends. + Removed unneeded dependency on sdl_gfx. + Removed dependency on libpng as sdl_image depends on it. + +2008-12-14 [vEX] + + * 8.10-6 : + Added libpng to dependency list. + Added gawk to dependency list. + Removed '--disable-mms' and '--enable-halmount' configure flags as they + are not mentioned as supported in the configure script. + +2008-12-06 [vEX] + + * 8.10-5 : + Added libmad to the dependency list. + Streamripper 1.64.0+ does not include tre anymore, removed streamripper + and added tre instead. + Removed subversion from makedepends. + +2008-12-06 [vEX] + + * 8.10-4 : + Fix permissions for some more scripts, ffmpeg/texi2doc.pl should not + fail any longer. + +2008-12-05 [vEX] + + * 8.10-3 : + Added lirc to the optdepends array. + +2008-11-26 [vEX] + + * 8.10-2 : + Added install file which informs users that a display depth of at + least 24-bit is required. + +2008-11-17 [vEX] + + * 8.10-1 : + Initial package, based on previous work by Zeqadious. diff --git a/abs/extra-testing/community/xbmc/PKGBUILD b/abs/extra-testing/community/xbmc/PKGBUILD new file mode 100644 index 0000000..950d704 --- /dev/null +++ b/abs/extra-testing/community/xbmc/PKGBUILD @@ -0,0 +1,118 @@ +# Contributor: [vEX] +# Contributor: Zeqadious + +pkgname=xbmc +pkgver=8.10 +pkgrel=10 +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') +makedepends=('autoconf' 'automake' 'boost' 'cmake' 'gcc' 'gperf' + 'libtool>=2.2.6a-1' 'make' 'nasm' 'patch' 'pkgconfig' 'zip') +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') +install=("${pkgname}.install") +source=("http://downloads.sourceforge.net/${pkgname}/XBMC-${pkgver}.src.tar.gz") +md5sums=('2d20d255a211223eaa47f1c6bcf4be8e') + +build() { + cd "${srcdir}/XBMC" + + # 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 ' -i guilib/system.h || return 1 + + # Clean up the configure files and make sure they support C++. + for file in `find . -type f -name configure.in -or -name configure.ac`; do + echo 'AC_PROG_CXX' >> "${file}" + sed -e '/AM_PATH_XMMS/ c\echo' \ + -e '/AM_PATH_SDL2/ c\echo' \ + -i ${file} || return 1 + done + sed -e 's/test_libFLAC++//g' \ + -i "${srcdir}/XBMC/xbmc/cores/paplayer/flac-1.2.1/src/Makefile.am" || return 1 + + # Fix some autoconf issues + touch ${srcdir}/XBMC/xbmc/cores/dvdplayer/Codecs/libmad/{NEWS,AUTHORS,ChangeLog} || return 1 + touch ${srcdir}/XBMC/xbmc/visualizations/Goom/goom2k4-0/ylwrap || return 1 + touch ${srcdir}/XBMC/xbmc/lib/libid3tag/libid3tag/{NEWS,README,AUTHORS,ChangeLog} || return 1 + for dir in \ + . \ + xbmc/cores/dvdplayer/Codecs/libDVDCSS \ + xbmc/cores/dvdplayer/Codecs/libdts \ + xbmc/cores/dvdplayer/Codecs/libdvdnav \ + xbmc/cores/dvdplayer/Codecs/libfaad2 \ + xbmc/cores/dvdplayer/Codecs/libmad \ + xbmc/cores/dvdplayer/Codecs/libmpeg2 \ + xbmc/cores/paplayer/flac-1.2.1 \ + xbmc/cores/paplayer/vorbisfile/libvorbis \ + xbmc/cores/paplayer/vorbisfile/ogg \ + xbmc/visualizations/Goom/goom2k4-0 \ + xbmc/lib/libass \ + xbmc/lib/libid3tag/libid3tag + do + autoreconf --install "${srcdir}/XBMC/${dir}" || return 1 + done + + cd "${srcdir}/XBMC/" + + # Configure XBMC + ./configure --prefix=/usr \ + --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}/XBMC/tools/XBMCTex/Makefile + + # Now (finally) build + 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}/XBMC/xbmc-xrandr \ + ${pkgdir}/usr/share/xbmc/xbmc-xrandr || return 1 + + # Menu item + install -Dm644 ${srcdir}/XBMC/tools/Linux/xbmc.desktop \ + ${pkgdir}/usr/share/applications/xbmc.desktop || return 1 + install -Dm644 ${srcdir}/XBMC/tools/Linux/xbmc.png \ + ${pkgdir}/usr/share/pixmaps/xbmc.png || return 1 + + # XBMCTex + install -Dm755 ${srcdir}/XBMC/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 +} diff --git a/abs/extra-testing/community/xbmc/xbmc.install b/abs/extra-testing/community/xbmc/xbmc.install new file mode 100644 index 0000000..9316bc8 --- /dev/null +++ b/abs/extra-testing/community/xbmc/xbmc.install @@ -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: diff --git a/abs/extra-testing/glew/PKGBUILD b/abs/extra-testing/glew/PKGBUILD new file mode 100644 index 0000000..989621b --- /dev/null +++ b/abs/extra-testing/glew/PKGBUILD @@ -0,0 +1,23 @@ +# $Id: PKGBUILD 27226 2009-02-17 05:43:56Z eric $ +# AUR-Maintainer: William Rea +# Contributor: SleepyDog + +pkgname=glew +pkgver=1.5.1 +pkgrel=1 +pkgdesc="A cross-platform C/C++ extension loading library" +arch=('i686' 'x86_64') +url="http://glew.sourceforge.net" +license=('BSD' 'MIT' 'GPL') +depends=('libxmu' 'libxi' 'mesa') +makedepends=('hd2u') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-src.tgz) +md5sums=('759a59853dfaae4d007b414a3c1712f2') + +build() { + cd ${startdir}/src/${pkgname} + dos2unix config/config.guess + make || return 1 + make GLEW_DEST=${startdir}/pkg/usr LIBDIR=${startdir}/pkg/usr/lib install || return 1 + install -D -m644 LICENSE.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE.txt || return 1 +} diff --git a/abs/extra-testing/hd2u/PKGBUILD b/abs/extra-testing/hd2u/PKGBUILD new file mode 100644 index 0000000..8cde95c --- /dev/null +++ b/abs/extra-testing/hd2u/PKGBUILD @@ -0,0 +1,21 @@ +# $Id: PKGBUILD 13676 2008-09-27 21:20:46Z giovanni $ +# Maintainer: Giovanni Scafora +# Contributor: Damir Perisa + +pkgname=hd2u +pkgver=1.0.3 +pkgrel=1 +pkgdesc="Dos2Unix text file converter" +arch=('i686' 'x86_64') +license=('GPL2') +url="http://hany.sk/~hany/software/hd2u/" +depends=('popt') +source=(http://hany.sk/~hany/_data/hd2u/$pkgname-$pkgver.tgz) +md5sums=('8f6668fafb279aa19f956ec0515717b6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make || return 1 + make prefix=$pkgdir/usr install +} diff --git a/abs/extra-testing/libjpeg/PKGBUILD b/abs/extra-testing/libjpeg/PKGBUILD new file mode 100644 index 0000000..996ae6c --- /dev/null +++ b/abs/extra-testing/libjpeg/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 19605 2008-11-28 10:52:08Z allan $ +# Maintainer: Allan McRae +# Committer: Judd Vinet + +pkgname=libjpeg +pkgver=6b +pkgrel=6 +pkgdesc="Library of JPEG support functions" +arch=('i686' 'x86_64') +url="http://www.ijg.org/" +license=('custom') +depends=('glibc') +makedepends=('libtool') +options=(!libtool) +source=(ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v$pkgver.tar.gz) +md5sums=('dbd5f3b47ed13132f04c685d608a7547') + +build() { + cd $srcdir/jpeg-$pkgver + cp /usr/share/libtool/config/config.{guess,sub} . + sed -i "s#./libtool#libtool#" configure + ./configure --prefix=/usr --enable-shared --enable-static + make || return 1 + mkdir -p $pkgdir/usr/{bin,lib,include,share/man/man1} + make prefix=$pkgdir/usr mandir=$pkgdir/usr/share/man/man1 install + install -m644 jpegint.h $pkgdir/usr/include + install -Dm644 README $pkgdir/usr/share/licenses/libjpeg/README +} diff --git a/abs/extra-testing/xmlrpc-c/PKGBUILD b/abs/extra-testing/xmlrpc-c/PKGBUILD new file mode 100644 index 0000000..4a1057e --- /dev/null +++ b/abs/extra-testing/xmlrpc-c/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Pierre Schmitz +# Contributor: Vitaliy Berdinskikh + +pkgname=xmlrpc-c +pkgver=1.06.32 +pkgrel=1 +pkgdesc='This library provides a modular implementation of XML-RPC for C and C++' +arch=('i686' 'x86_64') +url='http://xmlrpc-c.sourceforge.net/' +license=('custom') +depends=('curl' 'libxml2') +makedepends=('libtool') +options=('!makeflags' '!libtool') +source=("http://downloads.sourceforge.net/xmlrpc-c/xmlrpc-c-${pkgver}.tgz") +md5sums=('1a5a0771a22e75819d90e7fab38ef377') + +build() { + [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" + + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr \ + --enable-libxml2-backend \ + --disable-cgi-server \ + --disable-abyss-server \ + --disable-libwww-client \ + --disable-wininet-client + + make CFLAGS_PERSONAL="${CFLAGS}" || return 1 + make DESTDIR=$pkgdir install + + install -m 644 -D doc/COPYING $pkgdir/usr/share/licenses/${pkgname}/COPYING +} -- cgit v0.12