mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
78 lines
2.6 KiB
Bash
78 lines
2.6 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=mplayer-vaapi
|
|
pkgver=32825
|
|
_vaapi_version=20110127
|
|
pkgrel=1
|
|
pkgdesc="A movie player, compiled with vaapi support"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/"
|
|
license=('GPL')
|
|
depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl'
|
|
'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient'
|
|
'aalib' 'jack' 'libcaca' 'x264' 'faac' 'lirc-utils' 'ttf-dejavu'
|
|
'libxvmc' 'enca' 'opencore-amr' 'libdca' 'a52dec' 'schroedinger'
|
|
'libvpx' 'libpulse' 'libva')
|
|
makedepends=('unzip' 'mesa' 'live-media>=2010.01.13' 'yasm' 'ladspa')
|
|
provides=("mplayer=$pkgver")
|
|
conflicts=('mplayer')
|
|
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
|
|
source=(http://pkgbuild.com/~foutrelis/mplayer-$pkgver.tar.xz
|
|
http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-$_vaapi_version.tar.bz2
|
|
mplayer.desktop
|
|
mplayer.png)
|
|
install=mplayer.install
|
|
md5sums=('997a869feaa2fa3376407ee344fa280e'
|
|
'b39bd73ae8241dcb21dd1a8fa5eb87eb'
|
|
'647b9f4ab5284a7fef3f84f992214e77'
|
|
'd00874ccc644b7f43d6ef1c942fcef28')
|
|
|
|
build() {
|
|
cd "$srcdir/mplayer-$pkgver"
|
|
|
|
# Custom CFLAGS break the mplayer build
|
|
unset CFLAGS LDFLAGS
|
|
|
|
for patch in mplayer-{vaapi{,-{gma500-workaround,0.29}},vdpau}; do
|
|
patch -Np1 -i "$srcdir/mplayer-vaapi-$_vaapi_version/patches/$patch.patch"
|
|
done
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-runtime-cpudetection \
|
|
--disable-gui \
|
|
--disable-arts \
|
|
--disable-liblzo \
|
|
--disable-speex \
|
|
--disable-openal \
|
|
--disable-fribidi \
|
|
--disable-libdv \
|
|
--disable-musepack \
|
|
--disable-esd \
|
|
--disable-mga \
|
|
--enable-xvmc \
|
|
--disable-vdpau \
|
|
--enable-vaapi \
|
|
--language=all \
|
|
--confdir=/etc/mplayer
|
|
|
|
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
|
|
|
|
make
|
|
make -j1 DESTDIR=$pkgdir install
|
|
install -Dm644 etc/{codecs.conf,input.conf,example.conf} "$pkgdir/etc/mplayer/"
|
|
install -dm755 "$pkgdir/usr/share/mplayer/"
|
|
ln -s /usr/share/fonts/TTF/DejaVuSans.ttf "$pkgdir/usr/share/mplayer/subfont.ttf"
|
|
rm -rf "$pkgdir/usr/share/mplayer/font"
|
|
# Desktop file (FS#14770)
|
|
install -Dm644 "$srcdir/mplayer.desktop" "$pkgdir/usr/share/applications/mplayer.desktop"
|
|
install -Dm644 "$srcdir/mplayer.png" "$pkgdir/usr/share/pixmaps/mplayer.png"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|