diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-11-03 08:10:38 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-11-03 08:11:47 +0000 |
commit | 0b80ce9653d81da44bbc742526c940ca8a05851a (patch) | |
tree | e1b03642efcf7a64873713ba7e01cdf885c3041a | |
parent | 928878fda7962077580ae75b4d19c705fe1f5181 (diff) | |
download | aports-0b80ce9653d81da44bbc742526c940ca8a05851a.tar.bz2 aports-0b80ce9653d81da44bbc742526c940ca8a05851a.tar.xz |
unstable/xbmc: new aport
Cross-platform Media Center.
Error during configure (sed: bad substitution)
-rw-r--r-- | unstable/xbmc/APKBUILD | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/unstable/xbmc/APKBUILD b/unstable/xbmc/APKBUILD new file mode 100644 index 0000000000..8edcf46e9c --- /dev/null +++ b/unstable/xbmc/APKBUILD @@ -0,0 +1,76 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=xbmc +pkgver=10.1 +pkgrel=0 +pkgdesc="A cross-platform Media Center" +url="http://xbmc.org" +arch="all" +license="Custom GPL" +depends= +depends_dev="alsa-lib-dev autoconf automake boost-dev bzip2-dev cmake curl-dev + dbus-dev enca-dev faac-dev faad2-dev flac-dev fontconfig-dev fribidi-dev + glew-dev jasper-dev jpeg-dev libcdio-dev libiconv-dev libogg-dev + libmad-dev libmms-dev libmodplug-dev libmpeg2-dev libpng-dev + libsamplerate-dev libssh-dev libvdpau libvorbis-dev libxinerama-dev + libxmu-dev libxrandr-dev libxt-dev libxtst-dev lzo-dev mesa-dev mysql-dev + pcre-dev samba-dev sdl-dev sdl_image-dev sdl_mixer-dev sqlite-dev + tiff-dev wavpack-dev" +makedepends="$depends_dev" +install= +subpackages="$pkgname-dev $pkgname-doc" +source="http://mirrors.xbmc.org/releases/source/$pkgname-$pkgver.tar.gz + xbmc-10.1-gcc-4.6.patch + xbmc-10.0-python-2.7.patch + " + + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + find xbmc/cores/dvdplayer/Codecs -name Makefile.in \ + -exec sed -i 's: --soname,: -Wl,--soname,:' {} \; || return 1 +} + +build() { + cd "$_builddir" + unset LDFLAGS; LDFLAGS="-Wl,--hash-style=gnu" + ./bootstrap + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-vdpau \ + --disable-openmax \ + --disable-joystick \ + --disable-hal \ + --disable-avahi \ + --enable-external-libraries \ + --disable-external-liba52 \ + --disable-external-libdts \ + --disable-external-ffmpeg \ + --enable-external-python \ + --disable-non-free \ + --disable-webserver \ + --disable-debug + + make || return 1 + make -C lib/addons/script.module.pil || return 1 + make -C lib/addons/script.module.pysqlite || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="391398126cb86a4f6fbd0b7037997d84 xbmc-10.1.tar.gz +d88b854d6f356a74d7658cd1f74a4695 xbmc-10.1-gcc-4.6.patch +62d46c8b44e4e5313a10922209cb14f8 xbmc-10.0-python-2.7.patch" |