Fixed compiling XBMC with samba4.

This commit is contained in:
Tomas Groth Christensen 2013-04-27 11:21:50 +02:00
parent f08b3b68bc
commit e3928fac97
2 changed files with 19 additions and 4 deletions

View file

@ -2,7 +2,7 @@
# Contributor WarheadsSE <max@warheads.net>
pkgname=xbmc-rbp
pkgver=12.1
pkgrel=2
pkgrel=3
buildarch=16
pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
@ -33,14 +33,24 @@ md5sums=('8955473f84cb2a0513c0f3efd7e68843'
_prefix=/usr
build() {
prepare() {
cd "${srcdir}/xbmc-${pkgver}"
# fix lsb_release dependency
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
# Patch to fix TexturePacker build.
patch -i ${srcdir}/xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch -p1
# Patch to fix TexturePacker build.
patch -i ${srcdir}/xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch -p1
# fix samba4 libsmbclient.h location
sed -e 's/\(#include \)<libsmbclient\.h>/\1<samba-4.0\/libsmbclient\.h>/g' \
-i xbmc/filesystem/SmbFile.cpp \
-i xbmc/filesystem/SMBDirectory.cpp
}
build() {
cd "${srcdir}/xbmc-${pkgver}"
# Bootstrapping XBMC
./bootstrap

View file

@ -47,6 +47,11 @@ prepare() {
# Patch to fix TexturePacker build.
git apply ${srcdir}/xbmc-ae04d99-321-texturepacker-hostflags-and-rework.patch
# fix samba4 libsmbclient.h location
sed -e 's/\(#include \)<libsmbclient\.h>/\1<samba-4.0\/libsmbclient\.h>/g' \
-i xbmc/filesystem/SmbFile.cpp \
-i xbmc/filesystem/SMBDirectory.cpp
}
build() {