milis/talimatname/genel/mplayer/talimat

45 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-07-26 18:22:58 +02:00
# Description: MPlayer, komut satırı üzerinden kontrol edilen güçlü bir ses/video oynatıcı.
2016-02-24 01:27:23 +01:00
# URL: http://www.mplayerhq.hu
2016-11-02 21:03:17 +01:00
# Packager: milisarge
2016-02-24 01:27:23 +01:00
# 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
2017-07-26 18:22:58 +02:00
version=2017-04-29
release=1
source=(http://distfiles.serverop.de/mplayer-$version.tar.xz
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
mplayer.conf)
2016-02-24 01:27:23 +01:00
build() {
2017-07-26 18:22:58 +02:00
cd mplayer-$version
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
# 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"
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
rm -f ffmpeg/mp_auto_pull
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
./configure --prefix=/usr \
--mandir=/usr/man \
--codecsdir=/usr/share/codecs \
--confdir=/etc/mplayer
make
make DESTDIR=$PKG install
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
(cd $PKG/usr/man/man1; rm mencoder.1; ln -s mplayer.1.gz mencoder.1.gz)
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
# 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
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
# config
mkdir -p $PKG/etc/mplayer
install -m 644 $SRC/mplayer.conf $PKG/etc/mplayer/
install -m 644 etc/input.conf $PKG/etc/mplayer/
2016-02-24 01:27:23 +01:00
2017-07-26 18:22:58 +02:00
# finish up
rmdir $PKG/usr/lib
find $PKG -name '*.desc' | xargs chmod g-w
2016-02-24 01:27:23 +01:00
}