Commit bb2b878c authored by abveritas's avatar abveritas
Browse files

mplayer2 update, build from git, due to new ffmpeg

parent e972a515
......@@ -14,7 +14,7 @@ depends=('raptor' 'ladspa')
makedepends=('pkgconfig')
license=('GPL')
options=('!libtool')
source=(swh-LRDF-0.5.0-0-g7ebc032.zip)
source=("http://chakra-linux.org/sources/liblrdf/swh-LRDF-0.5.0-0-g7ebc032.zip")
#md5.patch
#raptor2.diff
#pkgconfig-raptor.patch)
......
......@@ -5,8 +5,8 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=mplayer2
pkgver=2.0
pkgrel=4
pkgver=2.0.1
pkgrel=1
pkgdesc="A movie player"
arch=('i686' 'x86_64')
license=('GPL')
......@@ -16,22 +16,29 @@ makedepends=('live-media' 'mesa' 'unzip' 'yasm')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
source=("http://ftp.mplayer2.org/pub/release/${pkgname}-${pkgver/_/-}.tar.xz"
mplayer2-remove-mp3lib.patch)
sha1sums=('0df8d4e5484128b7b28029273b7704ab5d5419bc'
'c55128a99406a5e01ab077555b7b24aa7b54110c')
options=('!emptydirs')
source=("http://chakra-project.org/sources/mplayer2/mplayer2-$pkgver.tar.xz")
md5sums=('42d4b904c62b37aeb52b3180408e8852')
# create tarball: source PKGBUILD && mksource
mksource() {
git clone git://git.mplayer2.org/mplayer2.git
pushd mplayer2
popd
tar -cvJf mplayer2-${pkgver}.tar.xz mplayer2/*
md5sum mplayer2-${pkgver}.tar.xz
}
build() {
# Custom CFLAGS break the mplayer build
unset CFLAGS LDFLAGS
#unset CFLAGS LDFLAGS
cd "${srcdir}/${pkgname}-${pkgver}"
cd "${srcdir}/${pkgname}"
# Drop internal mp3lib (FS#24149)
# Default decoder for mp3 will be mpg123
rm -fr mp3lib
patch -Np1 -i "${srcdir}/mplayer2-remove-mp3lib.patch"
#rm -fr mp3lib
#patch -Np1 -i "${srcdir}/mplayer2-remove-mp3lib.patch"
./configure --prefix=/usr \
--enable-runtime-cpudetection \
......@@ -42,7 +49,6 @@ build() {
--disable-musepack \
--disable-esd \
--disable-mga \
--enable-xvmc \
--language=all \
--enable-translation \
--confdir=/etc/mplayer
......@@ -50,7 +56,7 @@ build() {
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
install -Dm644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}/etc/mplayer"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment