core/mplayer/PKGBUILD

91 lines
3.2 KiB
Bash
Raw Normal View History

2013-11-14 00:24:32 +08:00
#
# Platform packages of Chakra Project, part of chakra-project.org
#
# Contributor: abveritas@chakra-project.org
# Maintainer: Bruce Liu <rainman59118@gmail.com>
2010-03-14 23:48:48 +08:00
2013-11-14 04:55:45 +08:00
pkgbase=mplayer
pkgname=('mplayer' 'mencoder')
pkgver=36505
pkgrel=5
arch=('x86_64')
makedepends=('subversion' 'libxxf86vm' 'libmad' 'libxinerama' 'sdl' 'lame' 'libtheora'
2013-11-14 04:55:45 +08:00
'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient' 'aalib' 'jack' 'libcaca'
'x264' 'faac' 'faad2' 'lirc-utils' 'libxvmc' 'enca' 'libvdpau' 'opencore-amr'
'libdca' 'a52dec' 'schroedinger' 'libvpx' 'libpulse' 'fribidi' 'unzip' 'mesa'
'live-media' 'yasm' 'git' 'fontconfig' 'mpg123' 'ladspa' 'libass' 'libbluray'
'libcdio' 'opus')
license=('GPL2')
2010-03-14 23:48:48 +08:00
url="http://www.mplayerhq.hu/"
2012-03-06 22:42:55 +08:00
categories=('multimedia')
screenshot=("http://www.mplayerhq.hu/images/screenshots/gui-preview-01.jpg")
install=mplayer.install
source=("${pkgname}::svn://svn.mplayerhq.hu/mplayer/trunk#revision=${pkgver}"
"http://ffmpeg.org/releases/ffmpeg-2.1.tar.bz2"
2012-08-31 02:08:01 +08:00
"mplayer.desktop"
"mplayer.png")
md5sums=('SKIP'
'4ec1cedd4c7753512462f70b347c338a'
2010-09-11 06:01:28 +08:00
'c0d6ef795cf6de48e3b87ff7c23f0319'
'd00874ccc644b7f43d6ef1c942fcef28')
2010-03-14 23:48:48 +08:00
prepare() {
2011-02-03 04:33:56 +08:00
cd ${pkgname}
mv ../ffmpeg-2.1 ffmpeg
2011-02-03 04:33:56 +08:00
}
2010-03-14 23:48:48 +08:00
build() {
cd ${srcdir}/${pkgname}
2012-02-28 05:40:57 +08:00
# Custom CFLAGS break the mplayer build
unset CFLAGS LDFLAGS
2010-03-14 23:48:48 +08:00
./configure \
--confdir=/etc/mplayer \
--disable-dvdread-internal \
--enable-runtime-cpudetection \
--language=all \
--prefix=/usr
2010-03-14 23:48:48 +08:00
2012-02-28 05:40:57 +08:00
make
2011-04-09 01:27:08 +08:00
}
2013-11-14 04:55:45 +08:00
package_mplayer() {
pkgdesc="A movie player for linux"
install=mplayer.install
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
depends=('desktop-file-utils' 'ttf-dejavu' 'enca' 'libxss' 'a52dec' 'libvpx'
'lirc-utils' 'x264' 'libmng' 'libdca' 'aalib' 'lame' 'fontconfig'
'libgl' 'libxinerama' 'libvdpau' 'libpulse' 'smbclient' 'xvidcore'
'opencore-amr' 'jack' 'libmad' 'sdl' 'libtheora' 'libcaca'
2013-11-14 04:55:45 +08:00
'fribidi' 'libjpeg' 'faac' 'faad2' 'libxvmc' 'schroedinger' 'mpg123'
'libass' 'libxxf86vm' 'libbluray' 'libcdio' 'opus')
cd ${srcdir}/${pkgname}
make DESTDIR=${pkgdir} install-mplayer install-mplayer-man
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 Integration.
2013-11-14 04:55:45 +08:00
install -Dm644 ${srcdir}/mplayer.desktop ${pkgdir}/usr/share/applications/mplayer.desktop
install -Dm644 ${srcdir}/mplayer.png ${pkgdir}/usr/share/pixmaps/mplayer.png
2010-12-12 20:20:03 +08:00
}
2013-11-14 04:55:45 +08:00
package_mencoder() {
pkgdesc="Free command line video decoding, encoding and filtering tool"
depends=('enca' 'a52dec' 'libvpx' 'x264' 'libmng' 'libdca' 'bzip2' 'lame'
'alsa-lib' 'fontconfig' 'giflib' 'libpng' 'smbclient' 'xvidcore'
'opencore-amr' 'libmad' 'libtheora' 'fribidi' 'libjpeg' 'faac' 'faad2'
'schroedinger' 'mpg123' 'libass' 'libbluray' 'libcdio'
'libvorbis' 'opus')
2013-11-14 05:28:39 +08:00
cd $pkgbase
2013-11-14 04:55:45 +08:00
make DESTDIR="$pkgdir" install-mencoder install-mencoder-man
find "$pkgdir/usr/share/man" -name mplayer.1 -exec rename mplayer.1 mencoder.1 {} +
}