2010-12-14 22:47:44 +01:00
|
|
|
# Template file for 'xbmc'
|
|
|
|
pkgname=xbmc
|
2011-03-10 16:41:00 +01:00
|
|
|
version=10.1
|
2011-05-30 14:54:51 +02:00
|
|
|
revision=1
|
2010-12-19 16:46:48 +01:00
|
|
|
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz"
|
2011-05-30 14:54:51 +02:00
|
|
|
build_style=custom-install
|
2010-12-14 22:47:44 +01:00
|
|
|
short_desc="XBMC Media Center"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-30 14:54:51 +02:00
|
|
|
homepage="http://www.xbmc.org"
|
|
|
|
license="GPL-2"
|
2011-03-10 16:41:00 +01:00
|
|
|
checksum=3403195b7eb1d076523f2394793b7f050df00743892b031f6fea86b998559d8a
|
2010-12-14 22:47:44 +01:00
|
|
|
long_desc="
|
|
|
|
XBMC is an award-winning free and open source (GPL) software media player
|
|
|
|
and entertainment hub for digital media. XBMC is available for Linux, OSX,
|
|
|
|
Windows, and the original Xbox."
|
|
|
|
|
2010-12-19 16:46:48 +01:00
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
|
|
|
|
|
|
|
Add_dependency run libgcc
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run libstdc++
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run expat
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run libpng
|
|
|
|
Add_dependency run jpeg
|
|
|
|
Add_dependency run tiff
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run libXmu
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run libXrandr
|
|
|
|
Add_dependency run avahi-libs
|
|
|
|
Add_dependency run libpulseaudio
|
|
|
|
Add_dependency run SDL_mixer
|
|
|
|
Add_dependency run libsmbclient
|
|
|
|
Add_dependency run libmysqlclient
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run libmpeg2
|
|
|
|
Add_dependency run libwavpack
|
|
|
|
Add_dependency run zlib
|
|
|
|
Add_dependency run lzo
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run MesaLib
|
|
|
|
Add_dependency run glew
|
|
|
|
Add_dependency run fribidi
|
|
|
|
Add_dependency run sqlite
|
|
|
|
Add_dependency run libpcre
|
|
|
|
Add_dependency run libcdio
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run libogg
|
|
|
|
Add_dependency run libvorbis
|
|
|
|
Add_dependency run alsa-lib
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run libX11
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run libXtst
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run libXext
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency run dbus-libs
|
|
|
|
Add_dependency run SDL
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency run libjasper
|
|
|
|
Add_dependency run faac
|
|
|
|
Add_dependency run SDL_image
|
|
|
|
Add_dependency run faad2
|
|
|
|
Add_dependency run libmodplug
|
|
|
|
Add_dependency run libssl
|
|
|
|
Add_dependency run libmad
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run libXrender
|
2011-03-10 16:41:00 +01:00
|
|
|
Add_dependency run bzip2
|
|
|
|
Add_dependency run libsamplerate
|
|
|
|
Add_dependency run libmms
|
2010-12-14 22:47:44 +01:00
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build automake
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build expat-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency build libpng-devel
|
|
|
|
Add_dependency build jpeg-devel
|
|
|
|
Add_dependency build tiff-devel
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build libXmu-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency build libXrandr-devel
|
|
|
|
Add_dependency build avahi-libs-devel
|
|
|
|
Add_dependency build pulseaudio-devel
|
|
|
|
Add_dependency build SDL_mixer-devel
|
|
|
|
Add_dependency build samba-devel
|
|
|
|
Add_dependency build libmysqlclient-devel
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build libmpeg2-devel
|
|
|
|
Add_dependency build wavpack-devel
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build lzo-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency build MesaLib-devel
|
|
|
|
Add_dependency build glew-devel
|
|
|
|
Add_dependency build fribidi-devel
|
|
|
|
Add_dependency build sqlite-devel
|
|
|
|
Add_dependency build pcre-devel
|
|
|
|
Add_dependency build libcdio-devel
|
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build freetype-devel
|
|
|
|
Add_dependency build libogg-devel
|
|
|
|
Add_dependency build libvorbis-devel
|
|
|
|
Add_dependency build alsa-lib-devel
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build libX11-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency build libXtst-devel
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build libXext-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build SDL-devel
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency build jasper-devel
|
|
|
|
Add_dependency build faac-devel
|
|
|
|
Add_dependency build SDL_image-devel
|
|
|
|
Add_dependency build faad2-devel
|
|
|
|
Add_dependency build libmodplug-devel
|
|
|
|
Add_dependency build openssl-devel
|
|
|
|
Add_dependency build libmad-devel
|
|
|
|
Add_dependency build fontconfig-devel
|
|
|
|
Add_dependency build libXrender-devel
|
2010-12-31 12:41:55 +01:00
|
|
|
Add_dependency build libsamplerate-devel
|
2010-12-31 12:49:00 +01:00
|
|
|
Add_dependency build libmms-devel
|
|
|
|
Add_dependency build enca-devel
|
2011-03-10 16:41:00 +01:00
|
|
|
Add_dependency build bzip2-devel
|
2010-12-14 22:47:44 +01:00
|
|
|
|
2010-12-19 16:46:48 +01:00
|
|
|
Add_dependency full dbus ">=0"
|
|
|
|
Add_dependency full udisks ">=0"
|
|
|
|
Add_dependency full upower ">=0"
|
|
|
|
Add_dependency full hicolor-icon-theme
|
2010-12-14 22:47:44 +01:00
|
|
|
Add_dependency full desktop-file-utils
|
|
|
|
Add_dependency full mesa-demos # required glxinfo
|
|
|
|
|
2011-05-30 14:54:51 +02:00
|
|
|
do_build()
|
2010-12-14 22:47:44 +01:00
|
|
|
{
|
2010-12-19 16:46:48 +01:00
|
|
|
export SVN_REV="-XBPS"
|
|
|
|
sed -i -e "/^AM_GNU_GETTEXT_VERSION.*$/d" lib/cpluff/configure.ac
|
2010-12-14 22:47:44 +01:00
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
|
2011-05-30 14:54:51 +02:00
|
|
|
# fix linking issue with gcc 4.5, see git 6ea61fce78q
|
|
|
|
sed -i 's: --soname,: -Wl,--soname,:' \
|
|
|
|
xbmc/cores/dvdplayer/Codecs/{,libdvd/}Makefile.in
|
2010-12-19 16:46:48 +01:00
|
|
|
./bootstrap
|
2011-05-30 14:54:51 +02:00
|
|
|
./configure --prefix=/usr --disable-hal --disable-webserver \
|
|
|
|
--disable-debug --disable-external-python --enable-goom \
|
|
|
|
--enable-mid LDFLAGS=
|
|
|
|
make ${makejobs}
|
2010-12-14 22:47:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-05-30 14:54:51 +02:00
|
|
|
make prefix=${DESTDIR} install
|
|
|
|
|
2010-12-14 22:47:44 +01:00
|
|
|
# Fix files containing invalid chars "&".
|
|
|
|
find ${DESTDIR} -type f | while read f; do
|
|
|
|
if $(echo "$f"|grep -q "&"); then
|
|
|
|
newf=$(echo "$f"|sed -e "s|&|and|g")
|
|
|
|
mv "$f" "$newf"
|
|
|
|
fi
|
|
|
|
done
|
2010-12-19 16:46:48 +01:00
|
|
|
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
|
2010-12-14 22:47:44 +01:00
|
|
|
}
|