mplayer.guncellendi

This commit is contained in:
milisbir 2017-07-26 20:03:04 +03:00
parent 08cb566211
commit 7b881c7221
2 changed files with 56 additions and 35 deletions

View File

@ -1,8 +1,4 @@
# MPlayer system-wide configuration file
# refer to the mplayer manpage for more information
vo=vaapi,xv,x11
double=yes
ao=alsa
framedrop=yes
cache=8192
vo=gl
ao=sdl
loop=0
progbar-align=100

View File

@ -4,41 +4,66 @@
# Depends on: gtk2 yasm desktop-file-utils libdvdnav libdvdcss cdparanoia libcdio-paranoia libdvdread samba libbluray live xorg-libxvmc opus alsa-utils pulseaudio sdl jack openal sgml-common aalib giflib libjpeg-turbo libmng libpng openjpeg libcaca faac faad2 lame liba52 libdv libmad libmpeg2 libtheora libvpx lzo mpg123 speex xvid libmpcdec xorg-fontconfig freetype gnutls openssl opus unrar libxslt docbook-xsl docbook-xml enca glib xorg-libxxf86dga
name=mplayer
version=0.26.0
version=1.3.0
release=1
source=(https://github.com/mpv-player/mpv/archive/v$version.tar.gz::$name-$version.tar.gz
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
mplayer.conf)
source=(http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz
ftp://ftp.mplayerhq.hu/MPlayer/skins/Clearlooks-1.7.tar.bz2
ftp://ftp.mplayerhq.hu/MPlayer/skins/KDE-0.3.tar.bz2
ftp://ftp.mplayerhq.hu/MPlayer/skins/XFce4-1.0.tar.bz2
ftp://ftp.mplayerhq.hu/MPlayer/skins/Orange-1.3.tar.bz2
$name.conf)
build() {
cd mplayer-$version
# Keep in line with mplayer CFLAGS, but allow people to set their own march/mtune values.
export CFLAGS="$(echo $CFLAGS | sed -e 's/-O[s0-3]/-O3/') -ffast-math -fomit-frame-pointer -fno-strict-aliasing"
cd MPlayer-$version
rm -f ffmpeg/mp_auto_pull
./configure --prefix=/usr \
--confdir=/etc/mplayer \
--enable-dynamic-plugins \
--enable-menu \
--enable-gui \
--enable-radio \
--enable-radio-capture \
--enable-rpath \
--with-vidix-drivers=radeon,nvidia,cyberblade,ivtv,mach64,mga,mga_crtc2,pm2,pm3,rage128,s3,sis,unichrome\
--enable-dhahelper \
--enable-xvmc \
--enable-mga \
--enable-xmga \
--enable-mlib \
--enable-3dfx \
--enable-tdfxfb \
--enable-joystick \
--enable-s3fb \
--enable-wii \
--enable-bl \
--enable-tdfxvid \
--language-msg=tr \
--language=all
make
make DESTDIR=$PKG install
install -v -m644 etc/codecs.conf $PKG/etc/mplayer
./configure --prefix=/usr \
--mandir=/usr/man \
--codecsdir=/usr/share/codecs \
--confdir=/etc/mplayer
make
make DESTDIR=$PKG install
install -v -m644 etc/*.conf $PKG/etc/mplayer
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
install -v -m644 ../mplayer.conf $PKG/etc/mplayer
# fonts
mkdir -p $PKG/usr/share/mplayer
cp -a $SRC/font-arial-iso-8859-1/font-arial-??-iso-8859-1 \
$PKG/usr/share/mplayer
ln -s font-arial-14-iso-8859-1 $PKG/usr/share/mplayer/font
# config
mkdir -p $PKG/etc/mplayer
install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
install -m 644 etc/input.conf $PKG/etc/mplayer/
mv ../Clearlooks \
$PKG/usr/share/mplayer/skins
mv ../KDE \
$PKG/usr/share/mplayer/skins
# finish up
rmdir $PKG/usr/lib
find $PKG -name '*.desc' | xargs chmod g-w
mv ../XFce4 \
$PKG/usr/share/mplayer/skins
mv ../Orange \
$PKG/usr/share/mplayer/skins
ln -sfvn KDE $PKG/usr/share/mplayer/skins/default
}