2010-12-14 21:47:44 +00:00
|
|
|
# Template file for 'xbmc'
|
|
|
|
pkgname=xbmc
|
2011-03-10 15:41:00 +00:00
|
|
|
version=10.1
|
2012-01-30 15:16:24 +00:00
|
|
|
revision=11
|
2011-12-05 16:35:09 +00:00
|
|
|
patch_args="-Np1"
|
2010-12-19 15:46:48 +00:00
|
|
|
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz"
|
2010-12-14 21:47:44 +00:00
|
|
|
short_desc="XBMC Media Center"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-30 12:54:51 +00:00
|
|
|
homepage="http://www.xbmc.org"
|
|
|
|
license="GPL-2"
|
2011-03-10 15:41:00 +00:00
|
|
|
checksum=3403195b7eb1d076523f2394793b7f050df00743892b031f6fea86b998559d8a
|
2010-12-14 21:47:44 +00: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."
|
|
|
|
|
2011-12-05 16:35:09 +00:00
|
|
|
broken_as_needed=yes
|
2010-12-19 15:46:48 +00:00
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
|
|
|
|
2011-08-11 20:44:16 +00:00
|
|
|
Add_dependency run dbus ">=0"
|
|
|
|
Add_dependency run udisks ">=0"
|
|
|
|
Add_dependency run upower ">=0"
|
|
|
|
Add_dependency run hicolor-icon-theme
|
|
|
|
Add_dependency run desktop-file-utils
|
|
|
|
Add_dependency run mesa-demos # required glxinfo
|
2010-12-14 21:47:44 +00:00
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
2011-07-04 23:21:29 +00:00
|
|
|
Add_dependency build gperf
|
|
|
|
Add_dependency build cmake
|
|
|
|
Add_dependency build zip
|
2010-12-14 21:47:44 +00:00
|
|
|
Add_dependency build automake
|
2011-07-07 15:59:47 +00:00
|
|
|
Add_dependency build findutils
|
|
|
|
Add_dependency build coreutils
|
2012-01-30 15:16:24 +00:00
|
|
|
Add_dependency build nasm
|
|
|
|
Add_dependency build yasm
|
|
|
|
Add_dependency build pcre-devel
|
2010-12-19 15:46:48 +00:00
|
|
|
Add_dependency build expat-devel
|
2010-12-14 21:47:44 +00:00
|
|
|
Add_dependency build libpng-devel
|
|
|
|
Add_dependency build jpeg-devel
|
|
|
|
Add_dependency build tiff-devel
|
2010-12-19 15:46:48 +00:00
|
|
|
Add_dependency build libXmu-devel
|
2010-12-14 21:47:44 +00: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 15:46:48 +00:00
|
|
|
Add_dependency build libmpeg2-devel
|
|
|
|
Add_dependency build wavpack-devel
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build lzo-devel
|
2010-12-14 21:47:44 +00:00
|
|
|
Add_dependency build MesaLib-devel
|
|
|
|
Add_dependency build glew-devel
|
|
|
|
Add_dependency build fribidi-devel
|
|
|
|
Add_dependency build sqlite-devel
|
|
|
|
Add_dependency build libcdio-devel
|
|
|
|
Add_dependency build freetype-devel
|
2010-12-19 15:46:48 +00: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
|
2011-11-03 08:17:50 +00:00
|
|
|
Add_dependency build libXinerama-devel
|
2010-12-31 11:41:55 +00:00
|
|
|
Add_dependency build libsamplerate-devel
|
2010-12-31 11:49:00 +00:00
|
|
|
Add_dependency build libmms-devel
|
|
|
|
Add_dependency build enca-devel
|
2011-03-10 15:41:00 +00:00
|
|
|
Add_dependency build bzip2-devel
|
2011-07-04 23:21:29 +00:00
|
|
|
Add_dependency build boost-devel
|
|
|
|
Add_dependency build libcurl-devel
|
2011-08-11 20:44:16 +00:00
|
|
|
Add_dependency build libva-devel
|
2011-11-03 08:17:50 +00:00
|
|
|
Add_dependency build libvdpau-devel
|
2010-12-14 21:47:44 +00:00
|
|
|
|
2011-11-03 08:17:50 +00:00
|
|
|
do_configure() {
|
2011-12-05 16:35:09 +00:00
|
|
|
export GIT_REV="-XBPS"
|
2010-12-19 15:46:48 +00:00
|
|
|
sed -i -e "/^AM_GNU_GETTEXT_VERSION.*$/d" lib/cpluff/configure.ac
|
2010-12-14 21:47:44 +00:00
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
|
2010-12-19 15:46:48 +00:00
|
|
|
./bootstrap
|
2011-05-30 12:54:51 +00:00
|
|
|
./configure --prefix=/usr --disable-hal --disable-webserver \
|
2011-12-05 16:35:09 +00:00
|
|
|
--disable-debug --enable-external-python --enable-goom \
|
2011-11-03 08:17:50 +00:00
|
|
|
--enable-mid --enable-vdpau --enable-vaapi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2011-05-30 12:54:51 +00:00
|
|
|
make ${makejobs}
|
2010-12-14 21:47:44 +00:00
|
|
|
}
|
|
|
|
|
2011-11-03 08:17:50 +00:00
|
|
|
post_install() {
|
2011-05-30 13:55:46 +00:00
|
|
|
make prefix=${DESTDIR}/usr install
|
2011-05-30 12:54:51 +00:00
|
|
|
|
2011-08-11 20:44:16 +00:00
|
|
|
vinstall tools/Linux/xbmc.desktop 644 usr/share/applications
|
|
|
|
vinstall tools/Linux/xbmc-48x48.png 644 usr/share/pixmaps xbmc.png
|
|
|
|
|
|
|
|
vinstall xbmc-xrandr 755 usr/share/xbmc
|
|
|
|
vinstall tools/TexturePacker/TexturePacker 755 usr/share/xbmc
|
|
|
|
|
2010-12-19 15:46:48 +00:00
|
|
|
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
|
2010-12-14 21:47:44 +00:00
|
|
|
}
|